@uipath/apollo-wind 2.36.0 → 2.36.2
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/components/custom/flow-properties-simple.cjs +1 -0
- package/dist/components/custom/flow-properties-simple.js +1 -0
- package/dist/components/custom/panel-delegate.cjs +1 -1
- package/dist/components/custom/panel-delegate.js +1 -1
- package/dist/components/custom/panel-flow.cjs +2 -1
- package/dist/components/custom/panel-flow.js +2 -1
- package/dist/components/forms/field-renderer.cjs +1 -0
- package/dist/components/forms/field-renderer.js +1 -0
- package/dist/components/forms/form-designer.cjs +25 -9
- package/dist/components/forms/form-designer.js +25 -9
- package/dist/components/forms/form-examples.cjs +1 -1
- package/dist/components/forms/form-examples.js +1 -1
- package/dist/components/forms/form-state-viewer.cjs +4 -7
- package/dist/components/forms/form-state-viewer.js +4 -7
- package/dist/components/forms/metadata-form.cjs +1 -1
- package/dist/components/forms/metadata-form.js +1 -1
- package/dist/components/ui/accordion.cjs +9 -1
- package/dist/components/ui/accordion.d.ts +1 -1
- package/dist/components/ui/accordion.js +9 -1
- package/dist/components/ui/alert-dialog.cjs +25 -4
- package/dist/components/ui/alert-dialog.d.ts +9 -3
- package/dist/components/ui/alert-dialog.js +25 -4
- package/dist/components/ui/alert.cjs +3 -0
- package/dist/components/ui/alert.js +3 -0
- package/dist/components/ui/aspect-ratio.cjs +8 -1
- package/dist/components/ui/aspect-ratio.d.ts +2 -1
- package/dist/components/ui/aspect-ratio.js +8 -1
- package/dist/components/ui/avatar.cjs +25 -4
- package/dist/components/ui/avatar.d.ts +8 -2
- package/dist/components/ui/avatar.js +21 -3
- package/dist/components/ui/badge.cjs +1 -0
- package/dist/components/ui/badge.js +1 -0
- package/dist/components/ui/breadcrumb.cjs +7 -0
- package/dist/components/ui/breadcrumb.js +7 -0
- package/dist/components/ui/button-group.cjs +3 -0
- package/dist/components/ui/button-group.js +3 -0
- package/dist/components/ui/button.cjs +1 -0
- package/dist/components/ui/button.js +1 -0
- package/dist/components/ui/card.cjs +6 -0
- package/dist/components/ui/card.js +6 -0
- package/dist/components/ui/checkbox.cjs +1 -0
- package/dist/components/ui/checkbox.js +1 -0
- package/dist/components/ui/collapsible.cjs +20 -3
- package/dist/components/ui/collapsible.d.ts +4 -3
- package/dist/components/ui/collapsible.js +20 -3
- package/dist/components/ui/combobox.cjs +5 -3
- package/dist/components/ui/combobox.d.ts +2 -1
- package/dist/components/ui/combobox.js +6 -4
- package/dist/components/ui/command.cjs +9 -0
- package/dist/components/ui/command.js +9 -0
- package/dist/components/ui/context-menu.cjs +42 -6
- package/dist/components/ui/context-menu.d.ts +15 -6
- package/dist/components/ui/context-menu.js +42 -6
- package/dist/components/ui/data-table.cjs +2 -0
- package/dist/components/ui/data-table.js +2 -0
- package/dist/components/ui/date-picker.cjs +11 -6
- package/dist/components/ui/date-picker.d.ts +3 -3
- package/dist/components/ui/date-picker.js +10 -5
- package/dist/components/ui/datetime-picker.cjs +5 -3
- package/dist/components/ui/datetime-picker.d.ts +2 -1
- package/dist/components/ui/datetime-picker.js +6 -4
- package/dist/components/ui/dialog.cjs +1 -1
- package/dist/components/ui/dialog.js +1 -1
- package/dist/components/ui/drawer.cjs +29 -5
- package/dist/components/ui/drawer.d.ts +11 -4
- package/dist/components/ui/drawer.js +29 -5
- package/dist/components/ui/dropdown-menu.cjs +42 -6
- package/dist/components/ui/dropdown-menu.d.ts +15 -6
- package/dist/components/ui/dropdown-menu.js +42 -6
- package/dist/components/ui/editable-cell.cjs +2 -0
- package/dist/components/ui/editable-cell.js +2 -0
- package/dist/components/ui/empty-state.cjs +1 -0
- package/dist/components/ui/empty-state.js +1 -0
- package/dist/components/ui/file-upload.cjs +5 -3
- package/dist/components/ui/file-upload.d.ts +1 -1
- package/dist/components/ui/file-upload.js +6 -4
- package/dist/components/ui/hover-card.cjs +12 -2
- package/dist/components/ui/hover-card.d.ts +5 -2
- package/dist/components/ui/hover-card.js +12 -2
- package/dist/components/ui/index.cjs +189 -139
- package/dist/components/ui/index.d.ts +5 -0
- package/dist/components/ui/index.js +5 -0
- package/dist/components/ui/input.cjs +1 -0
- package/dist/components/ui/input.js +1 -0
- package/dist/components/ui/label.cjs +1 -0
- package/dist/components/ui/label.js +1 -0
- package/dist/components/ui/layout/column.cjs +1 -0
- package/dist/components/ui/layout/column.js +1 -0
- package/dist/components/ui/layout/grid.cjs +1 -0
- package/dist/components/ui/layout/grid.js +1 -0
- package/dist/components/ui/layout/row.cjs +1 -0
- package/dist/components/ui/layout/row.js +1 -0
- package/dist/components/ui/multi-select.cjs +1 -0
- package/dist/components/ui/multi-select.js +1 -0
- package/dist/components/ui/pagination.cjs +7 -0
- package/dist/components/ui/pagination.js +7 -0
- package/dist/components/ui/popover.cjs +18 -3
- package/dist/components/ui/popover.d.ts +6 -3
- package/dist/components/ui/popover.js +18 -3
- package/dist/components/ui/progress.cjs +1 -0
- package/dist/components/ui/progress.js +1 -0
- package/dist/components/ui/prompt-editor/components/EditorToolbar.cjs +5 -2
- package/dist/components/ui/prompt-editor/components/EditorToolbar.js +5 -2
- package/dist/components/ui/radio-group.cjs +2 -0
- package/dist/components/ui/radio-group.js +2 -0
- package/dist/components/ui/resizable.cjs +2 -0
- package/dist/components/ui/resizable.js +2 -0
- package/dist/components/ui/scroll-area.cjs +2 -0
- package/dist/components/ui/scroll-area.js +2 -0
- package/dist/components/ui/search.cjs +2 -0
- package/dist/components/ui/search.js +2 -0
- package/dist/components/ui/select.cjs +24 -3
- package/dist/components/ui/select.d.ts +6 -3
- package/dist/components/ui/select.js +24 -3
- package/dist/components/ui/separator.cjs +1 -0
- package/dist/components/ui/separator.js +1 -0
- package/dist/components/ui/sheet.cjs +29 -5
- package/dist/components/ui/sheet.d.ts +10 -4
- package/dist/components/ui/sheet.js +29 -5
- package/dist/components/ui/skeleton.cjs +1 -0
- package/dist/components/ui/skeleton.js +1 -0
- package/dist/components/ui/slider.cjs +1 -0
- package/dist/components/ui/slider.js +1 -0
- package/dist/components/ui/sonner.cjs +1 -0
- package/dist/components/ui/sonner.js +1 -0
- package/dist/components/ui/spinner.cjs +1 -0
- package/dist/components/ui/spinner.js +1 -0
- package/dist/components/ui/stats-card.cjs +26 -12
- package/dist/components/ui/stats-card.d.ts +6 -3
- package/dist/components/ui/stats-card.js +22 -11
- package/dist/components/ui/stepper.cjs +1 -0
- package/dist/components/ui/stepper.js +1 -0
- package/dist/components/ui/switch.cjs +1 -0
- package/dist/components/ui/switch.js +1 -0
- package/dist/components/ui/table.cjs +9 -0
- package/dist/components/ui/table.js +9 -0
- package/dist/components/ui/tabs.cjs +10 -1
- package/dist/components/ui/tabs.d.ts +1 -1
- package/dist/components/ui/tabs.js +10 -1
- package/dist/components/ui/textarea.cjs +1 -0
- package/dist/components/ui/textarea.js +1 -0
- package/dist/components/ui/toggle-group.cjs +2 -0
- package/dist/components/ui/toggle-group.js +2 -0
- package/dist/components/ui/toggle.cjs +1 -0
- package/dist/components/ui/toggle.js +1 -0
- package/dist/components/ui/tooltip.cjs +22 -4
- package/dist/components/ui/tooltip.d.ts +13 -4
- package/dist/components/ui/tooltip.js +22 -4
- package/dist/components/ui/tree-view.cjs +17 -9
- package/dist/components/ui/tree-view.d.ts +2 -1
- package/dist/components/ui/tree-view.js +18 -10
- package/dist/foundation/Future/index.cjs +107 -0
- package/dist/foundation/Future/index.d.ts +8 -0
- package/dist/foundation/Future/index.js +8 -0
- package/dist/foundation/index.cjs +58 -0
- package/dist/foundation/index.d.ts +1 -0
- package/dist/foundation/index.js +1 -0
- package/dist/index.cjs +52 -2
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -1
- package/dist/styles.css +124 -123
- package/package.json +2 -5
- package/dist/components/UiPath/index.cjs +0 -5
- package/dist/components/UiPath/index.d.ts +0 -1
- package/dist/components/UiPath/index.js +0 -0
|
@@ -65,6 +65,7 @@ function FieldItem({ field, onGraphControl }) {
|
|
|
65
65
|
onValueChange: setValue,
|
|
66
66
|
children: [
|
|
67
67
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(select_cjs_namespaceObject.SelectTrigger, {
|
|
68
|
+
"aria-label": field.label,
|
|
68
69
|
className: "h-10 rounded-xl border-0 bg-surface-overlay text-foreground shadow-sm placeholder:text-foreground-muted",
|
|
69
70
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(select_cjs_namespaceObject.SelectValue, {
|
|
70
71
|
placeholder: field.placeholder ?? 'Select...'
|
|
@@ -37,6 +37,7 @@ function FieldItem({ field, onGraphControl }) {
|
|
|
37
37
|
onValueChange: setValue,
|
|
38
38
|
children: [
|
|
39
39
|
/*#__PURE__*/ jsx(SelectTrigger, {
|
|
40
|
+
"aria-label": field.label,
|
|
40
41
|
className: "h-10 rounded-xl border-0 bg-surface-overlay text-foreground shadow-sm placeholder:text-foreground-muted",
|
|
41
42
|
children: /*#__PURE__*/ jsx(SelectValue, {
|
|
42
43
|
placeholder: field.placeholder ?? 'Select...'
|
|
@@ -36,7 +36,7 @@ const tooltip_cjs_namespaceObject = require("../ui/tooltip.cjs");
|
|
|
36
36
|
const index_cjs_namespaceObject = require("../../lib/index.cjs");
|
|
37
37
|
function UiPathLogo({ className }) {
|
|
38
38
|
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
39
|
-
className: (0, index_cjs_namespaceObject.cn)('flex h-9 w-9 items-center justify-center overflow-hidden rounded-lg bg-
|
|
39
|
+
className: (0, index_cjs_namespaceObject.cn)('flex h-9 w-9 items-center justify-center overflow-hidden rounded-lg bg-brand shadow-sm', className),
|
|
40
40
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("svg", {
|
|
41
41
|
viewBox: "0 0 24 24",
|
|
42
42
|
fill: "none",
|
|
@@ -8,7 +8,7 @@ import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "../ui/
|
|
|
8
8
|
import { cn } from "../../lib/index.js";
|
|
9
9
|
function UiPathLogo({ className }) {
|
|
10
10
|
return /*#__PURE__*/ jsx("div", {
|
|
11
|
-
className: cn('flex h-9 w-9 items-center justify-center overflow-hidden rounded-lg bg-
|
|
11
|
+
className: cn('flex h-9 w-9 items-center justify-center overflow-hidden rounded-lg bg-brand shadow-sm', className),
|
|
12
12
|
children: /*#__PURE__*/ jsxs("svg", {
|
|
13
13
|
viewBox: "0 0 24 24",
|
|
14
14
|
fill: "none",
|
|
@@ -37,7 +37,7 @@ const tooltip_cjs_namespaceObject = require("../ui/tooltip.cjs");
|
|
|
37
37
|
const index_cjs_namespaceObject = require("../../lib/index.cjs");
|
|
38
38
|
function UiPathLogo() {
|
|
39
39
|
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
40
|
-
className: "flex h-9 w-9 items-center justify-center overflow-clip rounded-lg bg-
|
|
40
|
+
className: "flex h-9 w-9 items-center justify-center overflow-clip rounded-lg bg-brand shadow-sm",
|
|
41
41
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("svg", {
|
|
42
42
|
viewBox: "0 0 24 24",
|
|
43
43
|
fill: "none",
|
|
@@ -101,6 +101,7 @@ function IconRail({ navItems, activeId, onNavClick, onLogoClick, hasShadow }) {
|
|
|
101
101
|
asChild: true,
|
|
102
102
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("button", {
|
|
103
103
|
type: "button",
|
|
104
|
+
"aria-label": item.label,
|
|
104
105
|
className: "group flex h-12 w-full items-center justify-center",
|
|
105
106
|
onClick: ()=>onNavClick(item.id),
|
|
106
107
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
@@ -8,7 +8,7 @@ import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "../ui/
|
|
|
8
8
|
import { cn } from "../../lib/index.js";
|
|
9
9
|
function UiPathLogo() {
|
|
10
10
|
return /*#__PURE__*/ jsx("div", {
|
|
11
|
-
className: "flex h-9 w-9 items-center justify-center overflow-clip rounded-lg bg-
|
|
11
|
+
className: "flex h-9 w-9 items-center justify-center overflow-clip rounded-lg bg-brand shadow-sm",
|
|
12
12
|
children: /*#__PURE__*/ jsxs("svg", {
|
|
13
13
|
viewBox: "0 0 24 24",
|
|
14
14
|
fill: "none",
|
|
@@ -72,6 +72,7 @@ function IconRail({ navItems, activeId, onNavClick, onLogoClick, hasShadow }) {
|
|
|
72
72
|
asChild: true,
|
|
73
73
|
children: /*#__PURE__*/ jsx("button", {
|
|
74
74
|
type: "button",
|
|
75
|
+
"aria-label": item.label,
|
|
75
76
|
className: "group flex h-12 w-full items-center justify-center",
|
|
76
77
|
onClick: ()=>onNavClick(item.id),
|
|
77
78
|
children: /*#__PURE__*/ jsx("div", {
|
|
@@ -305,6 +305,7 @@ function FieldByType({ field, formField, error, disabled, required, options }) {
|
|
|
305
305
|
disabled: disabled,
|
|
306
306
|
children: [
|
|
307
307
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(select_cjs_namespaceObject.SelectTrigger, {
|
|
308
|
+
"aria-label": field.label,
|
|
308
309
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(select_cjs_namespaceObject.SelectValue, {
|
|
309
310
|
placeholder: field.placeholder || 'Select...'
|
|
310
311
|
})
|
|
@@ -277,6 +277,7 @@ function FieldByType({ field, formField, error, disabled, required, options }) {
|
|
|
277
277
|
disabled: disabled,
|
|
278
278
|
children: [
|
|
279
279
|
/*#__PURE__*/ jsx(SelectTrigger, {
|
|
280
|
+
"aria-label": field.label,
|
|
280
281
|
children: /*#__PURE__*/ jsx(SelectValue, {
|
|
281
282
|
placeholder: field.placeholder || 'Select...'
|
|
282
283
|
})
|
|
@@ -1061,6 +1061,7 @@ function FormDesigner() {
|
|
|
1061
1061
|
className: "flex items-center gap-1 px-2 py-1.5",
|
|
1062
1062
|
children: [
|
|
1063
1063
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(accordion_cjs_namespaceObject.AccordionTrigger, {
|
|
1064
|
+
"aria-label": `Toggle section ${section.title}`,
|
|
1064
1065
|
className: "h-5 w-5 p-0 hover:no-underline hover:bg-accent rounded [&>svg]:hidden flex items-center justify-center shrink-0",
|
|
1065
1066
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
1066
1067
|
className: "flex items-center justify-center",
|
|
@@ -1100,6 +1101,7 @@ function FormDesigner() {
|
|
|
1100
1101
|
moveSection(section.id, 'up');
|
|
1101
1102
|
},
|
|
1102
1103
|
disabled: 0 === sectionIndex,
|
|
1104
|
+
"aria-label": `Move section ${section.title} up`,
|
|
1103
1105
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.MoveUp, {
|
|
1104
1106
|
className: "h-2.5 w-2.5"
|
|
1105
1107
|
})
|
|
@@ -1113,6 +1115,7 @@ function FormDesigner() {
|
|
|
1113
1115
|
moveSection(section.id, 'down');
|
|
1114
1116
|
},
|
|
1115
1117
|
disabled: sectionIndex === sections.length - 1,
|
|
1118
|
+
"aria-label": `Move section ${section.title} down`,
|
|
1116
1119
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.MoveDown, {
|
|
1117
1120
|
className: "h-2.5 w-2.5"
|
|
1118
1121
|
})
|
|
@@ -1126,6 +1129,7 @@ function FormDesigner() {
|
|
|
1126
1129
|
removeSection(section.id);
|
|
1127
1130
|
},
|
|
1128
1131
|
disabled: sections.length <= 1,
|
|
1132
|
+
"aria-label": `Delete section ${section.title}`,
|
|
1129
1133
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Trash2, {
|
|
1130
1134
|
className: "h-2.5 w-2.5 text-destructive"
|
|
1131
1135
|
})
|
|
@@ -1192,6 +1196,7 @@ function FormDesigner() {
|
|
|
1192
1196
|
moveField(section.id, field.id, 'up');
|
|
1193
1197
|
},
|
|
1194
1198
|
disabled: 0 === fieldIndex,
|
|
1199
|
+
"aria-label": `Move field ${field.label} up`,
|
|
1195
1200
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.MoveUp, {
|
|
1196
1201
|
className: "h-2.5 w-2.5"
|
|
1197
1202
|
})
|
|
@@ -1205,6 +1210,7 @@ function FormDesigner() {
|
|
|
1205
1210
|
moveField(section.id, field.id, 'down');
|
|
1206
1211
|
},
|
|
1207
1212
|
disabled: fieldIndex === section.fields.length - 1,
|
|
1213
|
+
"aria-label": `Move field ${field.label} down`,
|
|
1208
1214
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.MoveDown, {
|
|
1209
1215
|
className: "h-2.5 w-2.5"
|
|
1210
1216
|
})
|
|
@@ -1217,6 +1223,7 @@ function FormDesigner() {
|
|
|
1217
1223
|
e.stopPropagation();
|
|
1218
1224
|
removeField(section.id, field.id);
|
|
1219
1225
|
},
|
|
1226
|
+
"aria-label": `Delete field ${field.label}`,
|
|
1220
1227
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Trash2, {
|
|
1221
1228
|
className: "h-2.5 w-2.5 text-destructive"
|
|
1222
1229
|
})
|
|
@@ -1467,6 +1474,7 @@ function FieldOptionsEditor({ options, onChange }) {
|
|
|
1467
1474
|
icon: true,
|
|
1468
1475
|
className: "text-muted-foreground hover:text-destructive",
|
|
1469
1476
|
onClick: ()=>removeOption(index),
|
|
1477
|
+
"aria-label": "Remove option",
|
|
1470
1478
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Trash2, {
|
|
1471
1479
|
className: "h-4 w-4"
|
|
1472
1480
|
})
|
|
@@ -1526,6 +1534,7 @@ function DataSourceEditor({ dataSource, onChange }) {
|
|
|
1526
1534
|
},
|
|
1527
1535
|
children: [
|
|
1528
1536
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(select_cjs_namespaceObject.SelectTrigger, {
|
|
1537
|
+
"aria-label": "Data source type",
|
|
1529
1538
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(select_cjs_namespaceObject.SelectValue, {})
|
|
1530
1539
|
}),
|
|
1531
1540
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(select_cjs_namespaceObject.SelectContent, {
|
|
@@ -1707,28 +1716,28 @@ const RULE_EFFECTS = [
|
|
|
1707
1716
|
label: 'Show field',
|
|
1708
1717
|
description: 'Show this field when conditions are met',
|
|
1709
1718
|
Icon: external_lucide_react_namespaceObject.Eye,
|
|
1710
|
-
color: 'text-
|
|
1719
|
+
color: 'text-success bg-success-background border-success/30'
|
|
1711
1720
|
},
|
|
1712
1721
|
{
|
|
1713
1722
|
value: 'hide',
|
|
1714
1723
|
label: 'Hide field',
|
|
1715
1724
|
description: 'Hide this field when conditions are met',
|
|
1716
1725
|
Icon: external_lucide_react_namespaceObject.EyeOff,
|
|
1717
|
-
color: 'text-
|
|
1726
|
+
color: 'text-warning bg-warning-background border-warning/30'
|
|
1718
1727
|
},
|
|
1719
1728
|
{
|
|
1720
1729
|
value: 'require',
|
|
1721
1730
|
label: 'Make required',
|
|
1722
1731
|
description: 'Require this field when conditions are met',
|
|
1723
1732
|
Icon: external_lucide_react_namespaceObject.Asterisk,
|
|
1724
|
-
color: 'text-
|
|
1733
|
+
color: 'text-error bg-error-background border-error/30'
|
|
1725
1734
|
},
|
|
1726
1735
|
{
|
|
1727
1736
|
value: 'disable',
|
|
1728
1737
|
label: 'Disable field',
|
|
1729
1738
|
description: 'Disable this field when conditions are met',
|
|
1730
1739
|
Icon: external_lucide_react_namespaceObject.Ban,
|
|
1731
|
-
color: 'text-
|
|
1740
|
+
color: 'text-muted-foreground bg-muted border-border'
|
|
1732
1741
|
}
|
|
1733
1742
|
];
|
|
1734
1743
|
function RulesEditor({ rules = [], onChange, allFields, requiredMessage, onRequiredMessageChange }) {
|
|
@@ -1926,19 +1935,19 @@ function RulesEditor({ rules = [], onChange, allFields, requiredMessage, onRequi
|
|
|
1926
1935
|
const getEffectDescription = (rule)=>{
|
|
1927
1936
|
if (true === rule.effects.visible) return {
|
|
1928
1937
|
label: 'Show',
|
|
1929
|
-
color: 'text-
|
|
1938
|
+
color: 'text-success bg-success-background'
|
|
1930
1939
|
};
|
|
1931
1940
|
if (false === rule.effects.visible) return {
|
|
1932
1941
|
label: 'Hide',
|
|
1933
|
-
color: 'text-
|
|
1942
|
+
color: 'text-warning bg-warning-background'
|
|
1934
1943
|
};
|
|
1935
1944
|
if (true === rule.effects.required) return {
|
|
1936
1945
|
label: 'Required',
|
|
1937
|
-
color: 'text-
|
|
1946
|
+
color: 'text-error bg-error-background'
|
|
1938
1947
|
};
|
|
1939
1948
|
if (true === rule.effects.disabled) return {
|
|
1940
1949
|
label: 'Disabled',
|
|
1941
|
-
color: 'text-
|
|
1950
|
+
color: 'text-muted-foreground bg-muted'
|
|
1942
1951
|
};
|
|
1943
1952
|
return {
|
|
1944
1953
|
label: 'Unknown',
|
|
@@ -1962,7 +1971,7 @@ function RulesEditor({ rules = [], onChange, allFields, requiredMessage, onRequi
|
|
|
1962
1971
|
className: "flex items-center gap-3",
|
|
1963
1972
|
children: [
|
|
1964
1973
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Asterisk, {
|
|
1965
|
-
className: "h-5 w-5 text-
|
|
1974
|
+
className: "h-5 w-5 text-error"
|
|
1966
1975
|
}),
|
|
1967
1976
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
1968
1977
|
children: [
|
|
@@ -1979,6 +1988,7 @@ function RulesEditor({ rules = [], onChange, allFields, requiredMessage, onRequi
|
|
|
1979
1988
|
]
|
|
1980
1989
|
}),
|
|
1981
1990
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(checkbox_cjs_namespaceObject.Checkbox, {
|
|
1991
|
+
"aria-label": "Always required",
|
|
1982
1992
|
checked: isAlwaysRequired,
|
|
1983
1993
|
onCheckedChange: (checked)=>{
|
|
1984
1994
|
if (checked) {
|
|
@@ -2072,6 +2082,7 @@ function RulesEditor({ rules = [], onChange, allFields, requiredMessage, onRequi
|
|
|
2072
2082
|
size: "sm",
|
|
2073
2083
|
className: "h-7 w-7 p-0",
|
|
2074
2084
|
onClick: ()=>editRule(index),
|
|
2085
|
+
"aria-label": "Edit rule",
|
|
2075
2086
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Settings, {
|
|
2076
2087
|
className: "h-3.5 w-3.5"
|
|
2077
2088
|
})
|
|
@@ -2082,6 +2093,7 @@ function RulesEditor({ rules = [], onChange, allFields, requiredMessage, onRequi
|
|
|
2082
2093
|
icon: true,
|
|
2083
2094
|
className: "text-destructive hover:text-destructive",
|
|
2084
2095
|
onClick: ()=>deleteRule(index),
|
|
2096
|
+
"aria-label": "Delete rule",
|
|
2085
2097
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Trash2, {
|
|
2086
2098
|
className: "h-3.5 w-3.5"
|
|
2087
2099
|
})
|
|
@@ -2153,6 +2165,7 @@ function RulesEditor({ rules = [], onChange, allFields, requiredMessage, onRequi
|
|
|
2153
2165
|
onValueChange: (v)=>setConditionOperator(v),
|
|
2154
2166
|
children: [
|
|
2155
2167
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(select_cjs_namespaceObject.SelectTrigger, {
|
|
2168
|
+
"aria-label": "Condition match mode",
|
|
2156
2169
|
className: "w-24 h-7 text-xs",
|
|
2157
2170
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(select_cjs_namespaceObject.SelectValue, {})
|
|
2158
2171
|
}),
|
|
@@ -2202,6 +2215,7 @@ function RulesEditor({ rules = [], onChange, allFields, requiredMessage, onRequi
|
|
|
2202
2215
|
}),
|
|
2203
2216
|
children: [
|
|
2204
2217
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(select_cjs_namespaceObject.SelectTrigger, {
|
|
2218
|
+
"aria-label": "Condition field",
|
|
2205
2219
|
className: "h-8 text-sm",
|
|
2206
2220
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(select_cjs_namespaceObject.SelectValue, {
|
|
2207
2221
|
placeholder: "Select field..."
|
|
@@ -2225,6 +2239,7 @@ function RulesEditor({ rules = [], onChange, allFields, requiredMessage, onRequi
|
|
|
2225
2239
|
}),
|
|
2226
2240
|
children: [
|
|
2227
2241
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(select_cjs_namespaceObject.SelectTrigger, {
|
|
2242
|
+
"aria-label": "Condition operator",
|
|
2228
2243
|
className: "w-32 h-8 text-sm",
|
|
2229
2244
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(select_cjs_namespaceObject.SelectValue, {})
|
|
2230
2245
|
}),
|
|
@@ -2245,6 +2260,7 @@ function RulesEditor({ rules = [], onChange, allFields, requiredMessage, onRequi
|
|
|
2245
2260
|
}),
|
|
2246
2261
|
children: [
|
|
2247
2262
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(select_cjs_namespaceObject.SelectTrigger, {
|
|
2263
|
+
"aria-label": "Condition value",
|
|
2248
2264
|
className: "h-8 text-sm",
|
|
2249
2265
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(select_cjs_namespaceObject.SelectValue, {
|
|
2250
2266
|
placeholder: "Select value..."
|
|
@@ -1033,6 +1033,7 @@ function FormDesigner() {
|
|
|
1033
1033
|
className: "flex items-center gap-1 px-2 py-1.5",
|
|
1034
1034
|
children: [
|
|
1035
1035
|
/*#__PURE__*/ jsx(AccordionTrigger, {
|
|
1036
|
+
"aria-label": `Toggle section ${section.title}`,
|
|
1036
1037
|
className: "h-5 w-5 p-0 hover:no-underline hover:bg-accent rounded [&>svg]:hidden flex items-center justify-center shrink-0",
|
|
1037
1038
|
children: /*#__PURE__*/ jsx("span", {
|
|
1038
1039
|
className: "flex items-center justify-center",
|
|
@@ -1072,6 +1073,7 @@ function FormDesigner() {
|
|
|
1072
1073
|
moveSection(section.id, 'up');
|
|
1073
1074
|
},
|
|
1074
1075
|
disabled: 0 === sectionIndex,
|
|
1076
|
+
"aria-label": `Move section ${section.title} up`,
|
|
1075
1077
|
children: /*#__PURE__*/ jsx(MoveUp, {
|
|
1076
1078
|
className: "h-2.5 w-2.5"
|
|
1077
1079
|
})
|
|
@@ -1085,6 +1087,7 @@ function FormDesigner() {
|
|
|
1085
1087
|
moveSection(section.id, 'down');
|
|
1086
1088
|
},
|
|
1087
1089
|
disabled: sectionIndex === sections.length - 1,
|
|
1090
|
+
"aria-label": `Move section ${section.title} down`,
|
|
1088
1091
|
children: /*#__PURE__*/ jsx(MoveDown, {
|
|
1089
1092
|
className: "h-2.5 w-2.5"
|
|
1090
1093
|
})
|
|
@@ -1098,6 +1101,7 @@ function FormDesigner() {
|
|
|
1098
1101
|
removeSection(section.id);
|
|
1099
1102
|
},
|
|
1100
1103
|
disabled: sections.length <= 1,
|
|
1104
|
+
"aria-label": `Delete section ${section.title}`,
|
|
1101
1105
|
children: /*#__PURE__*/ jsx(Trash2, {
|
|
1102
1106
|
className: "h-2.5 w-2.5 text-destructive"
|
|
1103
1107
|
})
|
|
@@ -1164,6 +1168,7 @@ function FormDesigner() {
|
|
|
1164
1168
|
moveField(section.id, field.id, 'up');
|
|
1165
1169
|
},
|
|
1166
1170
|
disabled: 0 === fieldIndex,
|
|
1171
|
+
"aria-label": `Move field ${field.label} up`,
|
|
1167
1172
|
children: /*#__PURE__*/ jsx(MoveUp, {
|
|
1168
1173
|
className: "h-2.5 w-2.5"
|
|
1169
1174
|
})
|
|
@@ -1177,6 +1182,7 @@ function FormDesigner() {
|
|
|
1177
1182
|
moveField(section.id, field.id, 'down');
|
|
1178
1183
|
},
|
|
1179
1184
|
disabled: fieldIndex === section.fields.length - 1,
|
|
1185
|
+
"aria-label": `Move field ${field.label} down`,
|
|
1180
1186
|
children: /*#__PURE__*/ jsx(MoveDown, {
|
|
1181
1187
|
className: "h-2.5 w-2.5"
|
|
1182
1188
|
})
|
|
@@ -1189,6 +1195,7 @@ function FormDesigner() {
|
|
|
1189
1195
|
e.stopPropagation();
|
|
1190
1196
|
removeField(section.id, field.id);
|
|
1191
1197
|
},
|
|
1198
|
+
"aria-label": `Delete field ${field.label}`,
|
|
1192
1199
|
children: /*#__PURE__*/ jsx(Trash2, {
|
|
1193
1200
|
className: "h-2.5 w-2.5 text-destructive"
|
|
1194
1201
|
})
|
|
@@ -1439,6 +1446,7 @@ function FieldOptionsEditor({ options, onChange }) {
|
|
|
1439
1446
|
icon: true,
|
|
1440
1447
|
className: "text-muted-foreground hover:text-destructive",
|
|
1441
1448
|
onClick: ()=>removeOption(index),
|
|
1449
|
+
"aria-label": "Remove option",
|
|
1442
1450
|
children: /*#__PURE__*/ jsx(Trash2, {
|
|
1443
1451
|
className: "h-4 w-4"
|
|
1444
1452
|
})
|
|
@@ -1498,6 +1506,7 @@ function DataSourceEditor({ dataSource, onChange }) {
|
|
|
1498
1506
|
},
|
|
1499
1507
|
children: [
|
|
1500
1508
|
/*#__PURE__*/ jsx(SelectTrigger, {
|
|
1509
|
+
"aria-label": "Data source type",
|
|
1501
1510
|
children: /*#__PURE__*/ jsx(SelectValue, {})
|
|
1502
1511
|
}),
|
|
1503
1512
|
/*#__PURE__*/ jsxs(SelectContent, {
|
|
@@ -1679,28 +1688,28 @@ const RULE_EFFECTS = [
|
|
|
1679
1688
|
label: 'Show field',
|
|
1680
1689
|
description: 'Show this field when conditions are met',
|
|
1681
1690
|
Icon: Eye,
|
|
1682
|
-
color: 'text-
|
|
1691
|
+
color: 'text-success bg-success-background border-success/30'
|
|
1683
1692
|
},
|
|
1684
1693
|
{
|
|
1685
1694
|
value: 'hide',
|
|
1686
1695
|
label: 'Hide field',
|
|
1687
1696
|
description: 'Hide this field when conditions are met',
|
|
1688
1697
|
Icon: EyeOff,
|
|
1689
|
-
color: 'text-
|
|
1698
|
+
color: 'text-warning bg-warning-background border-warning/30'
|
|
1690
1699
|
},
|
|
1691
1700
|
{
|
|
1692
1701
|
value: 'require',
|
|
1693
1702
|
label: 'Make required',
|
|
1694
1703
|
description: 'Require this field when conditions are met',
|
|
1695
1704
|
Icon: Asterisk,
|
|
1696
|
-
color: 'text-
|
|
1705
|
+
color: 'text-error bg-error-background border-error/30'
|
|
1697
1706
|
},
|
|
1698
1707
|
{
|
|
1699
1708
|
value: 'disable',
|
|
1700
1709
|
label: 'Disable field',
|
|
1701
1710
|
description: 'Disable this field when conditions are met',
|
|
1702
1711
|
Icon: Ban,
|
|
1703
|
-
color: 'text-
|
|
1712
|
+
color: 'text-muted-foreground bg-muted border-border'
|
|
1704
1713
|
}
|
|
1705
1714
|
];
|
|
1706
1715
|
function RulesEditor({ rules = [], onChange, allFields, requiredMessage, onRequiredMessageChange }) {
|
|
@@ -1898,19 +1907,19 @@ function RulesEditor({ rules = [], onChange, allFields, requiredMessage, onRequi
|
|
|
1898
1907
|
const getEffectDescription = (rule)=>{
|
|
1899
1908
|
if (true === rule.effects.visible) return {
|
|
1900
1909
|
label: 'Show',
|
|
1901
|
-
color: 'text-
|
|
1910
|
+
color: 'text-success bg-success-background'
|
|
1902
1911
|
};
|
|
1903
1912
|
if (false === rule.effects.visible) return {
|
|
1904
1913
|
label: 'Hide',
|
|
1905
|
-
color: 'text-
|
|
1914
|
+
color: 'text-warning bg-warning-background'
|
|
1906
1915
|
};
|
|
1907
1916
|
if (true === rule.effects.required) return {
|
|
1908
1917
|
label: 'Required',
|
|
1909
|
-
color: 'text-
|
|
1918
|
+
color: 'text-error bg-error-background'
|
|
1910
1919
|
};
|
|
1911
1920
|
if (true === rule.effects.disabled) return {
|
|
1912
1921
|
label: 'Disabled',
|
|
1913
|
-
color: 'text-
|
|
1922
|
+
color: 'text-muted-foreground bg-muted'
|
|
1914
1923
|
};
|
|
1915
1924
|
return {
|
|
1916
1925
|
label: 'Unknown',
|
|
@@ -1934,7 +1943,7 @@ function RulesEditor({ rules = [], onChange, allFields, requiredMessage, onRequi
|
|
|
1934
1943
|
className: "flex items-center gap-3",
|
|
1935
1944
|
children: [
|
|
1936
1945
|
/*#__PURE__*/ jsx(Asterisk, {
|
|
1937
|
-
className: "h-5 w-5 text-
|
|
1946
|
+
className: "h-5 w-5 text-error"
|
|
1938
1947
|
}),
|
|
1939
1948
|
/*#__PURE__*/ jsxs("div", {
|
|
1940
1949
|
children: [
|
|
@@ -1951,6 +1960,7 @@ function RulesEditor({ rules = [], onChange, allFields, requiredMessage, onRequi
|
|
|
1951
1960
|
]
|
|
1952
1961
|
}),
|
|
1953
1962
|
/*#__PURE__*/ jsx(Checkbox, {
|
|
1963
|
+
"aria-label": "Always required",
|
|
1954
1964
|
checked: isAlwaysRequired,
|
|
1955
1965
|
onCheckedChange: (checked)=>{
|
|
1956
1966
|
if (checked) {
|
|
@@ -2044,6 +2054,7 @@ function RulesEditor({ rules = [], onChange, allFields, requiredMessage, onRequi
|
|
|
2044
2054
|
size: "sm",
|
|
2045
2055
|
className: "h-7 w-7 p-0",
|
|
2046
2056
|
onClick: ()=>editRule(index),
|
|
2057
|
+
"aria-label": "Edit rule",
|
|
2047
2058
|
children: /*#__PURE__*/ jsx(Settings, {
|
|
2048
2059
|
className: "h-3.5 w-3.5"
|
|
2049
2060
|
})
|
|
@@ -2054,6 +2065,7 @@ function RulesEditor({ rules = [], onChange, allFields, requiredMessage, onRequi
|
|
|
2054
2065
|
icon: true,
|
|
2055
2066
|
className: "text-destructive hover:text-destructive",
|
|
2056
2067
|
onClick: ()=>deleteRule(index),
|
|
2068
|
+
"aria-label": "Delete rule",
|
|
2057
2069
|
children: /*#__PURE__*/ jsx(Trash2, {
|
|
2058
2070
|
className: "h-3.5 w-3.5"
|
|
2059
2071
|
})
|
|
@@ -2125,6 +2137,7 @@ function RulesEditor({ rules = [], onChange, allFields, requiredMessage, onRequi
|
|
|
2125
2137
|
onValueChange: (v)=>setConditionOperator(v),
|
|
2126
2138
|
children: [
|
|
2127
2139
|
/*#__PURE__*/ jsx(SelectTrigger, {
|
|
2140
|
+
"aria-label": "Condition match mode",
|
|
2128
2141
|
className: "w-24 h-7 text-xs",
|
|
2129
2142
|
children: /*#__PURE__*/ jsx(SelectValue, {})
|
|
2130
2143
|
}),
|
|
@@ -2174,6 +2187,7 @@ function RulesEditor({ rules = [], onChange, allFields, requiredMessage, onRequi
|
|
|
2174
2187
|
}),
|
|
2175
2188
|
children: [
|
|
2176
2189
|
/*#__PURE__*/ jsx(SelectTrigger, {
|
|
2190
|
+
"aria-label": "Condition field",
|
|
2177
2191
|
className: "h-8 text-sm",
|
|
2178
2192
|
children: /*#__PURE__*/ jsx(SelectValue, {
|
|
2179
2193
|
placeholder: "Select field..."
|
|
@@ -2197,6 +2211,7 @@ function RulesEditor({ rules = [], onChange, allFields, requiredMessage, onRequi
|
|
|
2197
2211
|
}),
|
|
2198
2212
|
children: [
|
|
2199
2213
|
/*#__PURE__*/ jsx(SelectTrigger, {
|
|
2214
|
+
"aria-label": "Condition operator",
|
|
2200
2215
|
className: "w-32 h-8 text-sm",
|
|
2201
2216
|
children: /*#__PURE__*/ jsx(SelectValue, {})
|
|
2202
2217
|
}),
|
|
@@ -2217,6 +2232,7 @@ function RulesEditor({ rules = [], onChange, allFields, requiredMessage, onRequi
|
|
|
2217
2232
|
}),
|
|
2218
2233
|
children: [
|
|
2219
2234
|
/*#__PURE__*/ jsx(SelectTrigger, {
|
|
2235
|
+
"aria-label": "Condition value",
|
|
2220
2236
|
className: "h-8 text-sm",
|
|
2221
2237
|
children: /*#__PURE__*/ jsx(SelectValue, {
|
|
2222
2238
|
placeholder: "Select value..."
|
|
@@ -924,7 +924,7 @@ function FileUploadExample() {
|
|
|
924
924
|
children: [
|
|
925
925
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(badge_cjs_namespaceObject.Badge, {
|
|
926
926
|
variant: "outline",
|
|
927
|
-
className: "bg-
|
|
927
|
+
className: "bg-success-background text-success border-success/30",
|
|
928
928
|
children: "✓"
|
|
929
929
|
}),
|
|
930
930
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
@@ -889,7 +889,7 @@ function FileUploadExample() {
|
|
|
889
889
|
children: [
|
|
890
890
|
/*#__PURE__*/ jsx(Badge, {
|
|
891
891
|
variant: "outline",
|
|
892
|
-
className: "bg-
|
|
892
|
+
className: "bg-success-background text-success border-success/30",
|
|
893
893
|
children: "✓"
|
|
894
894
|
}),
|
|
895
895
|
/*#__PURE__*/ jsx("span", {
|
|
@@ -63,8 +63,7 @@ function FormStateViewer({ form, title = 'Form State', className = '', compact =
|
|
|
63
63
|
className: "flex gap-2",
|
|
64
64
|
children: [
|
|
65
65
|
stats.isValid ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(badge_cjs_namespaceObject.Badge, {
|
|
66
|
-
variant: "
|
|
67
|
-
className: "bg-green-600",
|
|
66
|
+
variant: "success",
|
|
68
67
|
children: [
|
|
69
68
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.CheckCircle2, {
|
|
70
69
|
className: "w-3 h-3 mr-1"
|
|
@@ -117,8 +116,7 @@ function FormStateViewer({ form, title = 'Form State', className = '', compact =
|
|
|
117
116
|
className: "flex gap-2",
|
|
118
117
|
children: [
|
|
119
118
|
stats.isValid ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(badge_cjs_namespaceObject.Badge, {
|
|
120
|
-
variant: "
|
|
121
|
-
className: "bg-green-600",
|
|
119
|
+
variant: "success",
|
|
122
120
|
children: [
|
|
123
121
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.CheckCircle2, {
|
|
124
122
|
className: "w-3 h-3 mr-1"
|
|
@@ -295,7 +293,7 @@ function FormStateViewer({ form, title = 'Form State', className = '', compact =
|
|
|
295
293
|
children: "Validation errors from Zod schema"
|
|
296
294
|
}),
|
|
297
295
|
0 === Object.keys(formState.errors).length ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
298
|
-
className: "flex items-center gap-2 p-4 bg-
|
|
296
|
+
className: "flex items-center gap-2 p-4 bg-success-background/25 rounded text-success",
|
|
299
297
|
children: [
|
|
300
298
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.CheckCircle2, {
|
|
301
299
|
className: "w-5 h-5"
|
|
@@ -466,8 +464,7 @@ function StateItem({ label, value, type = 'boolean' }) {
|
|
|
466
464
|
children: label
|
|
467
465
|
}),
|
|
468
466
|
'boolean' === type ? value ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(badge_cjs_namespaceObject.Badge, {
|
|
469
|
-
variant: "
|
|
470
|
-
className: "bg-green-600",
|
|
467
|
+
variant: "success",
|
|
471
468
|
children: [
|
|
472
469
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.CheckCircle2, {
|
|
473
470
|
className: "w-3 h-3 mr-1"
|
|
@@ -35,8 +35,7 @@ function FormStateViewer({ form, title = 'Form State', className = '', compact =
|
|
|
35
35
|
className: "flex gap-2",
|
|
36
36
|
children: [
|
|
37
37
|
stats.isValid ? /*#__PURE__*/ jsxs(Badge, {
|
|
38
|
-
variant: "
|
|
39
|
-
className: "bg-green-600",
|
|
38
|
+
variant: "success",
|
|
40
39
|
children: [
|
|
41
40
|
/*#__PURE__*/ jsx(CheckCircle2, {
|
|
42
41
|
className: "w-3 h-3 mr-1"
|
|
@@ -89,8 +88,7 @@ function FormStateViewer({ form, title = 'Form State', className = '', compact =
|
|
|
89
88
|
className: "flex gap-2",
|
|
90
89
|
children: [
|
|
91
90
|
stats.isValid ? /*#__PURE__*/ jsxs(Badge, {
|
|
92
|
-
variant: "
|
|
93
|
-
className: "bg-green-600",
|
|
91
|
+
variant: "success",
|
|
94
92
|
children: [
|
|
95
93
|
/*#__PURE__*/ jsx(CheckCircle2, {
|
|
96
94
|
className: "w-3 h-3 mr-1"
|
|
@@ -267,7 +265,7 @@ function FormStateViewer({ form, title = 'Form State', className = '', compact =
|
|
|
267
265
|
children: "Validation errors from Zod schema"
|
|
268
266
|
}),
|
|
269
267
|
0 === Object.keys(formState.errors).length ? /*#__PURE__*/ jsxs("div", {
|
|
270
|
-
className: "flex items-center gap-2 p-4 bg-
|
|
268
|
+
className: "flex items-center gap-2 p-4 bg-success-background/25 rounded text-success",
|
|
271
269
|
children: [
|
|
272
270
|
/*#__PURE__*/ jsx(CheckCircle2, {
|
|
273
271
|
className: "w-5 h-5"
|
|
@@ -438,8 +436,7 @@ function StateItem({ label, value, type = 'boolean' }) {
|
|
|
438
436
|
children: label
|
|
439
437
|
}),
|
|
440
438
|
'boolean' === type ? value ? /*#__PURE__*/ jsxs(Badge, {
|
|
441
|
-
variant: "
|
|
442
|
-
className: "bg-green-600",
|
|
439
|
+
variant: "success",
|
|
443
440
|
children: [
|
|
444
441
|
/*#__PURE__*/ jsx(CheckCircle2, {
|
|
445
442
|
className: "w-3 h-3 mr-1"
|
|
@@ -360,7 +360,7 @@ function FormSection({ section, context, customComponents, disabled, sectionVari
|
|
|
360
360
|
const isPlain = 'plain' === sectionVariant;
|
|
361
361
|
const dividerClassName = 'border-t first:border-t-0';
|
|
362
362
|
const wrapperClassName = isPlain ? 'border-b-0' : 'border rounded-lg px-3';
|
|
363
|
-
const triggerClassName = isPlain ? '
|
|
363
|
+
const triggerClassName = isPlain ? 'py-4 text-sm font-semibold hover:no-underline' : 'text-sm font-medium';
|
|
364
364
|
const fieldsGrid = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
365
365
|
className: "grid",
|
|
366
366
|
style: {
|
|
@@ -332,7 +332,7 @@ function FormSection({ section, context, customComponents, disabled, sectionVari
|
|
|
332
332
|
const isPlain = 'plain' === sectionVariant;
|
|
333
333
|
const dividerClassName = 'border-t first:border-t-0';
|
|
334
334
|
const wrapperClassName = isPlain ? 'border-b-0' : 'border rounded-lg px-3';
|
|
335
|
-
const triggerClassName = isPlain ? '
|
|
335
|
+
const triggerClassName = isPlain ? 'py-4 text-sm font-semibold hover:no-underline' : 'text-sm font-medium';
|
|
336
336
|
const fieldsGrid = /*#__PURE__*/ jsx("div", {
|
|
337
337
|
className: "grid",
|
|
338
338
|
style: {
|