@uipath/apollo-wind 2.37.0 → 2.37.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/components/forms/field-renderer.cjs +2 -3
- package/dist/components/forms/field-renderer.js +3 -4
- package/dist/components/forms/form-designer.cjs +2 -3
- package/dist/components/forms/form-designer.js +3 -4
- package/dist/components/ui/index.cjs +8 -8
- package/dist/components/ui/label.cjs +20 -1
- package/dist/components/ui/label.d.ts +15 -1
- package/dist/components/ui/label.js +18 -2
- package/dist/components/ui/lockable-value-field/components/field-header.cjs +1 -4
- package/dist/components/ui/lockable-value-field/components/field-header.js +2 -5
- package/dist/components/ui/prompt-editor/components/MarkdownPreview.cjs +2 -2
- package/dist/components/ui/prompt-editor/components/MarkdownPreview.js +2 -2
- package/dist/components/ui/prompt-editor/types.cjs +5 -5
- package/dist/components/ui/prompt-editor/types.js +5 -5
- package/dist/index.cjs +3 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/styles.css +3 -1
- package/package.json +1 -1
|
@@ -544,9 +544,8 @@ function FormLabel({ children, required, htmlFor, className = '' }) {
|
|
|
544
544
|
className: className,
|
|
545
545
|
children: [
|
|
546
546
|
children,
|
|
547
|
-
required && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
548
|
-
className: "
|
|
549
|
-
children: "*"
|
|
547
|
+
required && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(label_cjs_namespaceObject.RequiredIndicator, {
|
|
548
|
+
className: "ml-1"
|
|
550
549
|
})
|
|
551
550
|
]
|
|
552
551
|
});
|
|
@@ -12,7 +12,7 @@ import { Checkbox } from "../ui/checkbox.js";
|
|
|
12
12
|
import { Switch } from "../ui/switch.js";
|
|
13
13
|
import { RadioGroup, RadioGroupItem } from "../ui/radio-group.js";
|
|
14
14
|
import { Slider } from "../ui/slider.js";
|
|
15
|
-
import { Label } from "../ui/label.js";
|
|
15
|
+
import { Label, RequiredIndicator } from "../ui/label.js";
|
|
16
16
|
import { DatePicker } from "../ui/date-picker.js";
|
|
17
17
|
import { DateTimePicker } from "../ui/datetime-picker.js";
|
|
18
18
|
import { FileUpload } from "../ui/file-upload.js";
|
|
@@ -516,9 +516,8 @@ function FormLabel({ children, required, htmlFor, className = '' }) {
|
|
|
516
516
|
className: className,
|
|
517
517
|
children: [
|
|
518
518
|
children,
|
|
519
|
-
required && /*#__PURE__*/ jsx(
|
|
520
|
-
className: "
|
|
521
|
-
children: "*"
|
|
519
|
+
required && /*#__PURE__*/ jsx(RequiredIndicator, {
|
|
520
|
+
className: "ml-1"
|
|
522
521
|
})
|
|
523
522
|
]
|
|
524
523
|
});
|
|
@@ -1172,9 +1172,8 @@ function FormDesigner() {
|
|
|
1172
1172
|
className: "text-xs font-medium truncate",
|
|
1173
1173
|
children: field.label
|
|
1174
1174
|
}),
|
|
1175
|
-
field.rules?.some((r)=>r.effects.required) && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
1176
|
-
className: "text-[10px]
|
|
1177
|
-
children: "*"
|
|
1175
|
+
field.rules?.some((r)=>r.effects.required) && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(label_cjs_namespaceObject.RequiredIndicator, {
|
|
1176
|
+
className: "ml-0 text-[10px]"
|
|
1178
1177
|
})
|
|
1179
1178
|
]
|
|
1180
1179
|
}),
|
|
@@ -4,7 +4,7 @@ import { schemaToJson } from "./schema-serializer.js";
|
|
|
4
4
|
import { MetadataForm } from "./metadata-form.js";
|
|
5
5
|
import { Button } from "../ui/button.js";
|
|
6
6
|
import { Input } from "../ui/input.js";
|
|
7
|
-
import { Label } from "../ui/label.js";
|
|
7
|
+
import { Label, RequiredIndicator } from "../ui/label.js";
|
|
8
8
|
import { Textarea } from "../ui/textarea.js";
|
|
9
9
|
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "../ui/select.js";
|
|
10
10
|
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "../ui/card.js";
|
|
@@ -1144,9 +1144,8 @@ function FormDesigner() {
|
|
|
1144
1144
|
className: "text-xs font-medium truncate",
|
|
1145
1145
|
children: field.label
|
|
1146
1146
|
}),
|
|
1147
|
-
field.rules?.some((r)=>r.effects.required) && /*#__PURE__*/ jsx(
|
|
1148
|
-
className: "text-[10px]
|
|
1149
|
-
children: "*"
|
|
1147
|
+
field.rules?.some((r)=>r.effects.required) && /*#__PURE__*/ jsx(RequiredIndicator, {
|
|
1148
|
+
className: "ml-0 text-[10px]"
|
|
1150
1149
|
})
|
|
1151
1150
|
]
|
|
1152
1151
|
}),
|
|
@@ -69,7 +69,7 @@ var __webpack_modules__ = {
|
|
|
69
69
|
"@/components/ui/dropdown-menu" (module) {
|
|
70
70
|
module.exports = require("./dropdown-menu.cjs");
|
|
71
71
|
},
|
|
72
|
-
"
|
|
72
|
+
"./editable-cell" (module) {
|
|
73
73
|
module.exports = require("./editable-cell.cjs");
|
|
74
74
|
},
|
|
75
75
|
"./empty-state" (module) {
|
|
@@ -81,13 +81,13 @@ var __webpack_modules__ = {
|
|
|
81
81
|
"@/components/ui/hover-card" (module) {
|
|
82
82
|
module.exports = require("./hover-card.cjs");
|
|
83
83
|
},
|
|
84
|
-
"
|
|
84
|
+
"./input-group" (module) {
|
|
85
85
|
module.exports = require("./input-group.cjs");
|
|
86
86
|
},
|
|
87
87
|
"@/components/ui/input" (module) {
|
|
88
88
|
module.exports = require("./input.cjs");
|
|
89
89
|
},
|
|
90
|
-
"
|
|
90
|
+
"./label" (module) {
|
|
91
91
|
module.exports = require("./label.cjs");
|
|
92
92
|
},
|
|
93
93
|
"./layout" (module) {
|
|
@@ -156,7 +156,7 @@ var __webpack_modules__ = {
|
|
|
156
156
|
"./switch" (module) {
|
|
157
157
|
module.exports = require("./switch.cjs");
|
|
158
158
|
},
|
|
159
|
-
"
|
|
159
|
+
"./table" (module) {
|
|
160
160
|
module.exports = require("./table.cjs");
|
|
161
161
|
},
|
|
162
162
|
"./tabs" (module) {
|
|
@@ -388,7 +388,7 @@ var __webpack_exports__ = {};
|
|
|
388
388
|
"default"
|
|
389
389
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_dropdown_menu__rspack_import_22[__rspack_import_key];
|
|
390
390
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
391
|
-
var _editable_cell__rspack_import_23 = __webpack_require__("
|
|
391
|
+
var _editable_cell__rspack_import_23 = __webpack_require__("./editable-cell");
|
|
392
392
|
var __rspack_reexport = {};
|
|
393
393
|
for(const __rspack_import_key in _editable_cell__rspack_import_23)if ([
|
|
394
394
|
"TreeView",
|
|
@@ -423,14 +423,14 @@ var __webpack_exports__ = {};
|
|
|
423
423
|
"default"
|
|
424
424
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_input__rspack_import_27[__rspack_import_key];
|
|
425
425
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
426
|
-
var _input_group__rspack_import_28 = __webpack_require__("
|
|
426
|
+
var _input_group__rspack_import_28 = __webpack_require__("./input-group");
|
|
427
427
|
var __rspack_reexport = {};
|
|
428
428
|
for(const __rspack_import_key in _input_group__rspack_import_28)if ([
|
|
429
429
|
"TreeView",
|
|
430
430
|
"default"
|
|
431
431
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_input_group__rspack_import_28[__rspack_import_key];
|
|
432
432
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
433
|
-
var _label__rspack_import_29 = __webpack_require__("
|
|
433
|
+
var _label__rspack_import_29 = __webpack_require__("./label");
|
|
434
434
|
var __rspack_reexport = {};
|
|
435
435
|
for(const __rspack_import_key in _label__rspack_import_29)if ([
|
|
436
436
|
"TreeView",
|
|
@@ -591,7 +591,7 @@ var __webpack_exports__ = {};
|
|
|
591
591
|
"default"
|
|
592
592
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_switch__rspack_import_51[__rspack_import_key];
|
|
593
593
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
594
|
-
var _table__rspack_import_52 = __webpack_require__("
|
|
594
|
+
var _table__rspack_import_52 = __webpack_require__("./table");
|
|
595
595
|
var __rspack_reexport = {};
|
|
596
596
|
for(const __rspack_import_key in _table__rspack_import_52)if ([
|
|
597
597
|
"TreeView",
|
|
@@ -24,6 +24,7 @@ var __webpack_require__ = {};
|
|
|
24
24
|
var __webpack_exports__ = {};
|
|
25
25
|
__webpack_require__.r(__webpack_exports__);
|
|
26
26
|
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
+
RequiredIndicator: ()=>RequiredIndicator,
|
|
27
28
|
Label: ()=>Label
|
|
28
29
|
});
|
|
29
30
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
@@ -39,9 +40,27 @@ const Label = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ classNa
|
|
|
39
40
|
...props
|
|
40
41
|
}));
|
|
41
42
|
Label.displayName = react_label_namespaceObject.Root.displayName;
|
|
43
|
+
const RequiredIndicator = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("span", {
|
|
44
|
+
ref: ref,
|
|
45
|
+
...props,
|
|
46
|
+
className: (0, index_cjs_namespaceObject.cn)('ml-0.5 text-current', className),
|
|
47
|
+
children: [
|
|
48
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
49
|
+
"aria-hidden": "true",
|
|
50
|
+
children: "*"
|
|
51
|
+
}),
|
|
52
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
53
|
+
className: "sr-only",
|
|
54
|
+
children: " (required)"
|
|
55
|
+
})
|
|
56
|
+
]
|
|
57
|
+
}));
|
|
58
|
+
RequiredIndicator.displayName = 'RequiredIndicator';
|
|
42
59
|
exports.Label = __webpack_exports__.Label;
|
|
60
|
+
exports.RequiredIndicator = __webpack_exports__.RequiredIndicator;
|
|
43
61
|
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
44
|
-
"Label"
|
|
62
|
+
"Label",
|
|
63
|
+
"RequiredIndicator"
|
|
45
64
|
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
46
65
|
Object.defineProperty(exports, '__esModule', {
|
|
47
66
|
value: true
|
|
@@ -4,4 +4,18 @@ import * as React from 'react';
|
|
|
4
4
|
declare const labelVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
5
5
|
export type LabelProps = React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> & VariantProps<typeof labelVariants>;
|
|
6
6
|
declare const Label: React.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: import("class-variance-authority/types").ClassProp | undefined) => string> & React.RefAttributes<HTMLLabelElement>>;
|
|
7
|
-
export
|
|
7
|
+
export interface RequiredIndicatorProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, 'children' | 'aria-hidden'> {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Marks a field as required. Place it right after the label text.
|
|
11
|
+
*
|
|
12
|
+
* Uses `text-current` rather than an error/destructive color: an untouched
|
|
13
|
+
* required field isn't in an error state, so coloring the asterisk red reads
|
|
14
|
+
* as a validation failure before the person has done anything. The asterisk
|
|
15
|
+
* glyph is `aria-hidden` since it's a visual affordance, not the thing that
|
|
16
|
+
* makes the field required to assistive tech; a `sr-only` "(required)" is
|
|
17
|
+
* included alongside it so the label still announces the requirement even if
|
|
18
|
+
* the field's own control is missing `required`/`aria-required`.
|
|
19
|
+
*/
|
|
20
|
+
declare const RequiredIndicator: React.ForwardRefExoticComponent<RequiredIndicatorProps & React.RefAttributes<HTMLSpanElement>>;
|
|
21
|
+
export { Label, RequiredIndicator };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Root } from "@radix-ui/react-label";
|
|
3
3
|
import { cva } from "class-variance-authority";
|
|
4
4
|
import { forwardRef } from "react";
|
|
@@ -11,4 +11,20 @@ const Label = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE
|
|
|
11
11
|
...props
|
|
12
12
|
}));
|
|
13
13
|
Label.displayName = Root.displayName;
|
|
14
|
-
|
|
14
|
+
const RequiredIndicator = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsxs("span", {
|
|
15
|
+
ref: ref,
|
|
16
|
+
...props,
|
|
17
|
+
className: cn('ml-0.5 text-current', className),
|
|
18
|
+
children: [
|
|
19
|
+
/*#__PURE__*/ jsx("span", {
|
|
20
|
+
"aria-hidden": "true",
|
|
21
|
+
children: "*"
|
|
22
|
+
}),
|
|
23
|
+
/*#__PURE__*/ jsx("span", {
|
|
24
|
+
className: "sr-only",
|
|
25
|
+
children: " (required)"
|
|
26
|
+
})
|
|
27
|
+
]
|
|
28
|
+
}));
|
|
29
|
+
RequiredIndicator.displayName = 'RequiredIndicator';
|
|
30
|
+
export { Label, RequiredIndicator };
|
|
@@ -54,10 +54,7 @@ function FieldHeader({ label, fieldId, fieldLabel, required, fieldType, onFieldT
|
|
|
54
54
|
className: "text-xs font-medium text-foreground-muted",
|
|
55
55
|
children: [
|
|
56
56
|
fieldLabel,
|
|
57
|
-
required && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
58
|
-
className: "ml-0.5 text-destructive",
|
|
59
|
-
children: "*"
|
|
60
|
-
})
|
|
57
|
+
required && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_label_cjs_namespaceObject.RequiredIndicator, {})
|
|
61
58
|
]
|
|
62
59
|
}),
|
|
63
60
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_tooltip_cjs_namespaceObject.TooltipProvider, {
|
|
@@ -3,7 +3,7 @@ import { Asterisk, Braces, ChevronDown, Sparkles } from "lucide-react";
|
|
|
3
3
|
import { useId, useState } from "react";
|
|
4
4
|
import { Button } from "../../button.js";
|
|
5
5
|
import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from "../../dropdown-menu.js";
|
|
6
|
-
import { Label } from "../../label.js";
|
|
6
|
+
import { Label, RequiredIndicator } from "../../label.js";
|
|
7
7
|
import { Popover, PopoverContent, PopoverTrigger } from "../../popover.js";
|
|
8
8
|
import { Switch } from "../../switch.js";
|
|
9
9
|
import { Textarea } from "../../textarea.js";
|
|
@@ -26,10 +26,7 @@ function FieldHeader({ label, fieldId, fieldLabel, required, fieldType, onFieldT
|
|
|
26
26
|
className: "text-xs font-medium text-foreground-muted",
|
|
27
27
|
children: [
|
|
28
28
|
fieldLabel,
|
|
29
|
-
required && /*#__PURE__*/ jsx(
|
|
30
|
-
className: "ml-0.5 text-destructive",
|
|
31
|
-
children: "*"
|
|
32
|
-
})
|
|
29
|
+
required && /*#__PURE__*/ jsx(RequiredIndicator, {})
|
|
33
30
|
]
|
|
34
31
|
}),
|
|
35
32
|
/*#__PURE__*/ jsx(TooltipProvider, {
|
|
@@ -70,8 +70,8 @@ const MARKDOWN_PREVIEW_STYLES = `
|
|
|
70
70
|
.prompt-editor-preview th { font-weight: 600; background-color: var(--color-muted); }
|
|
71
71
|
.prompt-editor-preview strong { font-weight: 700; }
|
|
72
72
|
.prompt-editor-preview em { font-style: italic; }
|
|
73
|
-
.prompt-editor-preview .token-pill { display: inline-flex; align-items: center; gap: 3px; height: 20px; padding: 0 4px; border-radius: 4px; font-size: 13px; line-height: 20px; vertical-align: middle; background: var(--color-
|
|
74
|
-
.prompt-editor-preview .token-pill svg { display: block; flex-shrink: 0; color: var(--color-
|
|
73
|
+
.prompt-editor-preview .token-pill { display: inline-flex; align-items: center; gap: 3px; height: 20px; padding: 0 4px; border-radius: 4px; font-size: 13px; line-height: 20px; vertical-align: middle; background: var(--color-info-background); color: var(--color-info-text); }
|
|
74
|
+
.prompt-editor-preview .token-pill svg { display: block; flex-shrink: 0; color: var(--color-info-icon); width: 14px; height: 14px; }
|
|
75
75
|
`;
|
|
76
76
|
const PURIFY_CONFIG = {
|
|
77
77
|
ALLOWED_TAGS: [
|
|
@@ -32,8 +32,8 @@ const MARKDOWN_PREVIEW_STYLES = `
|
|
|
32
32
|
.prompt-editor-preview th { font-weight: 600; background-color: var(--color-muted); }
|
|
33
33
|
.prompt-editor-preview strong { font-weight: 700; }
|
|
34
34
|
.prompt-editor-preview em { font-style: italic; }
|
|
35
|
-
.prompt-editor-preview .token-pill { display: inline-flex; align-items: center; gap: 3px; height: 20px; padding: 0 4px; border-radius: 4px; font-size: 13px; line-height: 20px; vertical-align: middle; background: var(--color-
|
|
36
|
-
.prompt-editor-preview .token-pill svg { display: block; flex-shrink: 0; color: var(--color-
|
|
35
|
+
.prompt-editor-preview .token-pill { display: inline-flex; align-items: center; gap: 3px; height: 20px; padding: 0 4px; border-radius: 4px; font-size: 13px; line-height: 20px; vertical-align: middle; background: var(--color-info-background); color: var(--color-info-text); }
|
|
36
|
+
.prompt-editor-preview .token-pill svg { display: block; flex-shrink: 0; color: var(--color-info-icon); width: 14px; height: 14px; }
|
|
37
37
|
`;
|
|
38
38
|
const PURIFY_CONFIG = {
|
|
39
39
|
ALLOWED_TAGS: [
|
|
@@ -31,14 +31,14 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
31
31
|
});
|
|
32
32
|
const getPromptEditorTokenColors = ()=>({
|
|
33
33
|
valid: {
|
|
34
|
-
background: 'var(--color-
|
|
35
|
-
border: 'var(--color-
|
|
36
|
-
text: 'var(--color-
|
|
37
|
-
icon: 'var(--color-
|
|
34
|
+
background: 'var(--color-info-background)',
|
|
35
|
+
border: 'var(--color-info-icon)',
|
|
36
|
+
text: 'var(--color-info-text)',
|
|
37
|
+
icon: 'var(--color-info-icon)'
|
|
38
38
|
},
|
|
39
39
|
invalid: {
|
|
40
40
|
background: 'var(--color-error-background)',
|
|
41
|
-
border: 'var(--color-error)',
|
|
41
|
+
border: 'var(--color-error-icon)',
|
|
42
42
|
text: 'var(--color-error-text)',
|
|
43
43
|
icon: 'var(--color-error-icon)'
|
|
44
44
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
const getPromptEditorTokenColors = ()=>({
|
|
2
2
|
valid: {
|
|
3
|
-
background: 'var(--color-
|
|
4
|
-
border: 'var(--color-
|
|
5
|
-
text: 'var(--color-
|
|
6
|
-
icon: 'var(--color-
|
|
3
|
+
background: 'var(--color-info-background)',
|
|
4
|
+
border: 'var(--color-info-icon)',
|
|
5
|
+
text: 'var(--color-info-text)',
|
|
6
|
+
icon: 'var(--color-info-icon)'
|
|
7
7
|
},
|
|
8
8
|
invalid: {
|
|
9
9
|
background: 'var(--color-error-background)',
|
|
10
|
-
border: 'var(--color-error)',
|
|
10
|
+
border: 'var(--color-error-icon)',
|
|
11
11
|
text: 'var(--color-error-text)',
|
|
12
12
|
icon: 'var(--color-error-icon)'
|
|
13
13
|
}
|
package/dist/index.cjs
CHANGED
|
@@ -71,6 +71,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
71
71
|
Column: ()=>column_cjs_namespaceObject.Column,
|
|
72
72
|
AlertDialogTrigger: ()=>alert_dialog_cjs_namespaceObject.AlertDialogTrigger,
|
|
73
73
|
DrawerOverlay: ()=>drawer_cjs_namespaceObject.DrawerOverlay,
|
|
74
|
+
RequiredIndicator: ()=>label_cjs_namespaceObject.RequiredIndicator,
|
|
74
75
|
CardContent: ()=>card_cjs_namespaceObject.CardContent,
|
|
75
76
|
SelectValue: ()=>select_cjs_namespaceObject.SelectValue,
|
|
76
77
|
Slider: ()=>slider_cjs_namespaceObject.Slider,
|
|
@@ -509,6 +510,7 @@ exports.Progress = __webpack_exports__.Progress;
|
|
|
509
510
|
exports.PromptEditor = __webpack_exports__.PromptEditor;
|
|
510
511
|
exports.RadioGroup = __webpack_exports__.RadioGroup;
|
|
511
512
|
exports.RadioGroupItem = __webpack_exports__.RadioGroupItem;
|
|
513
|
+
exports.RequiredIndicator = __webpack_exports__.RequiredIndicator;
|
|
512
514
|
exports.ResizableHandle = __webpack_exports__.ResizableHandle;
|
|
513
515
|
exports.ResizablePanel = __webpack_exports__.ResizablePanel;
|
|
514
516
|
exports.ResizablePanelGroup = __webpack_exports__.ResizablePanelGroup;
|
|
@@ -752,6 +754,7 @@ for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
|
752
754
|
"PromptEditor",
|
|
753
755
|
"RadioGroup",
|
|
754
756
|
"RadioGroupItem",
|
|
757
|
+
"RequiredIndicator",
|
|
755
758
|
"ResizableHandle",
|
|
756
759
|
"ResizablePanel",
|
|
757
760
|
"ResizablePanelGroup",
|
package/dist/index.d.ts
CHANGED
|
@@ -18,8 +18,8 @@ export { FIELD_TYPE_META, FIELD_TYPE_ORDER, LockableValueField, } from './compon
|
|
|
18
18
|
export type { LockableValueFieldProps, LockableValueFieldMode, LockableFieldType, LockableValueFieldOption, } from './components/ui/lockable-value-field';
|
|
19
19
|
export { Textarea } from './components/ui/textarea';
|
|
20
20
|
export type { TextareaProps } from './components/ui/textarea';
|
|
21
|
-
export { Label } from './components/ui/label';
|
|
22
|
-
export type { LabelProps } from './components/ui/label';
|
|
21
|
+
export { Label, RequiredIndicator } from './components/ui/label';
|
|
22
|
+
export type { LabelProps, RequiredIndicatorProps } from './components/ui/label';
|
|
23
23
|
export { Checkbox } from './components/ui/checkbox';
|
|
24
24
|
export type { CheckboxProps } from './components/ui/checkbox';
|
|
25
25
|
export { RadioGroup, RadioGroupItem } from './components/ui/radio-group';
|
package/dist/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import { Input } from "./components/ui/input.js";
|
|
|
10
10
|
import { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea } from "./components/ui/input-group.js";
|
|
11
11
|
import { FIELD_TYPE_META, FIELD_TYPE_ORDER, LockableValueField } from "./components/ui/lockable-value-field/index.js";
|
|
12
12
|
import { Textarea } from "./components/ui/textarea.js";
|
|
13
|
-
import { Label } from "./components/ui/label.js";
|
|
13
|
+
import { Label, RequiredIndicator } from "./components/ui/label.js";
|
|
14
14
|
import { Checkbox } from "./components/ui/checkbox.js";
|
|
15
15
|
import { RadioGroup, RadioGroupItem } from "./components/ui/radio-group.js";
|
|
16
16
|
import { Switch } from "./components/ui/switch.js";
|
|
@@ -69,4 +69,4 @@ import { ExpressionBuilder, RuleBuilder, RulesEngine } from "./components/forms/
|
|
|
69
69
|
import { DataFetcher, DataSourceBuilder, DataTransformers, FetchAdapter } from "./components/forms/data-fetcher.js";
|
|
70
70
|
import { analyticsPlugin, auditPlugin, autoSavePlugin, formattingPlugin, validationPlugin, workflowPlugin } from "./components/forms/form-plugins.js";
|
|
71
71
|
import { hasMinMaxStep, hasOptions, isCustomField, isFileField } from "./components/forms/form-schema.js";
|
|
72
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, Avatar, AvatarFallback, AvatarImage, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, Calendar, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, Column, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, DataFetcher, DataSourceBuilder, DataTable, DataTableColumnHeader, DataTableSelectColumn, DataTransformers, DatePicker, DateTimePicker, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EditableCell, EmptyState, ExpressionBuilder, FIELD_TYPE_META, FIELD_TYPE_ORDER, FetchAdapter, FileUpload, FormDesigner, FormFieldRenderer, FormStateViewer, Grid, HoverCard, HoverCardContent, HoverCardTrigger, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, Label, LockableValueField, MetadataForm, MultiSelect, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PortalContainerProvider, Progress, PromptEditor, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, Row, RuleBuilder, RulesEngine, ScrollArea, ScrollBar, ScrollableTabsList, Search, SearchWithSuggestions, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Skeleton, Slider, Spinner, StatsCard, Stepper, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipPortal, TooltipProvider, TooltipTrigger, tree_view as TreeView, VARIABLE_DRAG_MIME, VariablePicker, VariablePickerContent, analyticsPlugin, auditPlugin, autoSavePlugin, badgeVariants, buttonVariants, cn, createEditableColumn, formattingPlugin, hasMinMaxStep, hasOptions, isCustomField, isFileField, spinnerVariants, toast, toggleVariants, validationPlugin, workflowPlugin };
|
|
72
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, Avatar, AvatarFallback, AvatarImage, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, Calendar, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, Column, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, DataFetcher, DataSourceBuilder, DataTable, DataTableColumnHeader, DataTableSelectColumn, DataTransformers, DatePicker, DateTimePicker, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EditableCell, EmptyState, ExpressionBuilder, FIELD_TYPE_META, FIELD_TYPE_ORDER, FetchAdapter, FileUpload, FormDesigner, FormFieldRenderer, FormStateViewer, Grid, HoverCard, HoverCardContent, HoverCardTrigger, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, Label, LockableValueField, MetadataForm, MultiSelect, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PortalContainerProvider, Progress, PromptEditor, RadioGroup, RadioGroupItem, RequiredIndicator, ResizableHandle, ResizablePanel, ResizablePanelGroup, Row, RuleBuilder, RulesEngine, ScrollArea, ScrollBar, ScrollableTabsList, Search, SearchWithSuggestions, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Skeleton, Slider, Spinner, StatsCard, Stepper, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipPortal, TooltipProvider, TooltipTrigger, tree_view as TreeView, VARIABLE_DRAG_MIME, VariablePicker, VariablePickerContent, analyticsPlugin, auditPlugin, autoSavePlugin, badgeVariants, buttonVariants, cn, createEditableColumn, formattingPlugin, hasMinMaxStep, hasOptions, isCustomField, isFileField, spinnerVariants, toast, toggleVariants, validationPlugin, workflowPlugin };
|
package/dist/styles.css
CHANGED
|
@@ -299,7 +299,6 @@
|
|
|
299
299
|
--color-foreground-link: var(--foreground-link);
|
|
300
300
|
--color-border-disabled: var(--border-disabled);
|
|
301
301
|
--color-border-grid: var(--border-grid);
|
|
302
|
-
--color-error: var(--error);
|
|
303
302
|
--color-logo: var(--logo);
|
|
304
303
|
--color-background-secondary: var(--color-background-secondary);
|
|
305
304
|
--color-background-inverse: var(--color-background-inverse);
|
|
@@ -886,6 +885,9 @@
|
|
|
886
885
|
.-ml-3 {
|
|
887
886
|
margin-left: calc(var(--spacing) * -3);
|
|
888
887
|
}
|
|
888
|
+
.ml-0 {
|
|
889
|
+
margin-left: calc(var(--spacing) * 0);
|
|
890
|
+
}
|
|
889
891
|
.ml-0\.5 {
|
|
890
892
|
margin-left: calc(var(--spacing) * 0.5);
|
|
891
893
|
}
|