@recursica/mui-adapter 0.5.0 → 0.7.0
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/ARCHITECTURE.md +15 -0
- package/CHANGELOG.md +15 -0
- package/SETUP.md +77 -0
- package/USAGE.md +55 -0
- package/dist/mui-adapter.cjs +74 -1
- package/dist/mui-adapter.cjs.map +1 -1
- package/dist/mui-adapter.css +1 -1
- package/dist/mui-adapter.js +6863 -205
- package/dist/mui-adapter.js.map +1 -1
- package/dist/src/components/Accordion/Accordion.d.ts +43 -2
- package/dist/src/components/AssistiveElement/AssistiveElement.d.ts +6 -2
- package/dist/src/components/Autocomplete/Autocomplete.d.ts +12 -2
- package/dist/src/components/Avatar/Avatar.d.ts +10 -3
- package/dist/src/components/Badge/Badge.d.ts +10 -3
- package/dist/src/components/Breadcrumb/Breadcrumb.d.ts +9 -3
- package/dist/src/components/Button/Button.d.ts +2 -17
- package/dist/src/components/Card/Card.d.ts +38 -3
- package/dist/src/components/Checkbox/Checkbox.d.ts +13 -2
- package/dist/src/components/Checkbox/CheckboxGroup.d.ts +18 -0
- package/dist/src/components/Checkbox/index.d.ts +5 -1
- package/dist/src/components/Chip/Chip.d.ts +9 -2
- package/dist/src/components/Container/Container.d.ts +1 -5
- package/dist/src/components/DatePicker/DatePicker.d.ts +2 -1
- package/dist/src/components/Dropdown/Dropdown.d.ts +12 -2
- package/dist/src/components/Flex/Flex.d.ts +2 -22
- package/dist/src/components/FormControlLayout/FormControlLayout.d.ts +5 -2
- package/dist/src/components/FormControlWrapper/FormControlWrapper.d.ts +9 -2
- package/dist/src/components/Group/Group.d.ts +2 -7
- package/dist/src/components/HoverCard/HoverCard.d.ts +28 -2
- package/dist/src/components/Label/Label.d.ts +6 -2
- package/dist/src/components/Link/Link.d.ts +2 -6
- package/dist/src/components/Loader/Loader.d.ts +2 -7
- package/dist/src/components/Menu/Menu.d.ts +25 -3
- package/dist/src/components/Modal/Modal.d.ts +37 -2
- package/dist/src/components/NumberInput/NumberInput.d.ts +12 -2
- package/dist/src/components/Pagination/Pagination.d.ts +12 -3
- package/dist/src/components/Pagination/Pagination.icons.d.ts +8 -0
- package/dist/src/components/Panel/Panel.d.ts +52 -3
- package/dist/src/components/Radio/Radio.d.ts +13 -3
- package/dist/src/components/Radio/RadioGroup.d.ts +9 -0
- package/dist/src/components/ReadOnlyField/ReadOnlyBooleanField.d.ts +5 -0
- package/dist/src/components/ReadOnlyField/ReadOnlyField.d.ts +4 -2
- package/dist/src/components/ReadOnlyField/ReadOnlySwitchField.d.ts +5 -0
- package/dist/src/components/ReadOnlyField/ReadOnlyTextField.d.ts +8 -0
- package/dist/src/components/ReadOnlyField/WithReadOnlyWrapper.d.ts +28 -0
- package/dist/src/components/ReadOnlyField/index.d.ts +1 -0
- package/dist/src/components/SegmentedControl/SegmentedControl.d.ts +21 -3
- package/dist/src/components/Slider/Slider.d.ts +18 -2
- package/dist/src/components/Stack/Stack.d.ts +2 -5
- package/dist/src/components/Stepper/Stepper.d.ts +41 -2
- package/dist/src/components/Switch/Switch.d.ts +10 -3
- package/dist/src/components/Switch/SwitchGroup.d.ts +13 -0
- package/dist/src/components/Table/Table.d.ts +2 -1
- package/dist/src/components/Tabs/Tabs.d.ts +20 -3
- package/dist/src/components/Text/Text.d.ts +2 -16
- package/dist/src/components/TextArea/TextArea.d.ts +12 -2
- package/dist/src/components/TextField/TextField.d.ts +12 -2
- package/dist/src/components/TimePicker/TimePicker.d.ts +2 -1
- package/dist/src/components/Timeline/Timeline.d.ts +15 -2
- package/dist/src/components/Timeline/TimelineItem.d.ts +18 -0
- package/dist/src/components/Title/Title.d.ts +2 -15
- package/dist/src/components/Toast/Toast.d.ts +20 -2
- package/dist/src/components/Tooltip/Tooltip.d.ts +28 -3
- package/dist/src/components/TransferList/TransferList.d.ts +2 -1
- package/dist/src/components/Typography/Typography.d.ts +1 -1
- package/dist/src/utils/RequireAccessibleLabel.d.ts +1 -18
- package/dist/src/utils/filterStylingProps.d.ts +1 -11
- package/llms.txt +16 -0
- package/package.json +14 -3
- package/src/components/Accordion/Accordion.module.css +294 -56
- package/src/components/Accordion/Accordion.stories.tsx +131 -21
- package/src/components/Accordion/Accordion.tsx +260 -5
- package/src/components/AssistiveElement/AssistiveElement.module.css +114 -20
- package/src/components/AssistiveElement/AssistiveElement.stories.tsx +60 -20
- package/src/components/AssistiveElement/AssistiveElement.tsx +81 -5
- package/src/components/Autocomplete/Autocomplete.module.css +319 -42
- package/src/components/Autocomplete/Autocomplete.stories.tsx +175 -23
- package/src/components/Autocomplete/Autocomplete.tsx +181 -6
- package/src/components/Avatar/Avatar.module.css +343 -73
- package/src/components/Avatar/Avatar.stories.tsx +94 -22
- package/src/components/Avatar/Avatar.tsx +99 -6
- package/src/components/Badge/Badge.module.css +127 -29
- package/src/components/Badge/Badge.stories.tsx +65 -22
- package/src/components/Badge/Badge.tsx +67 -6
- package/src/components/Breadcrumb/Breadcrumb.module.css +25 -5
- package/src/components/Breadcrumb/Breadcrumb.stories.tsx +57 -22
- package/src/components/Breadcrumb/Breadcrumb.tsx +59 -6
- package/src/components/Button/Button.module.css +19 -61
- package/src/components/Button/Button.stories.tsx +24 -23
- package/src/components/Button/Button.tsx +7 -18
- package/src/components/Card/Card.module.css +154 -38
- package/src/components/Card/Card.stories.tsx +117 -19
- package/src/components/Card/Card.tsx +181 -5
- package/src/components/Checkbox/Checkbox.module.css +249 -39
- package/src/components/Checkbox/Checkbox.stories.tsx +81 -19
- package/src/components/Checkbox/Checkbox.tsx +246 -5
- package/src/components/Checkbox/CheckboxGroup.stories.tsx +139 -0
- package/src/components/Checkbox/CheckboxGroup.tsx +137 -0
- package/src/components/Checkbox/index.ts +6 -1
- package/src/components/Chip/Chip.module.css +246 -43
- package/src/components/Chip/Chip.stories.tsx +101 -21
- package/src/components/Chip/Chip.tsx +136 -6
- package/src/components/Container/Container.stories.tsx +103 -20
- package/src/components/Container/Container.tsx +1 -13
- package/src/components/DatePicker/DatePicker.stories.tsx +125 -19
- package/src/components/DatePicker/DatePicker.tsx +3 -1
- package/src/components/Dropdown/Dropdown.module.css +291 -41
- package/src/components/Dropdown/Dropdown.stories.tsx +80 -21
- package/src/components/Dropdown/Dropdown.tsx +180 -6
- package/src/components/FileInput/FileInput.stories.tsx +2 -19
- package/src/components/FileUpload/FileUpload.stories.tsx +2 -19
- package/src/components/Flex/Flex.stories.tsx +113 -20
- package/src/components/Flex/Flex.tsx +16 -26
- package/src/components/FormControlLayout/FormControlLayout.module.css +92 -0
- package/src/components/FormControlLayout/FormControlLayout.stories.tsx +67 -20
- package/src/components/FormControlLayout/FormControlLayout.tsx +69 -4
- package/src/components/FormControlWrapper/FormControlWrapper.module.css +87 -0
- package/src/components/FormControlWrapper/FormControlWrapper.stories.tsx +116 -22
- package/src/components/FormControlWrapper/FormControlWrapper.tsx +126 -6
- package/src/components/Group/Group.stories.tsx +6 -30
- package/src/components/Group/Group.tsx +14 -9
- package/src/components/HoverCard/HoverCard.module.css +90 -22
- package/src/components/HoverCard/HoverCard.stories.tsx +158 -21
- package/src/components/HoverCard/HoverCard.tsx +147 -5
- package/src/components/Label/Label.module.css +140 -35
- package/src/components/Label/Label.stories.tsx +108 -21
- package/src/components/Label/Label.tsx +82 -5
- package/src/components/Link/Link.module.css +4 -3
- package/src/components/Link/Link.stories.tsx +2 -8
- package/src/components/Link/Link.tsx +1 -5
- package/src/components/Loader/Loader.module.css +1 -2
- package/src/components/Loader/Loader.tsx +1 -7
- package/src/components/Menu/IMPLEMENTATION_NOTES.md +4 -0
- package/src/components/Menu/Menu.module.css +285 -51
- package/src/components/Menu/Menu.stories.tsx +229 -25
- package/src/components/Menu/Menu.tsx +73 -6
- package/src/components/Modal/Modal.module.css +171 -35
- package/src/components/Modal/Modal.stories.tsx +66 -22
- package/src/components/Modal/Modal.tsx +215 -5
- package/src/components/NumberInput/NumberInput.module.css +276 -42
- package/src/components/NumberInput/NumberInput.stories.tsx +83 -20
- package/src/components/NumberInput/NumberInput.tsx +136 -6
- package/src/components/Pagination/IMPLEMENTATION_NOTES.md +3 -0
- package/src/components/Pagination/Pagination.icons.tsx +66 -0
- package/src/components/Pagination/Pagination.module.css +234 -20
- package/src/components/Pagination/Pagination.stories.tsx +34 -21
- package/src/components/Pagination/Pagination.tsx +74 -6
- package/src/components/Panel/Panel.module.css +206 -38
- package/src/components/Panel/Panel.stories.tsx +214 -22
- package/src/components/Panel/Panel.tsx +130 -5
- package/src/components/Radio/Radio.module.css +235 -37
- package/src/components/Radio/Radio.stories.tsx +77 -19
- package/src/components/Radio/Radio.tsx +210 -5
- package/src/components/Radio/RadioGroup.stories.tsx +117 -0
- package/src/components/Radio/RadioGroup.tsx +125 -0
- package/src/components/ReadOnlyField/ReadOnlyBooleanField.tsx +21 -0
- package/src/components/ReadOnlyField/ReadOnlyField.module.css +53 -15
- package/src/components/ReadOnlyField/ReadOnlyField.stories.tsx +147 -19
- package/src/components/ReadOnlyField/ReadOnlyField.tsx +105 -5
- package/src/components/ReadOnlyField/ReadOnlySwitchField.tsx +21 -0
- package/src/components/ReadOnlyField/ReadOnlyTextField.tsx +48 -0
- package/src/components/ReadOnlyField/WithReadOnlyWrapper.tsx +93 -0
- package/src/components/ReadOnlyField/index.ts +1 -0
- package/src/components/SegmentedControl/SegmentedControl.module.css +179 -47
- package/src/components/SegmentedControl/SegmentedControl.stories.tsx +102 -20
- package/src/components/SegmentedControl/SegmentedControl.tsx +140 -6
- package/src/components/Slider/Slider.module.css +539 -86
- package/src/components/Slider/Slider.stories.tsx +157 -19
- package/src/components/Slider/Slider.tsx +283 -5
- package/src/components/Stack/Stack.stories.tsx +4 -25
- package/src/components/Stack/Stack.tsx +1 -5
- package/src/components/Stepper/IMPLEMENTATION_NOTES.md +4 -0
- package/src/components/Stepper/Stepper.module.css +410 -71
- package/src/components/Stepper/Stepper.stories.tsx +146 -20
- package/src/components/Stepper/Stepper.tsx +147 -6
- package/src/components/Switch/Switch.module.css +259 -39
- package/src/components/Switch/Switch.stories.tsx +98 -19
- package/src/components/Switch/Switch.tsx +200 -6
- package/src/components/Switch/SwitchGroup.stories.tsx +132 -0
- package/src/components/Switch/SwitchGroup.tsx +120 -0
- package/src/components/Table/Table.stories.tsx +1 -19
- package/src/components/Table/Table.tsx +3 -1
- package/src/components/Tabs/IMPLEMENTATION_NOTES.md +4 -0
- package/src/components/Tabs/Tabs.module.css +422 -79
- package/src/components/Tabs/Tabs.stories.tsx +156 -20
- package/src/components/Tabs/Tabs.tsx +86 -6
- package/src/components/Text/Text.stories.tsx +5 -17
- package/src/components/Text/Text.tsx +1 -15
- package/src/components/TextArea/TextArea.module.css +155 -32
- package/src/components/TextArea/TextArea.stories.tsx +80 -21
- package/src/components/TextArea/TextArea.tsx +146 -6
- package/src/components/TextField/TextField.module.css +261 -42
- package/src/components/TextField/TextField.stories.tsx +147 -20
- package/src/components/TextField/TextField.tsx +169 -6
- package/src/components/TimePicker/TimePicker.stories.tsx +2 -19
- package/src/components/TimePicker/TimePicker.tsx +3 -1
- package/src/components/Timeline/Timeline.module.css +365 -76
- package/src/components/Timeline/Timeline.stories.tsx +114 -21
- package/src/components/Timeline/Timeline.tsx +83 -5
- package/src/components/Timeline/TimelineItem.tsx +90 -0
- package/src/components/Title/Title.stories.tsx +0 -18
- package/src/components/Title/Title.tsx +1 -7
- package/src/components/Toast/Toast.module.css +166 -28
- package/src/components/Toast/Toast.stories.tsx +54 -22
- package/src/components/Toast/Toast.tsx +124 -5
- package/src/components/Tooltip/Tooltip.module.css +89 -24
- package/src/components/Tooltip/Tooltip.stories.tsx +152 -22
- package/src/components/Tooltip/Tooltip.tsx +88 -5
- package/src/components/TransferList/TransferList.stories.tsx +1 -19
- package/src/components/TransferList/TransferList.tsx +3 -1
- package/src/utils/RequireAccessibleLabel.ts +1 -12
- package/src/utils/filterStylingProps.ts +7 -20
|
@@ -1,8 +1,148 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import
|
|
1
|
+
import React, { forwardRef } from "react";
|
|
2
|
+
import {
|
|
3
|
+
TextField as MuiTextarea,
|
|
4
|
+
type TextFieldProps as MuiTextareaProps,
|
|
5
|
+
} from "@mui/material";
|
|
6
|
+
import { type ReadOnlyControlProps } from "@recursica/adapter-common";
|
|
7
|
+
// Removed unused TextField import
|
|
8
|
+
import {
|
|
9
|
+
filterStylingProps,
|
|
10
|
+
type RecursicaOverStyled,
|
|
11
|
+
} from "../../utils/filterStylingProps";
|
|
12
|
+
import { type RecursicaFormControlWrapperProps } from "../FormControlWrapper/FormControlWrapper";
|
|
13
|
+
import { WithReadOnlyWrapper } from "../ReadOnlyField/WithReadOnlyWrapper";
|
|
14
|
+
import styles from "./TextArea.module.css";
|
|
3
15
|
|
|
4
|
-
|
|
16
|
+
import { type RecursicaTextAreaProps as BaseRecursicaTextAreaProps } from "@recursica/adapter-common";
|
|
5
17
|
|
|
6
|
-
export
|
|
7
|
-
|
|
8
|
-
|
|
18
|
+
export interface RecursicaTextAreaProps
|
|
19
|
+
extends Omit<
|
|
20
|
+
MuiTextareaProps,
|
|
21
|
+
"size" | "variant" | "radius" | "wrapperProps"
|
|
22
|
+
>,
|
|
23
|
+
Pick<
|
|
24
|
+
RecursicaFormControlWrapperProps,
|
|
25
|
+
| "assistiveText"
|
|
26
|
+
| "assistiveWithIcon"
|
|
27
|
+
| "formLayout"
|
|
28
|
+
| "labelSize"
|
|
29
|
+
| "labelAlignment"
|
|
30
|
+
| "labelOptionalText"
|
|
31
|
+
| "labelWithEditIcon"
|
|
32
|
+
| "onLabelEditClick"
|
|
33
|
+
>,
|
|
34
|
+
ReadOnlyControlProps,
|
|
35
|
+
BaseRecursicaTextAreaProps {}
|
|
36
|
+
|
|
37
|
+
export type TextAreaProps = RecursicaOverStyled<RecursicaTextAreaProps>;
|
|
38
|
+
|
|
39
|
+
export const TextArea = forwardRef<HTMLTextAreaElement, TextAreaProps>(
|
|
40
|
+
function TextArea(props, ref) {
|
|
41
|
+
const {
|
|
42
|
+
overStyled = false,
|
|
43
|
+
formLayout = "stacked",
|
|
44
|
+
|
|
45
|
+
// Label & Wrapper Maps
|
|
46
|
+
labelSize,
|
|
47
|
+
labelAlignment,
|
|
48
|
+
labelOptionalText,
|
|
49
|
+
labelWithEditIcon,
|
|
50
|
+
onLabelEditClick,
|
|
51
|
+
|
|
52
|
+
label,
|
|
53
|
+
assistiveText,
|
|
54
|
+
assistiveWithIcon,
|
|
55
|
+
error,
|
|
56
|
+
required,
|
|
57
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
58
|
+
withAsterisk,
|
|
59
|
+
id,
|
|
60
|
+
className,
|
|
61
|
+
style,
|
|
62
|
+
disabled,
|
|
63
|
+
readOnly,
|
|
64
|
+
readOnlyComponent,
|
|
65
|
+
emptyValueComponent,
|
|
66
|
+
value,
|
|
67
|
+
defaultValue,
|
|
68
|
+
...rest
|
|
69
|
+
} = props;
|
|
70
|
+
const sanitizedProps = filterStylingProps(rest, overStyled);
|
|
71
|
+
const restRecord = sanitizedProps as Record<string, unknown>;
|
|
72
|
+
|
|
73
|
+
// Delete prohibited sizing hooks from bypassing variables natively
|
|
74
|
+
delete restRecord["size"];
|
|
75
|
+
delete restRecord["variant"];
|
|
76
|
+
delete restRecord["radius"];
|
|
77
|
+
|
|
78
|
+
// Securely map core native blocks down ensuring nested CSS modules map precisely
|
|
79
|
+
const mergedClassNames: Partial<Record<string, string>> = {
|
|
80
|
+
wrapper: styles.root, // The nested Input internal relative wrapper bounding box
|
|
81
|
+
input: styles.input,
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
const classNamesProp = restRecord.classNames;
|
|
85
|
+
if (
|
|
86
|
+
classNamesProp &&
|
|
87
|
+
typeof classNamesProp === "object" &&
|
|
88
|
+
!Array.isArray(classNamesProp)
|
|
89
|
+
) {
|
|
90
|
+
const o = classNamesProp as Partial<Record<string, string>>;
|
|
91
|
+
mergedClassNames.wrapper = o.wrapper
|
|
92
|
+
? `${styles.root} ${o.wrapper}`
|
|
93
|
+
: styles.root;
|
|
94
|
+
mergedClassNames.input = o.input
|
|
95
|
+
? `${styles.input} ${o.input}`
|
|
96
|
+
: styles.input;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
const wrapperClass = className
|
|
100
|
+
? `${styles.layoutOverride} ${className}`
|
|
101
|
+
: styles.layoutOverride;
|
|
102
|
+
|
|
103
|
+
return (
|
|
104
|
+
<WithReadOnlyWrapper
|
|
105
|
+
className={wrapperClass}
|
|
106
|
+
style={style as React.CSSProperties}
|
|
107
|
+
controlMaxWidth="var(--recursica_ui-kit_components_textarea_properties_max-width)"
|
|
108
|
+
controlMinWidth="var(--recursica_ui-kit_components_textarea_properties_min-width)"
|
|
109
|
+
overStyled={overStyled as true}
|
|
110
|
+
formLayout={formLayout}
|
|
111
|
+
labelSize={labelSize}
|
|
112
|
+
labelAlignment={labelAlignment}
|
|
113
|
+
labelOptionalText={labelOptionalText}
|
|
114
|
+
labelWithEditIcon={labelWithEditIcon}
|
|
115
|
+
onLabelEditClick={onLabelEditClick}
|
|
116
|
+
label={label}
|
|
117
|
+
assistiveText={assistiveText}
|
|
118
|
+
assistiveWithIcon={assistiveWithIcon}
|
|
119
|
+
error={error}
|
|
120
|
+
required={required}
|
|
121
|
+
id={id}
|
|
122
|
+
readOnly={readOnly}
|
|
123
|
+
readOnlyComponent={readOnlyComponent}
|
|
124
|
+
emptyValueComponent={emptyValueComponent}
|
|
125
|
+
readOnlyType="text"
|
|
126
|
+
readOnlyValue={value !== undefined ? value : defaultValue}
|
|
127
|
+
readOnlyNativeProps={props}
|
|
128
|
+
activeComponent={
|
|
129
|
+
/* Naked Input execution safely decoupled from Mui's macro Input.Wrapper DOM hooks */
|
|
130
|
+
<MuiTextarea
|
|
131
|
+
multiline
|
|
132
|
+
inputRef={ref as any}
|
|
133
|
+
classes={mergedClassNames}
|
|
134
|
+
disabled={disabled}
|
|
135
|
+
value={value}
|
|
136
|
+
defaultValue={defaultValue}
|
|
137
|
+
label={undefined}
|
|
138
|
+
error={undefined}
|
|
139
|
+
required={undefined}
|
|
140
|
+
{...(sanitizedProps as unknown as MuiTextareaProps)}
|
|
141
|
+
/>
|
|
142
|
+
}
|
|
143
|
+
/>
|
|
144
|
+
);
|
|
145
|
+
},
|
|
146
|
+
);
|
|
147
|
+
|
|
148
|
+
TextArea.displayName = "TextArea";
|
|
@@ -1,47 +1,266 @@
|
|
|
1
1
|
/* EXEMPTIONS:
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
/* recursica-ignore: --recursica_ui-kit_components_text-field_properties_border-radius */
|
|
6
|
-
/* recursica-ignore: --recursica_ui-kit_components_text-field_properties_horizontal-padding */
|
|
7
|
-
/* recursica-ignore: --recursica_ui-kit_components_text-field_properties_icon-size */
|
|
8
|
-
/* recursica-ignore: --recursica_ui-kit_components_text-field_properties_icon-text-gap */
|
|
9
|
-
/* recursica-ignore: --recursica_ui-kit_components_text-field_properties_max-width */
|
|
10
|
-
/* recursica-ignore: --recursica_ui-kit_components_text-field_properties_min-height */
|
|
11
|
-
/* recursica-ignore: --recursica_ui-kit_components_text-field_properties_min-width */
|
|
12
|
-
/* recursica-ignore: --recursica_ui-kit_components_text-field_properties_placeholder-opacity */
|
|
13
|
-
/* recursica-ignore: --recursica_ui-kit_components_text-field_properties_text_font-family */
|
|
14
|
-
/* recursica-ignore: --recursica_ui-kit_components_text-field_properties_text_font-size */
|
|
15
|
-
/* recursica-ignore: --recursica_ui-kit_components_text-field_properties_text_font-style */
|
|
16
|
-
/* recursica-ignore: --recursica_ui-kit_components_text-field_properties_text_font-weight */
|
|
17
|
-
/* recursica-ignore: --recursica_ui-kit_components_text-field_properties_text_letter-spacing */
|
|
18
|
-
/* recursica-ignore: --recursica_ui-kit_components_text-field_properties_text_line-height */
|
|
19
|
-
/* recursica-ignore: --recursica_ui-kit_components_text-field_properties_text_text-decoration */
|
|
20
|
-
/* recursica-ignore: --recursica_ui-kit_components_text-field_properties_text_text-transform */
|
|
21
|
-
/* recursica-ignore: --recursica_ui-kit_components_text-field_properties_vertical-padding */
|
|
22
|
-
/* recursica-ignore: --recursica_ui-kit_components_text-field_variants_layouts_side-by-side_properties_top-bottom-margin */
|
|
23
|
-
/* recursica-ignore: --recursica_ui-kit_components_text-field_variants_layouts_stacked_properties_top-bottom-margin */
|
|
2
|
+
- state-specific border-size variables are ignored because a uniform 1px border is applied globally to prevent
|
|
3
|
+
unexpected layout shift or flickering during focus, disabled, or error state transitions. */
|
|
24
4
|
/* recursica-ignore: --recursica_ui-kit_components_text-field_variants_states_default_properties_border-size */
|
|
25
|
-
/* recursica-ignore: --recursica_ui-kit_components_text-field_variants_states_default_properties_colors_background */
|
|
26
|
-
/* recursica-ignore: --recursica_ui-kit_components_text-field_variants_states_default_properties_colors_border-color */
|
|
27
|
-
/* recursica-ignore: --recursica_ui-kit_components_text-field_variants_states_default_properties_colors_leading-icon */
|
|
28
|
-
/* recursica-ignore: --recursica_ui-kit_components_text-field_variants_states_default_properties_colors_text */
|
|
29
|
-
/* recursica-ignore: --recursica_ui-kit_components_text-field_variants_states_default_properties_colors_trailing-icon */
|
|
30
5
|
/* recursica-ignore: --recursica_ui-kit_components_text-field_variants_states_disabled_properties_border-size */
|
|
31
|
-
/* recursica-ignore: --recursica_ui-kit_components_text-field_variants_states_disabled_properties_colors_background */
|
|
32
|
-
/* recursica-ignore: --recursica_ui-kit_components_text-field_variants_states_disabled_properties_colors_border-color */
|
|
33
|
-
/* recursica-ignore: --recursica_ui-kit_components_text-field_variants_states_disabled_properties_colors_leading-icon */
|
|
34
|
-
/* recursica-ignore: --recursica_ui-kit_components_text-field_variants_states_disabled_properties_colors_text */
|
|
35
|
-
/* recursica-ignore: --recursica_ui-kit_components_text-field_variants_states_disabled_properties_colors_trailing-icon */
|
|
36
6
|
/* recursica-ignore: --recursica_ui-kit_components_text-field_variants_states_error_properties_border-size */
|
|
37
|
-
/* recursica-ignore: --recursica_ui-kit_components_text-field_variants_states_error_properties_colors_background */
|
|
38
|
-
/* recursica-ignore: --recursica_ui-kit_components_text-field_variants_states_error_properties_colors_border-color */
|
|
39
|
-
/* recursica-ignore: --recursica_ui-kit_components_text-field_variants_states_error_properties_colors_leading-icon */
|
|
40
|
-
/* recursica-ignore: --recursica_ui-kit_components_text-field_variants_states_error_properties_colors_text */
|
|
41
|
-
/* recursica-ignore: --recursica_ui-kit_components_text-field_variants_states_error_properties_colors_trailing-icon */
|
|
42
7
|
/* recursica-ignore: --recursica_ui-kit_components_text-field_variants_states_focus_properties_border-size */
|
|
43
|
-
|
|
44
|
-
/*
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
8
|
+
|
|
9
|
+
/* LAYOUT SPACING OVERRIDES:
|
|
10
|
+
- Sets the --form-control-margin-bottom spacing hook to map component-specific layout tokens. */
|
|
11
|
+
.layoutOverride {
|
|
12
|
+
--form-control-margin-bottom: var(
|
|
13
|
+
--recursica_ui-kit_components_text-field_variants_layouts_stacked_properties_top-bottom-margin
|
|
14
|
+
);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.layoutOverride[data-form-layout="side-by-side"] {
|
|
18
|
+
--form-control-margin-bottom: var(
|
|
19
|
+
--recursica_ui-kit_components_text-field_variants_layouts_side-by-side_properties_top-bottom-margin
|
|
20
|
+
);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/* HARDCODED VALUES:
|
|
24
|
+
- border-width: 1px. Native geometric boundary for the input box.
|
|
25
|
+
- border-style: solid. Native structural rendering rule.
|
|
26
|
+
- outline: none. Bypassing browser focus rings to rely strictly on Recursica focus states natively.
|
|
27
|
+
- flex/layout: display: flex on the root wrapper safely encapsulating internal section rendering.
|
|
28
|
+
*/
|
|
29
|
+
|
|
30
|
+
.root {
|
|
31
|
+
display: flex;
|
|
32
|
+
position: relative;
|
|
33
|
+
width: 100%;
|
|
34
|
+
min-height: var(
|
|
35
|
+
--recursica_ui-kit_components_text-field_properties_min-height
|
|
36
|
+
);
|
|
37
|
+
|
|
38
|
+
/* Strict Typography Unification placed on root for MUI InputBase inheritance */
|
|
39
|
+
font-family: var(
|
|
40
|
+
--recursica_ui-kit_components_text-field_properties_text_font-family
|
|
41
|
+
);
|
|
42
|
+
font-size: var(
|
|
43
|
+
--recursica_ui-kit_components_text-field_properties_text_font-size
|
|
44
|
+
);
|
|
45
|
+
font-style: var(
|
|
46
|
+
--recursica_ui-kit_components_text-field_properties_text_font-style
|
|
47
|
+
);
|
|
48
|
+
font-weight: var(
|
|
49
|
+
--recursica_ui-kit_components_text-field_properties_text_font-weight
|
|
50
|
+
);
|
|
51
|
+
letter-spacing: var(
|
|
52
|
+
--recursica_ui-kit_components_text-field_properties_text_letter-spacing
|
|
53
|
+
);
|
|
54
|
+
line-height: var(
|
|
55
|
+
--recursica_ui-kit_components_text-field_properties_text_line-height
|
|
56
|
+
);
|
|
57
|
+
text-decoration: var(
|
|
58
|
+
--recursica_ui-kit_components_text-field_properties_text_text-decoration
|
|
59
|
+
);
|
|
60
|
+
text-transform: var(
|
|
61
|
+
--recursica_ui-kit_components_text-field_properties_text_text-transform
|
|
62
|
+
);
|
|
63
|
+
|
|
64
|
+
/* Box Geometry placed on root so MUI InputBase boundary executes */
|
|
65
|
+
border-radius: var(
|
|
66
|
+
--recursica_ui-kit_components_text-field_properties_border-radius
|
|
67
|
+
);
|
|
68
|
+
border-width: 1px;
|
|
69
|
+
border-style: solid;
|
|
70
|
+
|
|
71
|
+
/* Base State Default Execution */
|
|
72
|
+
background-color: var(
|
|
73
|
+
--recursica_ui-kit_components_text-field_variants_states_default_properties_colors_background
|
|
74
|
+
);
|
|
75
|
+
border-color: var(
|
|
76
|
+
--recursica_ui-kit_components_text-field_variants_states_default_properties_colors_border-color
|
|
77
|
+
);
|
|
78
|
+
color: var(
|
|
79
|
+
--recursica_ui-kit_components_text-field_variants_states_default_properties_colors_text
|
|
80
|
+
);
|
|
81
|
+
|
|
82
|
+
/* Override MUI/Mantine native Input variables governing section spacing padding mathematics safely */
|
|
83
|
+
--input-left-section-size: calc(
|
|
84
|
+
var(
|
|
85
|
+
--recursica_ui-kit_components_text-field_properties_horizontal-padding
|
|
86
|
+
) +
|
|
87
|
+
var(--recursica_ui-kit_components_text-field_properties_icon-size) +
|
|
88
|
+
var(--recursica_ui-kit_components_text-field_properties_icon-text-gap)
|
|
89
|
+
);
|
|
90
|
+
--input-right-section-size: calc(
|
|
91
|
+
var(
|
|
92
|
+
--recursica_ui-kit_components_text-field_properties_horizontal-padding
|
|
93
|
+
) +
|
|
94
|
+
var(--recursica_ui-kit_components_text-field_properties_icon-size) +
|
|
95
|
+
var(--recursica_ui-kit_components_text-field_properties_icon-text-gap)
|
|
96
|
+
);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.input {
|
|
100
|
+
/* Structural Overrides */
|
|
101
|
+
width: 100%;
|
|
102
|
+
box-sizing: border-box;
|
|
103
|
+
margin: 0;
|
|
104
|
+
|
|
105
|
+
/* Box Geometry Padding */
|
|
106
|
+
min-height: var(
|
|
107
|
+
--recursica_ui-kit_components_text-field_properties_min-height
|
|
108
|
+
);
|
|
109
|
+
padding-top: var(
|
|
110
|
+
--recursica_ui-kit_components_text-field_properties_vertical-padding
|
|
111
|
+
);
|
|
112
|
+
padding-bottom: var(
|
|
113
|
+
--recursica_ui-kit_components_text-field_properties_vertical-padding
|
|
114
|
+
);
|
|
115
|
+
padding-left: var(
|
|
116
|
+
--recursica_ui-kit_components_text-field_properties_horizontal-padding
|
|
117
|
+
);
|
|
118
|
+
padding-right: var(
|
|
119
|
+
--recursica_ui-kit_components_text-field_properties_horizontal-padding
|
|
120
|
+
);
|
|
121
|
+
|
|
122
|
+
outline: none;
|
|
123
|
+
border: none; /* Because root handles border in MUI */
|
|
124
|
+
background: transparent;
|
|
125
|
+
color: inherit;
|
|
126
|
+
height: auto; /* overrides MUI's 1.1876em */
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.input::placeholder {
|
|
130
|
+
opacity: var(
|
|
131
|
+
--recursica_ui-kit_components_text-field_properties_placeholder-opacity
|
|
132
|
+
);
|
|
133
|
+
color: inherit;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/* Dynamic Padding Overrides */
|
|
137
|
+
.root[data-with-left-section="true"] .input {
|
|
138
|
+
padding-left: var(--input-left-section-size);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.root[data-with-right-section="true"] .input {
|
|
142
|
+
padding-right: var(--input-right-section-size);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/* Flexible End-Caps (Icons, actions) */
|
|
146
|
+
.section {
|
|
147
|
+
display: flex;
|
|
148
|
+
align-items: center;
|
|
149
|
+
height: 100%;
|
|
150
|
+
position: absolute;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.section[data-position="left"] {
|
|
154
|
+
justify-content: flex-start;
|
|
155
|
+
left: 0;
|
|
156
|
+
padding-left: var(
|
|
157
|
+
--recursica_ui-kit_components_text-field_properties_horizontal-padding
|
|
158
|
+
);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.section[data-position="right"] {
|
|
162
|
+
justify-content: flex-end;
|
|
163
|
+
right: 0;
|
|
164
|
+
padding-right: var(
|
|
165
|
+
--recursica_ui-kit_components_text-field_properties_horizontal-padding
|
|
166
|
+
);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.section :global(svg) {
|
|
170
|
+
width: var(--recursica_ui-kit_components_text-field_properties_icon-size);
|
|
171
|
+
height: var(--recursica_ui-kit_components_text-field_properties_icon-size);
|
|
172
|
+
color: var(
|
|
173
|
+
--recursica_ui-kit_components_text-field_variants_states_default_properties_colors_leading-icon
|
|
174
|
+
);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.section[data-position="right"] :global(svg) {
|
|
178
|
+
color: var(
|
|
179
|
+
--recursica_ui-kit_components_text-field_variants_states_default_properties_colors_trailing-icon
|
|
180
|
+
);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
/* -------------------------------------
|
|
184
|
+
STATE CASCADE ARCHITECTURE
|
|
185
|
+
-------------------------------------- */
|
|
186
|
+
|
|
187
|
+
/* Focus State Mapping (Triggered internally via browser pseudo-pseudo-class) */
|
|
188
|
+
.root:focus-within,
|
|
189
|
+
.root:focus {
|
|
190
|
+
border-color: var(
|
|
191
|
+
--recursica_ui-kit_components_text-field_variants_states_focus_properties_colors_border-color
|
|
192
|
+
);
|
|
193
|
+
background-color: var(
|
|
194
|
+
--recursica_ui-kit_components_text-field_variants_states_focus_properties_colors_background
|
|
195
|
+
);
|
|
196
|
+
color: var(
|
|
197
|
+
--recursica_ui-kit_components_text-field_variants_states_focus_properties_colors_text
|
|
198
|
+
);
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.root:focus-within .section[data-position="left"] :global(svg) {
|
|
202
|
+
color: var(
|
|
203
|
+
--recursica_ui-kit_components_text-field_variants_states_focus_properties_colors_leading-icon
|
|
204
|
+
);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.root:focus-within .section[data-position="right"] :global(svg) {
|
|
208
|
+
color: var(
|
|
209
|
+
--recursica_ui-kit_components_text-field_variants_states_focus_properties_colors_trailing-icon
|
|
210
|
+
);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
/* Error State Mapping (Propagated strictly down from the wrapper DOM context) */
|
|
214
|
+
.root[data-error="true"] {
|
|
215
|
+
border-color: var(
|
|
216
|
+
--recursica_ui-kit_components_text-field_variants_states_error_properties_colors_border-color
|
|
217
|
+
);
|
|
218
|
+
background-color: var(
|
|
219
|
+
--recursica_ui-kit_components_text-field_variants_states_error_properties_colors_background
|
|
220
|
+
);
|
|
221
|
+
color: var(
|
|
222
|
+
--recursica_ui-kit_components_text-field_variants_states_error_properties_colors_text
|
|
223
|
+
);
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.root[data-error="true"] .section[data-position="left"] :global(svg) {
|
|
227
|
+
color: var(
|
|
228
|
+
--recursica_ui-kit_components_text-field_variants_states_error_properties_colors_leading-icon
|
|
229
|
+
);
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.root[data-error="true"] .section[data-position="right"] :global(svg) {
|
|
233
|
+
color: var(
|
|
234
|
+
--recursica_ui-kit_components_text-field_variants_states_error_properties_colors_trailing-icon
|
|
235
|
+
);
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
/* Disabled State Mapping (Propagated strictly down from the wrapper DOM context) */
|
|
239
|
+
.root[data-disabled="true"] {
|
|
240
|
+
border-color: var(
|
|
241
|
+
--recursica_ui-kit_components_text-field_variants_states_disabled_properties_colors_border-color
|
|
242
|
+
);
|
|
243
|
+
background-color: var(
|
|
244
|
+
--recursica_ui-kit_components_text-field_variants_states_disabled_properties_colors_background
|
|
245
|
+
);
|
|
246
|
+
color: var(
|
|
247
|
+
--recursica_ui-kit_components_text-field_variants_states_disabled_properties_colors_text
|
|
248
|
+
);
|
|
249
|
+
cursor: not-allowed;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
.root[data-disabled="true"] .input {
|
|
253
|
+
cursor: not-allowed;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
.root[data-disabled="true"] .section[data-position="left"] :global(svg) {
|
|
257
|
+
color: var(
|
|
258
|
+
--recursica_ui-kit_components_text-field_variants_states_disabled_properties_colors_leading-icon
|
|
259
|
+
);
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
.root[data-disabled="true"] .section[data-position="right"] :global(svg) {
|
|
263
|
+
color: var(
|
|
264
|
+
--recursica_ui-kit_components_text-field_variants_states_disabled_properties_colors_trailing-icon
|
|
265
|
+
);
|
|
266
|
+
}
|
|
@@ -1,35 +1,162 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
2
|
import { TextField } from "./TextField";
|
|
3
|
-
import {
|
|
4
|
-
|
|
3
|
+
import { formControlArgTypes } from "../../../.storybook/commonArgTypes";
|
|
5
4
|
const meta: Meta<typeof TextField> = {
|
|
6
|
-
title: "UI-Kit
|
|
5
|
+
title: "UI-Kit/TextField",
|
|
7
6
|
component: TextField,
|
|
8
7
|
tags: ["autodocs"],
|
|
9
8
|
parameters: {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
9
|
+
docs: {
|
|
10
|
+
description: {
|
|
11
|
+
component: `
|
|
12
|
+
The \`TextField\` primitive functions as a universal text entry input natively integrated directly into the unified \`FormControlWrapper\` architecture.
|
|
13
|
+
|
|
14
|
+
### Architectural Decoupling
|
|
15
|
+
Recursica forcibly overrides the internal Mantine \`Input.Wrapper\` defaults injecting an untamed \`<Input>\` layout primitive perfectly mapped back into our rigid design systems. State modifiers (e.g. Focus, Errors) hook flawlessly back onto our CSS module mapping variable colors strictly accurately.
|
|
16
|
+
|
|
17
|
+
### Examples
|
|
18
|
+
Always structure horizontal architectures via the generic \`formLayout\` parameter.
|
|
19
|
+
\`\`\`tsx
|
|
20
|
+
<TextField
|
|
21
|
+
label="Primary Network Socket"
|
|
22
|
+
assistiveText="Ensure connections resolve seamlessly."
|
|
23
|
+
formLayout="stacked"
|
|
24
|
+
/>
|
|
25
|
+
\`\`\`
|
|
26
|
+
`,
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
argTypes: {
|
|
31
|
+
...formControlArgTypes,
|
|
32
|
+
disabled: {
|
|
33
|
+
control: "boolean",
|
|
34
|
+
description:
|
|
35
|
+
"Maps the formal disabled variable states structurally to the input core.",
|
|
36
|
+
},
|
|
37
|
+
error: {
|
|
38
|
+
control: "text",
|
|
39
|
+
description:
|
|
40
|
+
"Applies the strict error string boundary rendering invalid structures seamlessly.",
|
|
41
|
+
},
|
|
42
|
+
required: {
|
|
43
|
+
control: "boolean",
|
|
44
|
+
},
|
|
45
|
+
label: {
|
|
46
|
+
control: "text",
|
|
47
|
+
},
|
|
48
|
+
assistiveText: {
|
|
49
|
+
control: "text",
|
|
50
|
+
},
|
|
51
|
+
readOnly: {
|
|
52
|
+
control: "boolean",
|
|
53
|
+
description:
|
|
54
|
+
"Toggles structural read-only data presentation explicitly blocking standard component bindings.",
|
|
26
55
|
},
|
|
27
56
|
},
|
|
28
57
|
};
|
|
29
58
|
|
|
30
59
|
export default meta;
|
|
60
|
+
|
|
31
61
|
type Story = StoryObj<typeof TextField>;
|
|
32
62
|
|
|
33
63
|
export const Default: Story = {
|
|
34
|
-
|
|
64
|
+
args: {
|
|
65
|
+
disabled: false,
|
|
66
|
+
label: "Authentication Token",
|
|
67
|
+
placeholder: "Enter validation hash...",
|
|
68
|
+
assistiveText:
|
|
69
|
+
"Tokens are stored identically locally and strictly ephemeral.",
|
|
70
|
+
},
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
export const FormsSideBySide: Story = {
|
|
74
|
+
args: {
|
|
75
|
+
label: "Distributed Access Control",
|
|
76
|
+
placeholder: "admin@node.local",
|
|
77
|
+
assistiveText:
|
|
78
|
+
"Specify the exact cluster administrative credentials enforcing strict domain policies. This violently long string tests native textual wrapping safely mapping alongside inputs.",
|
|
79
|
+
formLayout: "side-by-side",
|
|
80
|
+
},
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
export const WithLeadingIcon: Story = {
|
|
84
|
+
args: {
|
|
85
|
+
label: "Search Global Context",
|
|
86
|
+
placeholder: "Search for repositories...",
|
|
87
|
+
leftSection: (
|
|
88
|
+
<svg
|
|
89
|
+
width="24"
|
|
90
|
+
height="24"
|
|
91
|
+
viewBox="0 0 24 24"
|
|
92
|
+
fill="none"
|
|
93
|
+
stroke="currentColor"
|
|
94
|
+
strokeWidth="2"
|
|
95
|
+
strokeLinecap="round"
|
|
96
|
+
strokeLinejoin="round"
|
|
97
|
+
>
|
|
98
|
+
<circle cx="11" cy="11" r="8"></circle>
|
|
99
|
+
<line x1="21" y1="21" x2="16.65" y2="16.65"></line>
|
|
100
|
+
</svg>
|
|
101
|
+
),
|
|
102
|
+
},
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
export const WithTrailingIcon: Story = {
|
|
106
|
+
args: {
|
|
107
|
+
label: "Validation URL",
|
|
108
|
+
placeholder: "https://recursica.dev",
|
|
109
|
+
rightSection: (
|
|
110
|
+
<svg
|
|
111
|
+
width="24"
|
|
112
|
+
height="24"
|
|
113
|
+
viewBox="0 0 24 24"
|
|
114
|
+
fill="none"
|
|
115
|
+
stroke="currentColor"
|
|
116
|
+
strokeWidth="2"
|
|
117
|
+
strokeLinecap="round"
|
|
118
|
+
strokeLinejoin="round"
|
|
119
|
+
>
|
|
120
|
+
<polyline points="20 6 9 17 4 12"></polyline>
|
|
121
|
+
</svg>
|
|
122
|
+
),
|
|
123
|
+
},
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
export const Disabled: Story = {
|
|
127
|
+
args: {
|
|
128
|
+
label: "Disabled Deployment Node",
|
|
129
|
+
placeholder: "Disabled primitive map...",
|
|
130
|
+
disabled: true,
|
|
131
|
+
},
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
export const ErrorState: Story = {
|
|
135
|
+
args: {
|
|
136
|
+
label: "Cluster Failure",
|
|
137
|
+
placeholder: "Failing component instance...",
|
|
138
|
+
defaultValue: "Invalid Execution Plan",
|
|
139
|
+
error:
|
|
140
|
+
"Critical runtime node disconnect detected traversing DOM architecture.",
|
|
141
|
+
required: true,
|
|
142
|
+
},
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
export const StaticReadOnly: Story = {
|
|
146
|
+
args: {
|
|
147
|
+
label: "Static ReadOnly Review",
|
|
148
|
+
placeholder: "Ignored...",
|
|
149
|
+
value: "Explicitly Uneditable Bound Output",
|
|
150
|
+
readOnly: true,
|
|
151
|
+
},
|
|
152
|
+
};
|
|
153
|
+
|
|
154
|
+
export const EditableReadOnly: Story = {
|
|
155
|
+
args: {
|
|
156
|
+
label: "Editable ReadOnly Review",
|
|
157
|
+
placeholder: "Ignored until active...",
|
|
158
|
+
defaultValue: "Waiting for Edit Execution",
|
|
159
|
+
readOnly: true,
|
|
160
|
+
labelWithEditIcon: true,
|
|
161
|
+
},
|
|
35
162
|
};
|