@uipath/apollo-wind 2.79.1 → 2.79.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/forms/metadata-form.cjs +3 -2
- package/dist/components/forms/metadata-form.js +3 -2
- package/dist/components/ui/field-actions/ai-assist-action.cjs +7 -5
- package/dist/components/ui/field-actions/ai-assist-action.js +7 -5
- package/dist/components/ui/field-actions/collapse.cjs +7 -7
- package/dist/components/ui/field-actions/collapse.d.ts +6 -3
- package/dist/components/ui/field-actions/collapse.js +3 -3
- package/dist/components/ui/field-actions/insert-variable-action.cjs +7 -7
- package/dist/components/ui/field-actions/insert-variable-action.js +8 -8
- package/dist/components/ui/index.cjs +42 -42
- package/dist/components/ui/quick-form-field/components/field-header.cjs +14 -14
- package/dist/components/ui/quick-form-field/components/field-header.js +15 -15
- package/dist/styles.css +5 -13
- package/dist/tailwind.css +2 -1
- package/package.json +1 -1
|
@@ -587,9 +587,10 @@ const metadata_form_FormSection = /*#__PURE__*/ external_react_default().memo(fu
|
|
|
587
587
|
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
588
588
|
className: isPlain ? dividerClassName : wrapperClassName,
|
|
589
589
|
children: [
|
|
590
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("
|
|
590
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("h3", {
|
|
591
|
+
"data-slot": "form-section-header",
|
|
591
592
|
className: "flex",
|
|
592
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("
|
|
593
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
593
594
|
className: isPlain ? `flex flex-1 items-center justify-start gap-2 pb-4 text-sm font-semibold ${plainTopClassName}` : 'flex flex-1 items-center justify-between py-4 text-sm font-medium',
|
|
594
595
|
children: section.title
|
|
595
596
|
})
|
|
@@ -548,9 +548,10 @@ const metadata_form_FormSection = /*#__PURE__*/ react.memo(function({ section, c
|
|
|
548
548
|
return /*#__PURE__*/ jsxs("div", {
|
|
549
549
|
className: isPlain ? dividerClassName : wrapperClassName,
|
|
550
550
|
children: [
|
|
551
|
-
/*#__PURE__*/ jsx("
|
|
551
|
+
/*#__PURE__*/ jsx("h3", {
|
|
552
|
+
"data-slot": "form-section-header",
|
|
552
553
|
className: "flex",
|
|
553
|
-
children: /*#__PURE__*/ jsx("
|
|
554
|
+
children: /*#__PURE__*/ jsx("span", {
|
|
554
555
|
className: isPlain ? `flex flex-1 items-center justify-start gap-2 pb-4 text-sm font-semibold ${plainTopClassName}` : 'flex flex-1 items-center justify-between py-4 text-sm font-medium',
|
|
555
556
|
children: section.title
|
|
556
557
|
})
|
|
@@ -35,6 +35,7 @@ const external_label_cjs_namespaceObject = require("../label.cjs");
|
|
|
35
35
|
const external_popover_cjs_namespaceObject = require("../popover.cjs");
|
|
36
36
|
const external_textarea_cjs_namespaceObject = require("../textarea.cjs");
|
|
37
37
|
const external_tooltip_cjs_namespaceObject = require("../tooltip.cjs");
|
|
38
|
+
const external_collapse_cjs_namespaceObject = require("./collapse.cjs");
|
|
38
39
|
const DEFAULT_AI_ASSIST_ACTION_STRINGS = {
|
|
39
40
|
trigger: 'AI assist',
|
|
40
41
|
tooltip: 'Generate with AI',
|
|
@@ -84,14 +85,15 @@ function AiAssistAction({ onGenerate, hint, renderContent, disabled, strings })
|
|
|
84
85
|
asChild: true,
|
|
85
86
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_popover_cjs_namespaceObject.PopoverTrigger, {
|
|
86
87
|
asChild: true,
|
|
87
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
88
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_button_cjs_namespaceObject.Button, {
|
|
88
89
|
type: "button",
|
|
90
|
+
variant: "ghost",
|
|
91
|
+
size: "3xs",
|
|
92
|
+
icon: true,
|
|
89
93
|
"aria-label": text.trigger,
|
|
90
94
|
disabled: disabled,
|
|
91
|
-
className:
|
|
92
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Sparkles, {
|
|
93
|
-
size: 12
|
|
94
|
-
})
|
|
95
|
+
className: external_collapse_cjs_namespaceObject.FIELD_ACTION_CLASS,
|
|
96
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Sparkles, {})
|
|
95
97
|
})
|
|
96
98
|
})
|
|
97
99
|
}),
|
|
@@ -6,6 +6,7 @@ import { Label } from "../label.js";
|
|
|
6
6
|
import { Popover, PopoverContent, PopoverTrigger } from "../popover.js";
|
|
7
7
|
import { Textarea } from "../textarea.js";
|
|
8
8
|
import { Tooltip, TooltipContent, TooltipTrigger } from "../tooltip.js";
|
|
9
|
+
import { FIELD_ACTION_CLASS } from "./collapse.js";
|
|
9
10
|
const DEFAULT_AI_ASSIST_ACTION_STRINGS = {
|
|
10
11
|
trigger: 'AI assist',
|
|
11
12
|
tooltip: 'Generate with AI',
|
|
@@ -55,14 +56,15 @@ function AiAssistAction({ onGenerate, hint, renderContent, disabled, strings })
|
|
|
55
56
|
asChild: true,
|
|
56
57
|
children: /*#__PURE__*/ jsx(PopoverTrigger, {
|
|
57
58
|
asChild: true,
|
|
58
|
-
children: /*#__PURE__*/ jsx(
|
|
59
|
+
children: /*#__PURE__*/ jsx(Button, {
|
|
59
60
|
type: "button",
|
|
61
|
+
variant: "ghost",
|
|
62
|
+
size: "3xs",
|
|
63
|
+
icon: true,
|
|
60
64
|
"aria-label": text.trigger,
|
|
61
65
|
disabled: disabled,
|
|
62
|
-
className:
|
|
63
|
-
children: /*#__PURE__*/ jsx(Sparkles, {
|
|
64
|
-
size: 12
|
|
65
|
-
})
|
|
66
|
+
className: FIELD_ACTION_CLASS,
|
|
67
|
+
children: /*#__PURE__*/ jsx(Sparkles, {})
|
|
66
68
|
})
|
|
67
69
|
})
|
|
68
70
|
}),
|
|
@@ -25,19 +25,19 @@ var __webpack_exports__ = {};
|
|
|
25
25
|
__webpack_require__.r(__webpack_exports__);
|
|
26
26
|
__webpack_require__.d(__webpack_exports__, {
|
|
27
27
|
COLLAPSED_HIDDEN: ()=>COLLAPSED_HIDDEN,
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
COLLAPSED_ONLY: ()=>COLLAPSED_ONLY,
|
|
29
|
+
FIELD_ACTION_CLASS: ()=>FIELD_ACTION_CLASS
|
|
30
30
|
});
|
|
31
31
|
const COLLAPSED_HIDDEN = '@max-[259px]:hidden';
|
|
32
|
-
const
|
|
33
|
-
const
|
|
32
|
+
const COLLAPSED_ONLY = 'hidden @max-[259px]:flex';
|
|
33
|
+
const FIELD_ACTION_CLASS = 'text-muted-foreground hover:bg-accent hover:text-foreground [&_svg]:size-3';
|
|
34
34
|
exports.COLLAPSED_HIDDEN = __webpack_exports__.COLLAPSED_HIDDEN;
|
|
35
|
-
exports.COLLAPSED_ICON_PADDING = __webpack_exports__.COLLAPSED_ICON_PADDING;
|
|
36
35
|
exports.COLLAPSED_ONLY = __webpack_exports__.COLLAPSED_ONLY;
|
|
36
|
+
exports.FIELD_ACTION_CLASS = __webpack_exports__.FIELD_ACTION_CLASS;
|
|
37
37
|
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
38
38
|
"COLLAPSED_HIDDEN",
|
|
39
|
-
"
|
|
40
|
-
"
|
|
39
|
+
"COLLAPSED_ONLY",
|
|
40
|
+
"FIELD_ACTION_CLASS"
|
|
41
41
|
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
42
42
|
Object.defineProperty(exports, '__esModule', {
|
|
43
43
|
value: true
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
/** Hidden once collapsed, such as an action's text. */
|
|
2
2
|
export declare const COLLAPSED_HIDDEN = "@max-[259px]:hidden";
|
|
3
|
-
/** The tighter padding of an action collapsed to its icon. */
|
|
4
|
-
export declare const COLLAPSED_ICON_PADDING = "@max-[259px]:px-1.5";
|
|
5
3
|
/** Shown only once collapsed. */
|
|
6
|
-
export declare const COLLAPSED_ONLY = "hidden @max-[259px]:
|
|
4
|
+
export declare const COLLAPSED_ONLY = "hidden @max-[259px]:flex";
|
|
5
|
+
/**
|
|
6
|
+
* A header action is a ghost `3xs` Button, the height FormFieldHeader's `min-h-6` row expects, in
|
|
7
|
+
* the muted tone of the field's other icon buttons. Its icons are 12px.
|
|
8
|
+
*/
|
|
9
|
+
export declare const FIELD_ACTION_CLASS = "text-muted-foreground hover:bg-accent hover:text-foreground [&_svg]:size-3";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
const COLLAPSED_HIDDEN = '@max-[259px]:hidden';
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
export { COLLAPSED_HIDDEN,
|
|
2
|
+
const COLLAPSED_ONLY = 'hidden @max-[259px]:flex';
|
|
3
|
+
const FIELD_ACTION_CLASS = 'text-muted-foreground hover:bg-accent hover:text-foreground [&_svg]:size-3';
|
|
4
|
+
export { COLLAPSED_HIDDEN, COLLAPSED_ONLY, FIELD_ACTION_CLASS };
|
|
@@ -30,6 +30,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
30
30
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
31
31
|
const external_lucide_react_namespaceObject = require("lucide-react");
|
|
32
32
|
const external_react_namespaceObject = require("react");
|
|
33
|
+
const external_button_cjs_namespaceObject = require("../button.cjs");
|
|
33
34
|
const index_cjs_namespaceObject = require("../variable-picker/index.cjs");
|
|
34
35
|
const external_lib_index_cjs_namespaceObject = require("../../../lib/index.cjs");
|
|
35
36
|
const external_collapse_cjs_namespaceObject = require("./collapse.cjs");
|
|
@@ -64,23 +65,22 @@ function InsertVariableAction({ variables = NO_VARIABLES, renderPicker, onInsert
|
|
|
64
65
|
onSelect: (variable)=>{
|
|
65
66
|
if (variable.value) onInsert?.(variable.value, variable);
|
|
66
67
|
},
|
|
67
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(
|
|
68
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(external_button_cjs_namespaceObject.Button, {
|
|
68
69
|
type: "button",
|
|
70
|
+
variant: "ghost",
|
|
71
|
+
size: "3xs",
|
|
69
72
|
"aria-label": text.ariaLabel,
|
|
70
73
|
title: text.ariaLabel,
|
|
71
74
|
disabled: inert,
|
|
72
|
-
className: (0, external_lib_index_cjs_namespaceObject.cn)('
|
|
75
|
+
className: (0, external_lib_index_cjs_namespaceObject.cn)('gap-1', external_collapse_cjs_namespaceObject.FIELD_ACTION_CLASS),
|
|
73
76
|
children: [
|
|
74
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Braces, {
|
|
75
|
-
size: 12
|
|
76
|
-
}),
|
|
77
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Braces, {}),
|
|
77
78
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
78
79
|
className: collapsedTextClass,
|
|
79
80
|
children: text.label
|
|
80
81
|
}),
|
|
81
82
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.ChevronDown, {
|
|
82
|
-
|
|
83
|
-
className: collapsedTextClass
|
|
83
|
+
className: (0, external_lib_index_cjs_namespaceObject.cn)('!size-2.5', collapsedTextClass)
|
|
84
84
|
})
|
|
85
85
|
]
|
|
86
86
|
})
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Braces, ChevronDown } from "lucide-react";
|
|
3
3
|
import { useState } from "react";
|
|
4
|
+
import { Button } from "../button.js";
|
|
4
5
|
import { VariablePicker } from "../variable-picker/index.js";
|
|
5
6
|
import { cn } from "../../../lib/index.js";
|
|
6
|
-
import { COLLAPSED_HIDDEN,
|
|
7
|
+
import { COLLAPSED_HIDDEN, FIELD_ACTION_CLASS } from "./collapse.js";
|
|
7
8
|
const NO_VARIABLES = [];
|
|
8
9
|
const DEFAULT_INSERT_VARIABLE_ACTION_STRINGS = {
|
|
9
10
|
label: 'Insert',
|
|
@@ -35,23 +36,22 @@ function InsertVariableAction({ variables = NO_VARIABLES, renderPicker, onInsert
|
|
|
35
36
|
onSelect: (variable)=>{
|
|
36
37
|
if (variable.value) onInsert?.(variable.value, variable);
|
|
37
38
|
},
|
|
38
|
-
children: /*#__PURE__*/ jsxs(
|
|
39
|
+
children: /*#__PURE__*/ jsxs(Button, {
|
|
39
40
|
type: "button",
|
|
41
|
+
variant: "ghost",
|
|
42
|
+
size: "3xs",
|
|
40
43
|
"aria-label": text.ariaLabel,
|
|
41
44
|
title: text.ariaLabel,
|
|
42
45
|
disabled: inert,
|
|
43
|
-
className: cn('
|
|
46
|
+
className: cn('gap-1', FIELD_ACTION_CLASS),
|
|
44
47
|
children: [
|
|
45
|
-
/*#__PURE__*/ jsx(Braces, {
|
|
46
|
-
size: 12
|
|
47
|
-
}),
|
|
48
|
+
/*#__PURE__*/ jsx(Braces, {}),
|
|
48
49
|
/*#__PURE__*/ jsx("span", {
|
|
49
50
|
className: collapsedTextClass,
|
|
50
51
|
children: text.label
|
|
51
52
|
}),
|
|
52
53
|
/*#__PURE__*/ jsx(ChevronDown, {
|
|
53
|
-
|
|
54
|
-
className: collapsedTextClass
|
|
54
|
+
className: cn('!size-2.5', collapsedTextClass)
|
|
55
55
|
})
|
|
56
56
|
]
|
|
57
57
|
})
|
|
@@ -18,7 +18,7 @@ var __webpack_modules__ = {
|
|
|
18
18
|
"./avatar" (module) {
|
|
19
19
|
module.exports = require("./avatar.cjs");
|
|
20
20
|
},
|
|
21
|
-
"
|
|
21
|
+
"./badge" (module) {
|
|
22
22
|
module.exports = require("./badge.cjs");
|
|
23
23
|
},
|
|
24
24
|
"./boolean-radio-group" (module) {
|
|
@@ -33,13 +33,13 @@ var __webpack_modules__ = {
|
|
|
33
33
|
"./button-group" (module) {
|
|
34
34
|
module.exports = require("./button-group.cjs");
|
|
35
35
|
},
|
|
36
|
-
"
|
|
36
|
+
"@/components/ui/button" (module) {
|
|
37
37
|
module.exports = require("./button.cjs");
|
|
38
38
|
},
|
|
39
39
|
"./calendar" (module) {
|
|
40
40
|
module.exports = require("./calendar.cjs");
|
|
41
41
|
},
|
|
42
|
-
"
|
|
42
|
+
"./card" (module) {
|
|
43
43
|
module.exports = require("./card.cjs");
|
|
44
44
|
},
|
|
45
45
|
"./chart" (module) {
|
|
@@ -57,19 +57,19 @@ var __webpack_modules__ = {
|
|
|
57
57
|
"./citation" (module) {
|
|
58
58
|
module.exports = require("./citation.cjs");
|
|
59
59
|
},
|
|
60
|
-
"
|
|
60
|
+
"./code-block" (module) {
|
|
61
61
|
module.exports = require("./code-block.cjs");
|
|
62
62
|
},
|
|
63
|
-
"
|
|
63
|
+
"./collapsible" (module) {
|
|
64
64
|
module.exports = require("./collapsible.cjs");
|
|
65
65
|
},
|
|
66
66
|
"./combobox" (module) {
|
|
67
67
|
module.exports = require("./combobox.cjs");
|
|
68
68
|
},
|
|
69
|
-
"
|
|
69
|
+
"./command" (module) {
|
|
70
70
|
module.exports = require("./command.cjs");
|
|
71
71
|
},
|
|
72
|
-
"
|
|
72
|
+
"./context-menu" (module) {
|
|
73
73
|
module.exports = require("./context-menu.cjs");
|
|
74
74
|
},
|
|
75
75
|
"./data-table" (module) {
|
|
@@ -81,7 +81,7 @@ var __webpack_modules__ = {
|
|
|
81
81
|
"./datetime-picker" (module) {
|
|
82
82
|
module.exports = require("./datetime-picker.cjs");
|
|
83
83
|
},
|
|
84
|
-
"
|
|
84
|
+
"./dialog" (module) {
|
|
85
85
|
module.exports = require("./dialog.cjs");
|
|
86
86
|
},
|
|
87
87
|
"./disclosure-tree" (module) {
|
|
@@ -90,13 +90,13 @@ var __webpack_modules__ = {
|
|
|
90
90
|
"./drawer" (module) {
|
|
91
91
|
module.exports = require("./drawer.cjs");
|
|
92
92
|
},
|
|
93
|
-
"
|
|
93
|
+
"./dropdown-menu" (module) {
|
|
94
94
|
module.exports = require("./dropdown-menu.cjs");
|
|
95
95
|
},
|
|
96
96
|
"./dropzone-overlay" (module) {
|
|
97
97
|
module.exports = require("./dropzone-overlay.cjs");
|
|
98
98
|
},
|
|
99
|
-
"
|
|
99
|
+
"./editable-cell" (module) {
|
|
100
100
|
module.exports = require("./editable-cell.cjs");
|
|
101
101
|
},
|
|
102
102
|
"./empty-state" (module) {
|
|
@@ -117,25 +117,25 @@ var __webpack_modules__ = {
|
|
|
117
117
|
"./form-field" (module) {
|
|
118
118
|
module.exports = require("./form-field.cjs");
|
|
119
119
|
},
|
|
120
|
-
"
|
|
120
|
+
"./hover-card" (module) {
|
|
121
121
|
module.exports = require("./hover-card.cjs");
|
|
122
122
|
},
|
|
123
|
-
"
|
|
123
|
+
"./info-tooltip" (module) {
|
|
124
124
|
module.exports = require("./info-tooltip.cjs");
|
|
125
125
|
},
|
|
126
|
-
"
|
|
126
|
+
"./input-group" (module) {
|
|
127
127
|
module.exports = require("./input-group.cjs");
|
|
128
128
|
},
|
|
129
|
-
"
|
|
129
|
+
"@/components/ui/input" (module) {
|
|
130
130
|
module.exports = require("./input.cjs");
|
|
131
131
|
},
|
|
132
132
|
"./json-tree-view" (module) {
|
|
133
133
|
module.exports = require("./json-tree-view/index.cjs");
|
|
134
134
|
},
|
|
135
|
-
"
|
|
135
|
+
"./label" (module) {
|
|
136
136
|
module.exports = require("./label.cjs");
|
|
137
137
|
},
|
|
138
|
-
"
|
|
138
|
+
"./layout" (module) {
|
|
139
139
|
module.exports = require("./layout/index.cjs");
|
|
140
140
|
},
|
|
141
141
|
"./live-region" (module) {
|
|
@@ -174,7 +174,7 @@ var __webpack_modules__ = {
|
|
|
174
174
|
"./panel-tabs" (module) {
|
|
175
175
|
module.exports = require("./panel-tabs.cjs");
|
|
176
176
|
},
|
|
177
|
-
"
|
|
177
|
+
"@/components/ui/popover" (module) {
|
|
178
178
|
module.exports = require("./popover.cjs");
|
|
179
179
|
},
|
|
180
180
|
"@/components/ui/portal-container" (module) {
|
|
@@ -201,7 +201,7 @@ var __webpack_modules__ = {
|
|
|
201
201
|
"./reference-chip-colors" (module) {
|
|
202
202
|
module.exports = require("./reference-chip-colors.cjs");
|
|
203
203
|
},
|
|
204
|
-
"
|
|
204
|
+
"./reference-chip" (module) {
|
|
205
205
|
module.exports = require("./reference-chip.cjs");
|
|
206
206
|
},
|
|
207
207
|
"./resizable" (module) {
|
|
@@ -255,7 +255,7 @@ var __webpack_modules__ = {
|
|
|
255
255
|
"./tabs" (module) {
|
|
256
256
|
module.exports = require("./tabs.cjs");
|
|
257
257
|
},
|
|
258
|
-
"
|
|
258
|
+
"./textarea" (module) {
|
|
259
259
|
module.exports = require("./textarea.cjs");
|
|
260
260
|
},
|
|
261
261
|
"./thinking-indicator" (module) {
|
|
@@ -264,7 +264,7 @@ var __webpack_modules__ = {
|
|
|
264
264
|
"./toggle-group" (module) {
|
|
265
265
|
module.exports = require("./toggle-group.cjs");
|
|
266
266
|
},
|
|
267
|
-
"
|
|
267
|
+
"@/components/ui/toggle" (module) {
|
|
268
268
|
module.exports = require("./toggle.cjs");
|
|
269
269
|
},
|
|
270
270
|
"./tool-call" (module) {
|
|
@@ -276,7 +276,7 @@ var __webpack_modules__ = {
|
|
|
276
276
|
"./tree-view" (module) {
|
|
277
277
|
module.exports = require("./tree-view.cjs");
|
|
278
278
|
},
|
|
279
|
-
"
|
|
279
|
+
"./variable-picker" (module) {
|
|
280
280
|
module.exports = require("./variable-picker/index.cjs");
|
|
281
281
|
},
|
|
282
282
|
"./variable-value-control" (module) {
|
|
@@ -392,7 +392,7 @@ var __webpack_exports__ = {};
|
|
|
392
392
|
"ReferenceChip"
|
|
393
393
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_avatar__rspack_import_5[__rspack_import_key];
|
|
394
394
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
395
|
-
var _badge__rspack_import_6 = __webpack_require__("
|
|
395
|
+
var _badge__rspack_import_6 = __webpack_require__("./badge");
|
|
396
396
|
var __rspack_reexport = {};
|
|
397
397
|
for(const __rspack_import_key in _badge__rspack_import_6)if ([
|
|
398
398
|
"getReferenceChipColors",
|
|
@@ -432,7 +432,7 @@ var __webpack_exports__ = {};
|
|
|
432
432
|
"ReferenceChip"
|
|
433
433
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_bubble__rspack_import_9[__rspack_import_key];
|
|
434
434
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
435
|
-
var _button__rspack_import_10 = __webpack_require__("
|
|
435
|
+
var _button__rspack_import_10 = __webpack_require__("@/components/ui/button");
|
|
436
436
|
var __rspack_reexport = {};
|
|
437
437
|
for(const __rspack_import_key in _button__rspack_import_10)if ([
|
|
438
438
|
"getReferenceChipColors",
|
|
@@ -462,7 +462,7 @@ var __webpack_exports__ = {};
|
|
|
462
462
|
"ReferenceChip"
|
|
463
463
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_calendar__rspack_import_12[__rspack_import_key];
|
|
464
464
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
465
|
-
var _card__rspack_import_13 = __webpack_require__("
|
|
465
|
+
var _card__rspack_import_13 = __webpack_require__("./card");
|
|
466
466
|
var __rspack_reexport = {};
|
|
467
467
|
for(const __rspack_import_key in _card__rspack_import_13)if ([
|
|
468
468
|
"getReferenceChipColors",
|
|
@@ -522,7 +522,7 @@ var __webpack_exports__ = {};
|
|
|
522
522
|
"ReferenceChip"
|
|
523
523
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_citation__rspack_import_18[__rspack_import_key];
|
|
524
524
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
525
|
-
var _code_block__rspack_import_19 = __webpack_require__("
|
|
525
|
+
var _code_block__rspack_import_19 = __webpack_require__("./code-block");
|
|
526
526
|
var __rspack_reexport = {};
|
|
527
527
|
for(const __rspack_import_key in _code_block__rspack_import_19)if ([
|
|
528
528
|
"getReferenceChipColors",
|
|
@@ -532,7 +532,7 @@ var __webpack_exports__ = {};
|
|
|
532
532
|
"ReferenceChip"
|
|
533
533
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_code_block__rspack_import_19[__rspack_import_key];
|
|
534
534
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
535
|
-
var _collapsible__rspack_import_20 = __webpack_require__("
|
|
535
|
+
var _collapsible__rspack_import_20 = __webpack_require__("./collapsible");
|
|
536
536
|
var __rspack_reexport = {};
|
|
537
537
|
for(const __rspack_import_key in _collapsible__rspack_import_20)if ([
|
|
538
538
|
"getReferenceChipColors",
|
|
@@ -552,7 +552,7 @@ var __webpack_exports__ = {};
|
|
|
552
552
|
"ReferenceChip"
|
|
553
553
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_combobox__rspack_import_21[__rspack_import_key];
|
|
554
554
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
555
|
-
var _command__rspack_import_22 = __webpack_require__("
|
|
555
|
+
var _command__rspack_import_22 = __webpack_require__("./command");
|
|
556
556
|
var __rspack_reexport = {};
|
|
557
557
|
for(const __rspack_import_key in _command__rspack_import_22)if ([
|
|
558
558
|
"getReferenceChipColors",
|
|
@@ -562,7 +562,7 @@ var __webpack_exports__ = {};
|
|
|
562
562
|
"ReferenceChip"
|
|
563
563
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_command__rspack_import_22[__rspack_import_key];
|
|
564
564
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
565
|
-
var _context_menu__rspack_import_23 = __webpack_require__("
|
|
565
|
+
var _context_menu__rspack_import_23 = __webpack_require__("./context-menu");
|
|
566
566
|
var __rspack_reexport = {};
|
|
567
567
|
for(const __rspack_import_key in _context_menu__rspack_import_23)if ([
|
|
568
568
|
"getReferenceChipColors",
|
|
@@ -602,7 +602,7 @@ var __webpack_exports__ = {};
|
|
|
602
602
|
"ReferenceChip"
|
|
603
603
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_datetime_picker__rspack_import_26[__rspack_import_key];
|
|
604
604
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
605
|
-
var _dialog__rspack_import_27 = __webpack_require__("
|
|
605
|
+
var _dialog__rspack_import_27 = __webpack_require__("./dialog");
|
|
606
606
|
var __rspack_reexport = {};
|
|
607
607
|
for(const __rspack_import_key in _dialog__rspack_import_27)if ([
|
|
608
608
|
"getReferenceChipColors",
|
|
@@ -632,7 +632,7 @@ var __webpack_exports__ = {};
|
|
|
632
632
|
"ReferenceChip"
|
|
633
633
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_drawer__rspack_import_29[__rspack_import_key];
|
|
634
634
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
635
|
-
var _dropdown_menu__rspack_import_30 = __webpack_require__("
|
|
635
|
+
var _dropdown_menu__rspack_import_30 = __webpack_require__("./dropdown-menu");
|
|
636
636
|
var __rspack_reexport = {};
|
|
637
637
|
for(const __rspack_import_key in _dropdown_menu__rspack_import_30)if ([
|
|
638
638
|
"getReferenceChipColors",
|
|
@@ -652,7 +652,7 @@ var __webpack_exports__ = {};
|
|
|
652
652
|
"ReferenceChip"
|
|
653
653
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_dropzone_overlay__rspack_import_31[__rspack_import_key];
|
|
654
654
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
655
|
-
var _editable_cell__rspack_import_32 = __webpack_require__("
|
|
655
|
+
var _editable_cell__rspack_import_32 = __webpack_require__("./editable-cell");
|
|
656
656
|
var __rspack_reexport = {};
|
|
657
657
|
for(const __rspack_import_key in _editable_cell__rspack_import_32)if ([
|
|
658
658
|
"getReferenceChipColors",
|
|
@@ -722,7 +722,7 @@ var __webpack_exports__ = {};
|
|
|
722
722
|
"ReferenceChip"
|
|
723
723
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_form_field__rspack_import_38[__rspack_import_key];
|
|
724
724
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
725
|
-
var _hover_card__rspack_import_39 = __webpack_require__("
|
|
725
|
+
var _hover_card__rspack_import_39 = __webpack_require__("./hover-card");
|
|
726
726
|
var __rspack_reexport = {};
|
|
727
727
|
for(const __rspack_import_key in _hover_card__rspack_import_39)if ([
|
|
728
728
|
"getReferenceChipColors",
|
|
@@ -732,7 +732,7 @@ var __webpack_exports__ = {};
|
|
|
732
732
|
"ReferenceChip"
|
|
733
733
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_hover_card__rspack_import_39[__rspack_import_key];
|
|
734
734
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
735
|
-
var _info_tooltip__rspack_import_40 = __webpack_require__("
|
|
735
|
+
var _info_tooltip__rspack_import_40 = __webpack_require__("./info-tooltip");
|
|
736
736
|
var __rspack_reexport = {};
|
|
737
737
|
for(const __rspack_import_key in _info_tooltip__rspack_import_40)if ([
|
|
738
738
|
"getReferenceChipColors",
|
|
@@ -742,7 +742,7 @@ var __webpack_exports__ = {};
|
|
|
742
742
|
"ReferenceChip"
|
|
743
743
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_info_tooltip__rspack_import_40[__rspack_import_key];
|
|
744
744
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
745
|
-
var _input__rspack_import_41 = __webpack_require__("
|
|
745
|
+
var _input__rspack_import_41 = __webpack_require__("@/components/ui/input");
|
|
746
746
|
var __rspack_reexport = {};
|
|
747
747
|
for(const __rspack_import_key in _input__rspack_import_41)if ([
|
|
748
748
|
"getReferenceChipColors",
|
|
@@ -752,7 +752,7 @@ var __webpack_exports__ = {};
|
|
|
752
752
|
"ReferenceChip"
|
|
753
753
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_input__rspack_import_41[__rspack_import_key];
|
|
754
754
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
755
|
-
var _input_group__rspack_import_42 = __webpack_require__("
|
|
755
|
+
var _input_group__rspack_import_42 = __webpack_require__("./input-group");
|
|
756
756
|
var __rspack_reexport = {};
|
|
757
757
|
for(const __rspack_import_key in _input_group__rspack_import_42)if ([
|
|
758
758
|
"getReferenceChipColors",
|
|
@@ -772,7 +772,7 @@ var __webpack_exports__ = {};
|
|
|
772
772
|
"ReferenceChip"
|
|
773
773
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_json_tree_view__rspack_import_43[__rspack_import_key];
|
|
774
774
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
775
|
-
var _label__rspack_import_44 = __webpack_require__("
|
|
775
|
+
var _label__rspack_import_44 = __webpack_require__("./label");
|
|
776
776
|
var __rspack_reexport = {};
|
|
777
777
|
for(const __rspack_import_key in _label__rspack_import_44)if ([
|
|
778
778
|
"getReferenceChipColors",
|
|
@@ -782,7 +782,7 @@ var __webpack_exports__ = {};
|
|
|
782
782
|
"ReferenceChip"
|
|
783
783
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_label__rspack_import_44[__rspack_import_key];
|
|
784
784
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
785
|
-
var _layout__rspack_import_45 = __webpack_require__("
|
|
785
|
+
var _layout__rspack_import_45 = __webpack_require__("./layout");
|
|
786
786
|
var __rspack_reexport = {};
|
|
787
787
|
for(const __rspack_import_key in _layout__rspack_import_45)if ([
|
|
788
788
|
"getReferenceChipColors",
|
|
@@ -912,7 +912,7 @@ var __webpack_exports__ = {};
|
|
|
912
912
|
"ReferenceChip"
|
|
913
913
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_panel_tabs__rspack_import_57[__rspack_import_key];
|
|
914
914
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
915
|
-
var _popover__rspack_import_58 = __webpack_require__("
|
|
915
|
+
var _popover__rspack_import_58 = __webpack_require__("@/components/ui/popover");
|
|
916
916
|
var __rspack_reexport = {};
|
|
917
917
|
for(const __rspack_import_key in _popover__rspack_import_58)if ([
|
|
918
918
|
"getReferenceChipColors",
|
|
@@ -992,7 +992,7 @@ var __webpack_exports__ = {};
|
|
|
992
992
|
"ReferenceChip"
|
|
993
993
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_radio_group__rspack_import_65[__rspack_import_key];
|
|
994
994
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
995
|
-
var _reference_chip__rspack_import_66 = __webpack_require__("
|
|
995
|
+
var _reference_chip__rspack_import_66 = __webpack_require__("./reference-chip");
|
|
996
996
|
var _reference_chip_colors__rspack_import_67 = __webpack_require__("./reference-chip-colors");
|
|
997
997
|
var _resizable__rspack_import_68 = __webpack_require__("./resizable");
|
|
998
998
|
var __rspack_reexport = {};
|
|
@@ -1164,7 +1164,7 @@ var __webpack_exports__ = {};
|
|
|
1164
1164
|
"ReferenceChip"
|
|
1165
1165
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_tabs__rspack_import_84[__rspack_import_key];
|
|
1166
1166
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
1167
|
-
var _textarea__rspack_import_85 = __webpack_require__("
|
|
1167
|
+
var _textarea__rspack_import_85 = __webpack_require__("./textarea");
|
|
1168
1168
|
var __rspack_reexport = {};
|
|
1169
1169
|
for(const __rspack_import_key in _textarea__rspack_import_85)if ([
|
|
1170
1170
|
"getReferenceChipColors",
|
|
@@ -1184,7 +1184,7 @@ var __webpack_exports__ = {};
|
|
|
1184
1184
|
"ReferenceChip"
|
|
1185
1185
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_thinking_indicator__rspack_import_86[__rspack_import_key];
|
|
1186
1186
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
1187
|
-
var _toggle__rspack_import_87 = __webpack_require__("
|
|
1187
|
+
var _toggle__rspack_import_87 = __webpack_require__("@/components/ui/toggle");
|
|
1188
1188
|
var __rspack_reexport = {};
|
|
1189
1189
|
for(const __rspack_import_key in _toggle__rspack_import_87)if ([
|
|
1190
1190
|
"getReferenceChipColors",
|
|
@@ -1226,7 +1226,7 @@ var __webpack_exports__ = {};
|
|
|
1226
1226
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
1227
1227
|
var _tree_view__rspack_import_91 = __webpack_require__("./tree-view");
|
|
1228
1228
|
var _tree_view__rspack_import_91_default = /*#__PURE__*/ __webpack_require__.n(_tree_view__rspack_import_91);
|
|
1229
|
-
var _variable_picker__rspack_import_92 = __webpack_require__("
|
|
1229
|
+
var _variable_picker__rspack_import_92 = __webpack_require__("./variable-picker");
|
|
1230
1230
|
var __rspack_reexport = {};
|
|
1231
1231
|
for(const __rspack_import_key in _variable_picker__rspack_import_92)if ([
|
|
1232
1232
|
"getReferenceChipColors",
|
|
@@ -29,6 +29,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
29
29
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
30
30
|
const external_lucide_react_namespaceObject = require("lucide-react");
|
|
31
31
|
const external_react_namespaceObject = require("react");
|
|
32
|
+
const external_button_cjs_namespaceObject = require("../../button.cjs");
|
|
32
33
|
const external_dropdown_menu_cjs_namespaceObject = require("../../dropdown-menu.cjs");
|
|
33
34
|
const external_form_field_cjs_namespaceObject = require("../../form-field.cjs");
|
|
34
35
|
const external_popover_cjs_namespaceObject = require("../../popover.cjs");
|
|
@@ -68,8 +69,7 @@ function FieldHeader({ label, fieldId, fieldLabel, required, fieldType, fieldTyp
|
|
|
68
69
|
const typeMeta = external_types_cjs_namespaceObject.FIELD_TYPE_META[fieldType];
|
|
69
70
|
const typeLabel = strings.typeLabels[fieldType] ?? typeMeta.label;
|
|
70
71
|
const collapsedTextClass = (0, index_cjs_namespaceObject.cn)(collapse_cjs_namespaceObject.COLLAPSED_HIDDEN, compact && '!hidden');
|
|
71
|
-
const
|
|
72
|
-
const compactOnlyClass = (0, index_cjs_namespaceObject.cn)(collapse_cjs_namespaceObject.COLLAPSED_ONLY, compact && '!block');
|
|
72
|
+
const compactOnlyClass = (0, index_cjs_namespaceObject.cn)(collapse_cjs_namespaceObject.COLLAPSED_ONLY, compact && '!flex');
|
|
73
73
|
const hasActions = !!onFieldTypeChange || !!onRequiredChange || showFieldActions || null != headerActions;
|
|
74
74
|
if (null != label && !hasActions) return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(jsx_runtime_namespaceObject.Fragment, {
|
|
75
75
|
children: label
|
|
@@ -94,22 +94,21 @@ function FieldHeader({ label, fieldId, fieldLabel, required, fieldType, fieldTyp
|
|
|
94
94
|
asChild: true,
|
|
95
95
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_dropdown_menu_cjs_namespaceObject.DropdownMenuTrigger, {
|
|
96
96
|
asChild: true,
|
|
97
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(
|
|
97
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(external_button_cjs_namespaceObject.Button, {
|
|
98
98
|
type: "button",
|
|
99
|
+
variant: "ghost",
|
|
100
|
+
size: "3xs",
|
|
99
101
|
"aria-label": strings.fieldTypeAriaLabel,
|
|
100
102
|
disabled: disabled,
|
|
101
|
-
className: (0, index_cjs_namespaceObject.cn)('
|
|
103
|
+
className: (0, index_cjs_namespaceObject.cn)('gap-1', collapse_cjs_namespaceObject.FIELD_ACTION_CLASS),
|
|
102
104
|
children: [
|
|
103
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(typeMeta.icon, {
|
|
104
|
-
size: 12
|
|
105
|
-
}),
|
|
105
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(typeMeta.icon, {}),
|
|
106
106
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
107
107
|
className: collapsedTextClass,
|
|
108
108
|
children: typeLabel
|
|
109
109
|
}),
|
|
110
110
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.ChevronDown, {
|
|
111
|
-
|
|
112
|
-
className: collapsedTextClass
|
|
111
|
+
className: (0, index_cjs_namespaceObject.cn)('!size-2.5', collapsedTextClass)
|
|
113
112
|
})
|
|
114
113
|
]
|
|
115
114
|
})
|
|
@@ -178,14 +177,15 @@ function FieldHeader({ label, fieldId, fieldLabel, required, fieldType, fieldTyp
|
|
|
178
177
|
asChild: true,
|
|
179
178
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_popover_cjs_namespaceObject.PopoverTrigger, {
|
|
180
179
|
asChild: true,
|
|
181
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
180
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_button_cjs_namespaceObject.Button, {
|
|
182
181
|
type: "button",
|
|
182
|
+
variant: "ghost",
|
|
183
|
+
size: "3xs",
|
|
184
|
+
icon: true,
|
|
183
185
|
"aria-label": required ? strings.requiredAriaLabel : strings.optionalAriaLabel,
|
|
184
186
|
disabled: disabled,
|
|
185
|
-
className:
|
|
186
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Asterisk, {
|
|
187
|
-
size: 12
|
|
188
|
-
})
|
|
187
|
+
className: collapse_cjs_namespaceObject.FIELD_ACTION_CLASS,
|
|
188
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Asterisk, {})
|
|
189
189
|
})
|
|
190
190
|
})
|
|
191
191
|
}),
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Asterisk, ChevronDown } from "lucide-react";
|
|
3
3
|
import { useMemo } from "react";
|
|
4
|
+
import { Button } from "../../button.js";
|
|
4
5
|
import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from "../../dropdown-menu.js";
|
|
5
6
|
import { FormFieldHeader } from "../../form-field.js";
|
|
6
7
|
import { Popover, PopoverContent, PopoverTrigger } from "../../popover.js";
|
|
@@ -8,7 +9,7 @@ import { Switch } from "../../switch.js";
|
|
|
8
9
|
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "../../tooltip.js";
|
|
9
10
|
import { cn } from "../../../../lib/index.js";
|
|
10
11
|
import { AiAssistAction } from "../../field-actions/ai-assist-action.js";
|
|
11
|
-
import { COLLAPSED_HIDDEN,
|
|
12
|
+
import { COLLAPSED_HIDDEN, COLLAPSED_ONLY, FIELD_ACTION_CLASS } from "../../field-actions/collapse.js";
|
|
12
13
|
import { InsertVariableAction } from "../../field-actions/insert-variable-action.js";
|
|
13
14
|
import { FIELD_TYPE_META, FIELD_TYPE_ORDER } from "../types.js";
|
|
14
15
|
function FieldHeader({ label, fieldId, fieldLabel, required, fieldType, fieldTypes = FIELD_TYPE_ORDER, onFieldTypeChange, onRequiredChange, compact, disabled, isExpression, showFieldActions, onValueChange, variables, onGenerateWithAi, onInsertVariable, strings, headerActions }) {
|
|
@@ -40,8 +41,7 @@ function FieldHeader({ label, fieldId, fieldLabel, required, fieldType, fieldTyp
|
|
|
40
41
|
const typeMeta = FIELD_TYPE_META[fieldType];
|
|
41
42
|
const typeLabel = strings.typeLabels[fieldType] ?? typeMeta.label;
|
|
42
43
|
const collapsedTextClass = cn(COLLAPSED_HIDDEN, compact && '!hidden');
|
|
43
|
-
const
|
|
44
|
-
const compactOnlyClass = cn(COLLAPSED_ONLY, compact && '!block');
|
|
44
|
+
const compactOnlyClass = cn(COLLAPSED_ONLY, compact && '!flex');
|
|
45
45
|
const hasActions = !!onFieldTypeChange || !!onRequiredChange || showFieldActions || null != headerActions;
|
|
46
46
|
if (null != label && !hasActions) return /*#__PURE__*/ jsx(Fragment, {
|
|
47
47
|
children: label
|
|
@@ -66,22 +66,21 @@ function FieldHeader({ label, fieldId, fieldLabel, required, fieldType, fieldTyp
|
|
|
66
66
|
asChild: true,
|
|
67
67
|
children: /*#__PURE__*/ jsx(DropdownMenuTrigger, {
|
|
68
68
|
asChild: true,
|
|
69
|
-
children: /*#__PURE__*/ jsxs(
|
|
69
|
+
children: /*#__PURE__*/ jsxs(Button, {
|
|
70
70
|
type: "button",
|
|
71
|
+
variant: "ghost",
|
|
72
|
+
size: "3xs",
|
|
71
73
|
"aria-label": strings.fieldTypeAriaLabel,
|
|
72
74
|
disabled: disabled,
|
|
73
|
-
className: cn('
|
|
75
|
+
className: cn('gap-1', FIELD_ACTION_CLASS),
|
|
74
76
|
children: [
|
|
75
|
-
/*#__PURE__*/ jsx(typeMeta.icon, {
|
|
76
|
-
size: 12
|
|
77
|
-
}),
|
|
77
|
+
/*#__PURE__*/ jsx(typeMeta.icon, {}),
|
|
78
78
|
/*#__PURE__*/ jsx("span", {
|
|
79
79
|
className: collapsedTextClass,
|
|
80
80
|
children: typeLabel
|
|
81
81
|
}),
|
|
82
82
|
/*#__PURE__*/ jsx(ChevronDown, {
|
|
83
|
-
|
|
84
|
-
className: collapsedTextClass
|
|
83
|
+
className: cn('!size-2.5', collapsedTextClass)
|
|
85
84
|
})
|
|
86
85
|
]
|
|
87
86
|
})
|
|
@@ -150,14 +149,15 @@ function FieldHeader({ label, fieldId, fieldLabel, required, fieldType, fieldTyp
|
|
|
150
149
|
asChild: true,
|
|
151
150
|
children: /*#__PURE__*/ jsx(PopoverTrigger, {
|
|
152
151
|
asChild: true,
|
|
153
|
-
children: /*#__PURE__*/ jsx(
|
|
152
|
+
children: /*#__PURE__*/ jsx(Button, {
|
|
154
153
|
type: "button",
|
|
154
|
+
variant: "ghost",
|
|
155
|
+
size: "3xs",
|
|
156
|
+
icon: true,
|
|
155
157
|
"aria-label": required ? strings.requiredAriaLabel : strings.optionalAriaLabel,
|
|
156
158
|
disabled: disabled,
|
|
157
|
-
className:
|
|
158
|
-
children: /*#__PURE__*/ jsx(Asterisk, {
|
|
159
|
-
size: 12
|
|
160
|
-
})
|
|
159
|
+
className: FIELD_ACTION_CLASS,
|
|
160
|
+
children: /*#__PURE__*/ jsx(Asterisk, {})
|
|
161
161
|
})
|
|
162
162
|
})
|
|
163
163
|
}),
|
package/dist/styles.css
CHANGED
|
@@ -1032,8 +1032,8 @@
|
|
|
1032
1032
|
display: none;
|
|
1033
1033
|
}
|
|
1034
1034
|
}
|
|
1035
|
-
.\!
|
|
1036
|
-
display:
|
|
1035
|
+
.\!flex {
|
|
1036
|
+
display: flex !important;
|
|
1037
1037
|
}
|
|
1038
1038
|
.\!hidden {
|
|
1039
1039
|
display: none !important;
|
|
@@ -4321,9 +4321,6 @@
|
|
|
4321
4321
|
.p-px {
|
|
4322
4322
|
padding: 1px;
|
|
4323
4323
|
}
|
|
4324
|
-
.\!px-1\.5 {
|
|
4325
|
-
padding-inline: calc(var(--spacing) * 1.5) !important;
|
|
4326
|
-
}
|
|
4327
4324
|
.\[padding-inline\:var\(--mf-content-inset\)\] {
|
|
4328
4325
|
padding-inline: var(--mf-content-inset);
|
|
4329
4326
|
}
|
|
@@ -8790,9 +8787,9 @@
|
|
|
8790
8787
|
display: none;
|
|
8791
8788
|
}
|
|
8792
8789
|
}
|
|
8793
|
-
.\@max-\[259px\]\:
|
|
8790
|
+
.\@max-\[259px\]\:flex {
|
|
8794
8791
|
@container (width < 259px) {
|
|
8795
|
-
display:
|
|
8792
|
+
display: flex;
|
|
8796
8793
|
}
|
|
8797
8794
|
}
|
|
8798
8795
|
.\@max-\[259px\]\:hidden {
|
|
@@ -8800,11 +8797,6 @@
|
|
|
8800
8797
|
display: none;
|
|
8801
8798
|
}
|
|
8802
8799
|
}
|
|
8803
|
-
.\@max-\[259px\]\:px-1\.5 {
|
|
8804
|
-
@container (width < 259px) {
|
|
8805
|
-
padding-inline: calc(var(--spacing) * 1.5);
|
|
8806
|
-
}
|
|
8807
|
-
}
|
|
8808
8800
|
.rtl\:rotate-180 {
|
|
8809
8801
|
&:where(:dir(rtl), [dir="rtl"], [dir="rtl"] *) {
|
|
8810
8802
|
rotate: 180deg;
|
|
@@ -13871,7 +13863,7 @@ body.canvas, .canvas {
|
|
|
13871
13863
|
letter-spacing: inherit;
|
|
13872
13864
|
margin: 0;
|
|
13873
13865
|
}
|
|
13874
|
-
.mat-typography [data-slot="accordion-header"] {
|
|
13866
|
+
.mat-typography [data-slot="accordion-header"], .mat-typography [data-slot="form-section-header"] {
|
|
13875
13867
|
font: inherit;
|
|
13876
13868
|
letter-spacing: inherit;
|
|
13877
13869
|
margin: 0;
|
package/dist/tailwind.css
CHANGED
|
@@ -951,7 +951,8 @@ body.canvas, .canvas {
|
|
|
951
951
|
margin: 0;
|
|
952
952
|
}
|
|
953
953
|
|
|
954
|
-
.mat-typography [data-slot="accordion-header"]
|
|
954
|
+
.mat-typography [data-slot="accordion-header"],
|
|
955
|
+
.mat-typography [data-slot="form-section-header"] {
|
|
955
956
|
font: inherit;
|
|
956
957
|
letter-spacing: inherit;
|
|
957
958
|
margin: 0;
|