form-builder-pro 1.1.9 → 1.2.1

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/index.css CHANGED
@@ -632,7 +632,7 @@ video {
632
632
  }
633
633
  /* Grid column spans - explicit !important to override Angular styles */
634
634
  .form-builder-field-wrapper.selected-field {
635
- border: 1px solid #3b497e !important;
635
+ border: 1px solid #635bff !important;
636
636
  border-radius: 6px;
637
637
  box-shadow: none;
638
638
  }
@@ -997,6 +997,9 @@ body {
997
997
  .w-full {
998
998
  width: 100%;
999
999
  }
1000
+ .max-w-\[180px\] {
1001
+ max-width: 180px;
1002
+ }
1000
1003
  .flex-1 {
1001
1004
  flex: 1 1 0%;
1002
1005
  }
@@ -1134,9 +1137,6 @@ body {
1134
1137
  .border-b {
1135
1138
  border-bottom-width: 1px;
1136
1139
  }
1137
- .border-b-2 {
1138
- border-bottom-width: 2px;
1139
- }
1140
1140
  .border-l {
1141
1141
  border-left-width: 1px;
1142
1142
  }
@@ -1152,10 +1152,6 @@ body {
1152
1152
  .border-dashed {
1153
1153
  border-style: dashed;
1154
1154
  }
1155
- .border-\[\#019FA2\] {
1156
- --tw-border-opacity: 1;
1157
- border-color: rgb(1 159 162 / var(--tw-border-opacity, 1));
1158
- }
1159
1155
  .border-\[\#e9e9e9\] {
1160
1156
  --tw-border-opacity: 1;
1161
1157
  border-color: rgb(233 233 233 / var(--tw-border-opacity, 1));
@@ -1198,12 +1194,12 @@ body {
1198
1194
  --tw-bg-opacity: 1;
1199
1195
  background-color: rgb(59 73 126 / var(--tw-bg-opacity, 1));
1200
1196
  }
1201
- .bg-\[\#acbdfe33\] {
1202
- background-color: #acbdfe33;
1203
- }
1204
- .bg-\[\#f8faff\] {
1197
+ .bg-\[\#635bff\] {
1205
1198
  --tw-bg-opacity: 1;
1206
- background-color: rgb(248 250 255 / var(--tw-bg-opacity, 1));
1199
+ background-color: rgb(99 91 255 / var(--tw-bg-opacity, 1));
1200
+ }
1201
+ .bg-\[\#847dff1a\] {
1202
+ background-color: #847dff1a;
1207
1203
  }
1208
1204
  .bg-background {
1209
1205
  background-color: hsl(var(--background));
@@ -1360,10 +1356,6 @@ body {
1360
1356
  .tracking-wider {
1361
1357
  letter-spacing: 0.05em;
1362
1358
  }
1363
- .text-\[\#019FA2\] {
1364
- --tw-text-opacity: 1;
1365
- color: rgb(1 159 162 / var(--tw-text-opacity, 1));
1366
- }
1367
1359
  .text-\[\#3b497e\] {
1368
1360
  --tw-text-opacity: 1;
1369
1361
  color: rgb(59 73 126 / var(--tw-text-opacity, 1));
@@ -1432,6 +1424,11 @@ body {
1432
1424
  .opacity-50 {
1433
1425
  opacity: 0.5;
1434
1426
  }
1427
+ .shadow-\[0_17px_20px_-8px_rgba\(77\2c 91\2c 236\2c 0\.231372549\)\] {
1428
+ --tw-shadow: 0 17px 20px -8px rgba(77,91,236,0.231372549);
1429
+ --tw-shadow-colored: 0 17px 20px -8px var(--tw-shadow-color);
1430
+ box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
1431
+ }
1435
1432
  .shadow-none {
1436
1433
  --tw-shadow: 0 0 #0000;
1437
1434
  --tw-shadow-colored: 0 0 #0000;
@@ -1485,17 +1482,21 @@ input[type="checkbox"] {
1485
1482
  -moz-appearance: none;
1486
1483
  appearance: none;
1487
1484
  -webkit-appearance: none;
1488
- width: 18px;
1489
- height: 18px;
1490
- border: 2px solid #019FA2;
1485
+ width: 20px;
1486
+ height: 20px;
1487
+ border: 2px solid #635bff;
1491
1488
  border-radius: 4px;
1492
1489
  background-color: #f8faff;
1493
1490
  cursor: pointer;
1491
+ min-height: 20px;
1492
+ box-shadow: 0 17px 20px -8px rgba(77, 91, 236, 0.231372549);
1493
+
1494
1494
  }
1495
1495
 
1496
1496
  input[type="checkbox"]:checked {
1497
- background-color: #019FA2;
1498
- border-color: #019FA2;
1497
+ background-color: #635bff;
1498
+ border-color: #635bff;
1499
+ box-shadow: 0 17px 20px -8px rgba(77, 91, 236, 0.231372549);
1499
1500
  }
1500
1501
 
1501
1502
  input[type="checkbox"]:checked::after {
@@ -1513,24 +1514,27 @@ input[type="radio"] {
1513
1514
  -webkit-appearance: none;
1514
1515
  width: 18px;
1515
1516
  height: 18px;
1516
- border: 2px solid #019FA2;
1517
+ border: 2px solid #635bff;
1517
1518
  border-radius: 50%;
1518
1519
  background-color: #fff;
1519
1520
  cursor: pointer;
1521
+ box-shadow: 0 17px 20px -8px rgba(77, 91, 236, 0.231372549);
1520
1522
  }
1521
1523
 
1522
1524
  input[type="radio"]:checked {
1523
- border-color: #019FA2;
1525
+ border-color: #635bff;
1526
+ box-shadow: 0 17px 20px -8px rgba(77, 91, 236, 0.231372549);
1524
1527
  }
1525
1528
 
1526
1529
  input[type="radio"]:checked::after {
1527
1530
  content: "";
1528
1531
  width: 10px;
1529
1532
  height: 10px;
1530
- background-color: #019FA2;
1533
+ background-color: #635bff;
1531
1534
  border-radius: 50%;
1532
1535
  display: block;
1533
1536
  margin: 2px auto;
1537
+ box-shadow: 0 17px 20px -8px rgba(77, 91, 236, 0.231372549);
1534
1538
  }
1535
1539
 
1536
1540
  .file\:border-0::file-selector-button {
package/dist/index.js CHANGED
@@ -8335,7 +8335,7 @@ var FieldWrapper = class {
8335
8335
  });
8336
8336
  }
8337
8337
  if (isSelected) {
8338
- fieldWrapper.classList.add("ring-2", "bg-[#acbdfe33]", "dark:bg-blue-900/20");
8338
+ fieldWrapper.classList.add("ring-2", "bg-[#847dff1a]", "dark:bg-blue-900/20");
8339
8339
  }
8340
8340
  fieldWrapper.appendChild(createElement("div", {
8341
8341
  className: `absolute top-2 right-6 cursor-move p-1 rounded bg-[#3b497e] p-[0.5px] mr-1 text-white group-hover:opacity-100 transition-opacity field-handle z-10 ${isSelected ? "opacity-100" : ""}`
@@ -9032,12 +9032,12 @@ var FormBuilder = class {
9032
9032
  return toolbar;
9033
9033
  }
9034
9034
  renderToolbox() {
9035
- const toolbox = createElement("div", { className: "bg-[#f8faff] dark:bg-gray-900 flex flex-col h-full" });
9036
- const tabs = createElement("div", { className: "flex border-b border-gray-200 dark:border-gray-800" });
9035
+ const toolbox = createElement("div", { className: "bg-[#847dff1a] dark:bg-gray-900 flex flex-col h-full" });
9036
+ const tabs = createElement("div", { className: "flex border-b border-gray-200 dark:border-gray-800 p-1" });
9037
9037
  const createTab = (id, label) => {
9038
9038
  const isActive = this.activeTab === id;
9039
9039
  return createElement("button", {
9040
- className: `flex-1 py-3 text-sm font-medium transition-colors ${isActive ? "text-[#019FA2] border-b-2 border-[#019FA2]" : "text-gray-500 hover:text-gray-700 dark:text-gray-400"}`,
9040
+ className: `flex-1 py-3 text-sm font-medium transition-colors ${isActive ? "text-white bg-[#635bff] rounded " : "text-gray-500 hover:text-gray-700 dark:text-gray-400"}`,
9041
9041
  text: label,
9042
9042
  onclick: () => {
9043
9043
  this.activeTab = id;
@@ -9049,7 +9049,7 @@ var FormBuilder = class {
9049
9049
  tabs.appendChild(createTab("templates", "Templates"));
9050
9050
  tabs.appendChild(createTab("import", "Import"));
9051
9051
  toolbox.appendChild(tabs);
9052
- const content = createElement("div", { className: "flex-1 overflow-y-auto p-4" });
9052
+ const content = createElement("div", { className: "flex-1 overflow-y-auto p-4 bg-white" });
9053
9053
  if (this.activeTab === "fields") {
9054
9054
  const list = createElement("div", { className: "grid grid-cols-2 gap-3", id: "toolbox-list" });
9055
9055
  FIELD_TYPES.forEach((field) => {
@@ -9131,7 +9131,7 @@ var FormBuilder = class {
9131
9131
  }
9132
9132
  renderCanvas(state) {
9133
9133
  const canvas = createElement("div", {
9134
- className: "flex-1 bg-[#f8faff] dark:bg-gray-950 p-4 md:p-8 overflow-y-auto",
9134
+ className: "flex-1 dark:bg-gray-950 p-4 md:p-8 overflow-y-auto",
9135
9135
  onclick: (e) => {
9136
9136
  if (e.target === canvas || e.target === canvas.firstElementChild) {
9137
9137
  formStore.getState().selectField(null);
@@ -9152,7 +9152,7 @@ var FormBuilder = class {
9152
9152
  const sectionList = new SectionList(state.schema, state.selectedFieldId);
9153
9153
  inner.appendChild(sectionList.getElement());
9154
9154
  const addSectionBtn = createElement("button", {
9155
- className: "w-full mt-6 py-3 dark:border-gray-700 rounded-lg text-gray-500 bg-[#3b497e] text-white transition-colors flex items-center justify-center font-medium",
9155
+ className: "w-full mt-6 py-3 dark:border-gray-700 rounded-lg text-gray-500 bg-[#635bff] max-w-[180px] shadow-[0_17px_20px_-8px_rgba(77,91,236,0.231372549)] text-white transition-colors flex items-center justify-center font-medium",
9156
9156
  onclick: () => formStore.getState().addSection()
9157
9157
  }, [getIcon("Plus", 20), createElement("span", { className: "ml-2", text: "Add Section" })]);
9158
9158
  inner.appendChild(addSectionBtn);
@@ -9186,7 +9186,7 @@ var FormBuilder = class {
9186
9186
  return container;
9187
9187
  }
9188
9188
  renderConfigPanel(state, focusState = null) {
9189
- const panel = createElement("div", { className: "bg-[#f8faff] dark:bg-gray-900 flex flex-col h-full overflow-y-auto" });
9189
+ const panel = createElement("div", { className: " dark:bg-gray-900 flex flex-col h-full overflow-y-auto" });
9190
9190
  const selectedField = state.schema.sections.flatMap((s) => s.fields).find((f) => f.id === state.selectedFieldId);
9191
9191
  if (!selectedField) {
9192
9192
  panel.appendChild(createElement("div", { className: "p-4 text-center text-gray-500", text: "Select a field to configure" }));