@nascentdigital/funnel-editor 4.5.4 → 4.5.6
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.
|
@@ -56,8 +56,34 @@ function ListPanelEditor({ className, anchor, open, onClose, configuration }) {
|
|
|
56
56
|
.map(field => (0, jsx_runtime_1.jsx)(core_1.FieldEditor, { field: field, size: "xs" }, field.id))] }) }), (0, jsx_runtime_1.jsx)(core_1.QuickPicker, { ref: layoutPickerRef, variant: "card", title: "Pick List Layout", description: "Select an available layout for this list.", renderItem: (item) => renderListLayoutItem(item) })] }));
|
|
57
57
|
}
|
|
58
58
|
function renderListLayoutItem(item) {
|
|
59
|
+
// panel
|
|
60
|
+
const panel = (className = 'w-full') => ((0, jsx_runtime_1.jsx)("div", { className: (0, classnames_1.default)('bg-surface-placeholder rounded-[3px]', className) }));
|
|
61
|
+
// get content
|
|
62
|
+
const panelClassName = 'w-full h-full';
|
|
63
|
+
const panelPaddedX = 'px-10';
|
|
64
|
+
const panelPaddedY = 'py-10';
|
|
65
|
+
const panelPadded = (0, classnames_1.default)(panelPaddedX, panelPaddedY);
|
|
66
|
+
let content;
|
|
59
67
|
switch (item.id) {
|
|
68
|
+
case 'grid':
|
|
69
|
+
content = ((0, jsx_runtime_1.jsxs)("div", { className: (0, classnames_1.default)(panelClassName, panelPadded, 'grid grid-cols-3 auto-cols-fr gap-x-l3 gap-y-l2 '), children: [panel(), panel(), panel(), panel(), panel()] }));
|
|
70
|
+
break;
|
|
71
|
+
case 'verticalStack':
|
|
72
|
+
content = ((0, jsx_runtime_1.jsxs)("div", { className: (0, classnames_1.default)(panelClassName, panelPadded, 'grid grid-cols-1 auto-rows-fr gap-y-l2 '), children: [panel(), panel(), panel()] }));
|
|
73
|
+
break;
|
|
74
|
+
case 'horizontalStack':
|
|
75
|
+
content = ((0, jsx_runtime_1.jsxs)("div", { className: (0, classnames_1.default)(panelClassName, panelPadded, 'grid grid-rows-1 auto-cols-fr grid-flow-col gap-x-l3 '), children: [panel(), panel(), panel()] }));
|
|
76
|
+
break;
|
|
77
|
+
case 'masonry':
|
|
78
|
+
content = ((0, jsx_runtime_1.jsxs)("div", { className: (0, classnames_1.default)(panelClassName, panelPaddedX, 'grid grid-cols-3 grid-flow-col gap-x-l3 pt-10'), children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col gap-l2", children: [panel('h-l5'), panel('h-l6'), panel('h-l5')] }), (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col gap-l2", children: [panel('h-22'), panel('h-l6')] }), (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col gap-l2", children: [panel('h-l4'), panel('h-l7'), panel('h-l5')] })] }));
|
|
79
|
+
break;
|
|
80
|
+
case 'bento':
|
|
81
|
+
content = ((0, jsx_runtime_1.jsxs)("div", { className: (0, classnames_1.default)(panelClassName, panelPadded, 'grid auto-rows-auto auto-cols-auto gap-l3'), children: [panel('w-20 row-start-1 row-span-2 col-start-1'), panel('w-28 row-start-1 col-start-2'), panel('w-18 row-start-2 col-start-2')] }));
|
|
82
|
+
break;
|
|
60
83
|
default:
|
|
61
|
-
|
|
84
|
+
content = ((0, jsx_runtime_1.jsx)("div", { children: item.id }));
|
|
85
|
+
break;
|
|
62
86
|
}
|
|
87
|
+
// render item in frame
|
|
88
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: (0, classnames_1.default)('w-full h-full flex justify-center items-center'), children: content }));
|
|
63
89
|
}
|
package/dist/styles/index.css
CHANGED
|
@@ -4400,6 +4400,15 @@ video {
|
|
|
4400
4400
|
.col-end-13{
|
|
4401
4401
|
grid-column-end: 13;
|
|
4402
4402
|
}
|
|
4403
|
+
.row-span-2{
|
|
4404
|
+
grid-row: span 2 / span 2;
|
|
4405
|
+
}
|
|
4406
|
+
.row-start-1{
|
|
4407
|
+
grid-row-start: 1;
|
|
4408
|
+
}
|
|
4409
|
+
.row-start-2{
|
|
4410
|
+
grid-row-start: 2;
|
|
4411
|
+
}
|
|
4403
4412
|
.m-l6{
|
|
4404
4413
|
margin: 16px;
|
|
4405
4414
|
}
|
|
@@ -4566,6 +4575,9 @@ video {
|
|
|
4566
4575
|
.h-20{
|
|
4567
4576
|
height: 20px;
|
|
4568
4577
|
}
|
|
4578
|
+
.h-22{
|
|
4579
|
+
height: 22px;
|
|
4580
|
+
}
|
|
4569
4581
|
.h-24{
|
|
4570
4582
|
height: 24px;
|
|
4571
4583
|
}
|
|
@@ -4638,6 +4650,18 @@ video {
|
|
|
4638
4650
|
.h-full{
|
|
4639
4651
|
height: 100%;
|
|
4640
4652
|
}
|
|
4653
|
+
.h-l4{
|
|
4654
|
+
height: 8px;
|
|
4655
|
+
}
|
|
4656
|
+
.h-l5{
|
|
4657
|
+
height: 12px;
|
|
4658
|
+
}
|
|
4659
|
+
.h-l6{
|
|
4660
|
+
height: 16px;
|
|
4661
|
+
}
|
|
4662
|
+
.h-l7{
|
|
4663
|
+
height: 20px;
|
|
4664
|
+
}
|
|
4641
4665
|
.h-lvh{
|
|
4642
4666
|
height: 100lvh;
|
|
4643
4667
|
}
|
|
@@ -4713,6 +4737,9 @@ video {
|
|
|
4713
4737
|
.w-20{
|
|
4714
4738
|
width: 20px;
|
|
4715
4739
|
}
|
|
4740
|
+
.w-28{
|
|
4741
|
+
width: 28px;
|
|
4742
|
+
}
|
|
4716
4743
|
.w-32{
|
|
4717
4744
|
width: 32px;
|
|
4718
4745
|
}
|
|
@@ -4937,6 +4964,9 @@ video {
|
|
|
4937
4964
|
.grid-cols-2{
|
|
4938
4965
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
4939
4966
|
}
|
|
4967
|
+
.grid-cols-3{
|
|
4968
|
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
4969
|
+
}
|
|
4940
4970
|
.grid-cols-\[1fr\2c 1fr\]{
|
|
4941
4971
|
grid-template-columns: 1fr 1fr;
|
|
4942
4972
|
}
|
|
@@ -5054,10 +5084,17 @@ video {
|
|
|
5054
5084
|
.gap-l9{
|
|
5055
5085
|
gap: 32px;
|
|
5056
5086
|
}
|
|
5087
|
+
.gap-x-l3{
|
|
5088
|
+
-moz-column-gap: 6px;
|
|
5089
|
+
column-gap: 6px;
|
|
5090
|
+
}
|
|
5057
5091
|
.gap-x-l5{
|
|
5058
5092
|
-moz-column-gap: 12px;
|
|
5059
5093
|
column-gap: 12px;
|
|
5060
5094
|
}
|
|
5095
|
+
.gap-y-l2{
|
|
5096
|
+
row-gap: 4px;
|
|
5097
|
+
}
|
|
5061
5098
|
.gap-y-l4{
|
|
5062
5099
|
row-gap: 8px;
|
|
5063
5100
|
}
|
|
@@ -5103,6 +5140,9 @@ video {
|
|
|
5103
5140
|
.rounded-\[2px\]{
|
|
5104
5141
|
border-radius: 2px;
|
|
5105
5142
|
}
|
|
5143
|
+
.rounded-\[3px\]{
|
|
5144
|
+
border-radius: 3px;
|
|
5145
|
+
}
|
|
5106
5146
|
.rounded-full{
|
|
5107
5147
|
border-radius: 9999px;
|
|
5108
5148
|
}
|
|
@@ -5517,6 +5557,10 @@ video {
|
|
|
5517
5557
|
padding-left: 24px;
|
|
5518
5558
|
padding-right: 24px;
|
|
5519
5559
|
}
|
|
5560
|
+
.py-10{
|
|
5561
|
+
padding-top: 10px;
|
|
5562
|
+
padding-bottom: 10px;
|
|
5563
|
+
}
|
|
5520
5564
|
.py-l1{
|
|
5521
5565
|
padding-top: 2px;
|
|
5522
5566
|
padding-bottom: 2px;
|
|
@@ -5593,6 +5637,9 @@ video {
|
|
|
5593
5637
|
.pr-l5{
|
|
5594
5638
|
padding-right: 12px;
|
|
5595
5639
|
}
|
|
5640
|
+
.pt-10{
|
|
5641
|
+
padding-top: 10px;
|
|
5642
|
+
}
|
|
5596
5643
|
.pt-l12{
|
|
5597
5644
|
padding-top: 56px;
|
|
5598
5645
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nascentdigital/funnel-editor",
|
|
3
|
-
"version": "4.5.
|
|
3
|
+
"version": "4.5.6",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "restricted"
|
|
@@ -89,5 +89,5 @@
|
|
|
89
89
|
"ts-jest": "^29",
|
|
90
90
|
"type-fest": "^4"
|
|
91
91
|
},
|
|
92
|
-
"gitHead": "
|
|
92
|
+
"gitHead": "e5899ba807b2c7241f493c850a98c1607df6771b"
|
|
93
93
|
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.ListLayoutPicker = ListLayoutPicker;
|
|
7
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const classnames_1 = __importDefault(require("classnames"));
|
|
9
|
-
// component
|
|
10
|
-
function ListLayoutPicker({ className }) {
|
|
11
|
-
// render
|
|
12
|
-
return ((0, jsx_runtime_1.jsx)("div", { className: (0, classnames_1.default)(className), children: "ListLayoutPicker" }));
|
|
13
|
-
}
|