@pega/cosmos-react-core 10.0.0-build.10.1 → 10.0.0-build.10.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/lib/components/Checkbox/Checkbox.d.ts +1 -1
- package/lib/components/Checkbox/Checkbox.test-ids.d.ts +1 -1
- package/lib/components/Checkbox/Checkbox.test-ids.d.ts.map +1 -1
- package/lib/components/CheckboxGroup/CheckboxGroup.d.ts +1 -1
- package/lib/components/ColorPicker/ColorPicker.d.ts +1 -1
- package/lib/components/ColorPicker/ColorPicker.test-ids.d.ts +1 -1
- package/lib/components/ColorPicker/ColorPicker.test-ids.d.ts.map +1 -1
- package/lib/components/ComboBox/ComboBox.d.ts +1 -1
- package/lib/components/ComboBox/ComboxBox.test-ids.d.ts +1 -1
- package/lib/components/ComboBox/ComboxBox.test-ids.d.ts.map +1 -1
- package/lib/components/CompositeInput/CompositeInput.d.ts +1 -1
- package/lib/components/CompositeInput/CompositeInput.test-ids.d.ts +1 -1
- package/lib/components/CompositeInput/CompositeInput.test-ids.d.ts.map +1 -1
- package/lib/components/Currency/Currency.test-ids.d.ts +1 -1
- package/lib/components/Currency/Currency.test-ids.d.ts.map +1 -1
- package/lib/components/Currency/CurrencyInput.d.ts +1 -1
- package/lib/components/Currency/CurrencyInput.styles.d.ts +1 -1
- package/lib/components/DateTime/DateTime.test-ids.d.ts +10 -10
- package/lib/components/DateTime/DateTime.test-ids.d.ts.map +1 -1
- package/lib/components/DateTime/Input/DateInput.d.ts +1 -1
- package/lib/components/DateTime/Input/DateRangeInput.d.ts +1 -1
- package/lib/components/DateTime/Input/DateTimeInput.d.ts +1 -1
- package/lib/components/DateTime/Input/DayOfWeekInput.d.ts +1 -1
- package/lib/components/DateTime/Input/Duration/DurationInput.d.ts +1 -1
- package/lib/components/DateTime/Input/MonthInput.d.ts +1 -1
- package/lib/components/DateTime/Input/QuarterInput.d.ts +1 -1
- package/lib/components/DateTime/Input/TimeInput.d.ts +1 -1
- package/lib/components/DateTime/Input/TimeRangeInput.d.ts +1 -1
- package/lib/components/DateTime/Input/WeekInput.d.ts +1 -1
- package/lib/components/File/File.test-ids.d.ts +1 -1
- package/lib/components/File/File.test-ids.d.ts.map +1 -1
- package/lib/components/File/FileInput.d.ts +1 -1
- package/lib/components/File/FileInput.styles.d.ts +1 -1
- package/lib/components/FormField/FormField.d.ts +9 -2
- package/lib/components/FormField/FormField.d.ts.map +1 -1
- package/lib/components/FormField/FormField.js +73 -3
- package/lib/components/FormField/FormField.js.map +1 -1
- package/lib/components/FormField/FormField.test-ids.d.ts +2 -2
- package/lib/components/FormField/FormField.test-ids.d.ts.map +1 -1
- package/lib/components/FormField/FormField.test-ids.js +1 -0
- package/lib/components/FormField/FormField.test-ids.js.map +1 -1
- package/lib/components/FormField/index.d.ts +1 -1
- package/lib/components/FormField/index.d.ts.map +1 -1
- package/lib/components/FormField/index.js.map +1 -1
- package/lib/components/Input/Input.d.ts +5 -4
- package/lib/components/Input/Input.d.ts.map +1 -1
- package/lib/components/Input/Input.js +1 -0
- package/lib/components/Input/Input.js.map +1 -1
- package/lib/components/Input/Input.test-ids.d.ts +1 -1
- package/lib/components/Input/Input.test-ids.d.ts.map +1 -1
- package/lib/components/Location/Location.test-ids.d.ts +1 -1
- package/lib/components/Location/Location.test-ids.d.ts.map +1 -1
- package/lib/components/Location/LocationInput.d.ts +1 -1
- package/lib/components/MultiStepForm/FormProgress.styles.js +5 -5
- package/lib/components/MultiStepForm/FormProgress.styles.js.map +1 -1
- package/lib/components/Number/Number.test-ids.d.ts +2 -2
- package/lib/components/Number/Number.test-ids.d.ts.map +1 -1
- package/lib/components/Number/NumberInput.d.ts +1 -1
- package/lib/components/Number/NumberRangeInput.d.ts +1 -1
- package/lib/components/Phone/Phone.test-ids.d.ts +1 -1
- package/lib/components/Phone/Phone.test-ids.d.ts.map +1 -1
- package/lib/components/Phone/PhoneInput.d.ts +1 -1
- package/lib/components/RadioButton/RadioButton.d.ts +1 -1
- package/lib/components/RadioButton/RadioButton.test-ids.d.ts +1 -1
- package/lib/components/RadioButton/RadioButton.test-ids.d.ts.map +1 -1
- package/lib/components/RadioButtonGroup/RadioButtonGroup.d.ts +2 -2
- package/lib/components/RadioButtonGroup/RadioButtonGroup.d.ts.map +1 -1
- package/lib/components/RadioButtonGroup/RadioButtonGroup.js.map +1 -1
- package/lib/components/RadioCheck/RadioCheck.d.ts +1 -1
- package/lib/components/RadioCheck/RadioCheck.test-ids.d.ts +1 -1
- package/lib/components/RadioCheck/RadioCheck.test-ids.d.ts.map +1 -1
- package/lib/components/RadioCheckGroup/RadioCheckGroup.d.ts +7 -1
- package/lib/components/RadioCheckGroup/RadioCheckGroup.d.ts.map +1 -1
- package/lib/components/RadioCheckGroup/RadioCheckGroup.js +25 -14
- package/lib/components/RadioCheckGroup/RadioCheckGroup.js.map +1 -1
- package/lib/components/RadioCheckGroup/RadioCheckGroup.test-ids.d.ts +1 -1
- package/lib/components/RadioCheckGroup/RadioCheckGroup.test-ids.d.ts.map +1 -1
- package/lib/components/SearchInput/SearchInput.styles.d.ts +1 -1
- package/lib/components/Select/Select.d.ts +1 -1
- package/lib/components/Select/Select.test-ids.d.ts +1 -1
- package/lib/components/Select/Select.test-ids.d.ts.map +1 -1
- package/lib/components/Slider/Slider.d.ts +1 -1
- package/lib/components/Slider/Slider.test-ids.d.ts +1 -1
- package/lib/components/Slider/Slider.test-ids.d.ts.map +1 -1
- package/lib/components/TextArea/TextArea.d.ts +1 -1
- package/lib/components/TextArea/TextArea.test-ids.d.ts +1 -1
- package/lib/components/TextArea/TextArea.test-ids.d.ts.map +1 -1
- package/lib/hooks/useI18n.d.ts +2 -0
- package/lib/hooks/useI18n.d.ts.map +1 -1
- package/lib/i18n/default.d.ts +2 -0
- package/lib/i18n/default.d.ts.map +1 -1
- package/lib/i18n/default.js +2 -0
- package/lib/i18n/default.js.map +1 -1
- package/lib/i18n/i18n.d.ts +2 -0
- package/lib/i18n/i18n.d.ts.map +1 -1
- package/lib/styles/utils.d.ts +2 -0
- package/lib/styles/utils.d.ts.map +1 -1
- package/lib/styles/utils.js +7 -0
- package/lib/styles/utils.js.map +1 -1
- package/lib/theme/themes/aurigaDarkTheme.json +1 -1
- package/lib/theme/themes/aurigaTheme.json +3 -3
- package/lib/theme/themes/velaDarkTheme.json +1 -1
- package/lib/theme/themes/velaTheme.json +2 -2
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { RadioCheckProps } from '../RadioCheck';
|
|
2
2
|
export type CheckboxProps = Omit<RadioCheckProps, 'type'>;
|
|
3
3
|
declare const _default: import("react").ForwardRefExoticComponent<Omit<CheckboxProps, "ref"> & import("react").RefAttributes<HTMLInputElement>> & {
|
|
4
|
-
getTestIds: (testIdProp?: import("../..").TestIdProp["testId"]) => import("../..").TestIdsRecord<readonly ["control", "label", "info", "additional-info", "suggestion-accept", "suggestion-reject"]>;
|
|
4
|
+
getTestIds: (testIdProp?: import("../..").TestIdProp["testId"]) => import("../..").TestIdsRecord<readonly ["control", "label", "info", "additional-info", "actions", "suggestion-accept", "suggestion-reject"]>;
|
|
5
5
|
};
|
|
6
6
|
export default _default;
|
|
7
7
|
//# sourceMappingURL=Checkbox.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const getCheckboxTestIds: (testIdProp?: import("../..").TestIdProp["testId"]) => import("../..").TestIdsRecord<readonly ["control", "label", "info", "additional-info", "suggestion-accept", "suggestion-reject"]>;
|
|
1
|
+
export declare const getCheckboxTestIds: (testIdProp?: import("../..").TestIdProp["testId"]) => import("../..").TestIdsRecord<readonly ["control", "label", "info", "additional-info", "actions", "suggestion-accept", "suggestion-reject"]>;
|
|
2
2
|
export declare const getCheckboxCardTestIds: (testIdProp?: import("../..").TestIdProp["testId"]) => import("../..").TestIdsRecord<readonly ["control", "content", "image", "label", "actions"]>;
|
|
3
3
|
//# sourceMappingURL=Checkbox.test-ids.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.test-ids.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.test-ids.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"Checkbox.test-ids.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.test-ids.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,kBAAkB,qMAA+D,CAAC;AAE/F,eAAO,MAAM,sBAAsB,oJAGxB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { RadioCheckGroupProps } from '../RadioCheckGroup';
|
|
2
2
|
export type CheckboxGroupProps = Omit<RadioCheckGroupProps, 'arrowNavigation'>;
|
|
3
3
|
declare const _default: import("react").ForwardRefExoticComponent<Omit<CheckboxGroupProps, "ref"> & import("react").RefAttributes<HTMLElement>> & {
|
|
4
|
-
getTestIds: (testIdProp?: import("../..").TestIdProp["testId"]) => import("../..").TestIdsRecord<readonly ["label", "info", "additional-info", "suggestion-accept", "suggestion-reject"]>;
|
|
4
|
+
getTestIds: (testIdProp?: import("../..").TestIdProp["testId"]) => import("../..").TestIdsRecord<readonly ["label", "info", "additional-info", "actions", "suggestion-accept", "suggestion-reject"]>;
|
|
5
5
|
};
|
|
6
6
|
export default _default;
|
|
7
7
|
//# sourceMappingURL=CheckboxGroup.d.ts.map
|
|
@@ -47,7 +47,7 @@ type ColorResult = {
|
|
|
47
47
|
};
|
|
48
48
|
type ColorChangeHandler = (color: ColorResult, event: ChangeEvent<HTMLInputElement>) => void;
|
|
49
49
|
declare const _default: import("react").ForwardRefExoticComponent<Omit<ColorPickerProps, "ref"> & import("react").RefAttributes<HTMLInputElement>> & {
|
|
50
|
-
getTestIds: (testIdProp?: TestIdProp["testId"]) => import("../..").TestIdsRecord<readonly ["control", "label", "info", "additional-info", "suggestion-accept", "suggestion-reject"]>;
|
|
50
|
+
getTestIds: (testIdProp?: TestIdProp["testId"]) => import("../..").TestIdsRecord<readonly ["control", "label", "info", "additional-info", "actions", "suggestion-accept", "suggestion-reject"]>;
|
|
51
51
|
};
|
|
52
52
|
export default _default;
|
|
53
53
|
//# sourceMappingURL=ColorPicker.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const getColorPickerTestIds: (testIdProp?: import("../..").TestIdProp["testId"]) => import("../..").TestIdsRecord<readonly ["control", "label", "info", "additional-info", "suggestion-accept", "suggestion-reject"]>;
|
|
1
|
+
export declare const getColorPickerTestIds: (testIdProp?: import("../..").TestIdProp["testId"]) => import("../..").TestIdsRecord<readonly ["control", "label", "info", "additional-info", "actions", "suggestion-accept", "suggestion-reject"]>;
|
|
2
2
|
//# sourceMappingURL=ColorPicker.test-ids.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ColorPicker.test-ids.d.ts","sourceRoot":"","sources":["../../../src/components/ColorPicker/ColorPicker.test-ids.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,qBAAqB,
|
|
1
|
+
{"version":3,"file":"ColorPicker.test-ids.d.ts","sourceRoot":"","sources":["../../../src/components/ColorPicker/ColorPicker.test-ids.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,qBAAqB,qMAGvB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type ComboBoxProps from './ComboBox.types';
|
|
2
2
|
declare const _default: import("react").ForwardRefExoticComponent<Omit<ComboBoxProps, "ref"> & import("react").RefAttributes<HTMLDivElement>> & {
|
|
3
|
-
getTestIds: (testIdProp?: import("../..").TestIdProp["testId"]) => import("../..").TestIdsRecord<readonly ["control", "label", "info", "additional-info", "suggestion-accept", "suggestion-reject"]>;
|
|
3
|
+
getTestIds: (testIdProp?: import("../..").TestIdProp["testId"]) => import("../..").TestIdsRecord<readonly ["control", "label", "info", "additional-info", "actions", "suggestion-accept", "suggestion-reject"]>;
|
|
4
4
|
};
|
|
5
5
|
export default _default;
|
|
6
6
|
//# sourceMappingURL=ComboBox.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const getComboBoxTestIds: (testIdProp?: import("../..").TestIdProp["testId"]) => import("../..").TestIdsRecord<readonly ["control", "label", "info", "additional-info", "suggestion-accept", "suggestion-reject"]>;
|
|
1
|
+
export declare const getComboBoxTestIds: (testIdProp?: import("../..").TestIdProp["testId"]) => import("../..").TestIdsRecord<readonly ["control", "label", "info", "additional-info", "actions", "suggestion-accept", "suggestion-reject"]>;
|
|
2
2
|
//# sourceMappingURL=ComboxBox.test-ids.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComboxBox.test-ids.d.ts","sourceRoot":"","sources":["../../../src/components/ComboBox/ComboxBox.test-ids.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"ComboxBox.test-ids.d.ts","sourceRoot":"","sources":["../../../src/components/ComboBox/ComboxBox.test-ids.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,kBAAkB,qMAAgE,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { CompositeInputProps } from './CompositeInput.types';
|
|
2
2
|
declare const _default: (<P extends object>(props: CompositeInputProps<P>) => JSX.Element | null) & {
|
|
3
|
-
getTestIds: (testIdProp?: import("../..").TestIdProp["testId"]) => import("../..").TestIdsRecord<readonly ["control", "label", "info", "additional-info", "suggestion-accept", "suggestion-reject"]>;
|
|
3
|
+
getTestIds: (testIdProp?: import("../..").TestIdProp["testId"]) => import("../..").TestIdsRecord<readonly ["control", "label", "info", "additional-info", "actions", "suggestion-accept", "suggestion-reject"]>;
|
|
4
4
|
};
|
|
5
5
|
export default _default;
|
|
6
6
|
//# sourceMappingURL=CompositeInput.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const getCompositeInputTestIds: (testIdProp?: import("../..").TestIdProp["testId"]) => import("../..").TestIdsRecord<readonly ["control", "label", "info", "additional-info", "suggestion-accept", "suggestion-reject"]>;
|
|
1
|
+
export declare const getCompositeInputTestIds: (testIdProp?: import("../..").TestIdProp["testId"]) => import("../..").TestIdsRecord<readonly ["control", "label", "info", "additional-info", "actions", "suggestion-accept", "suggestion-reject"]>;
|
|
2
2
|
//# sourceMappingURL=CompositeInput.test-ids.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CompositeInput.test-ids.d.ts","sourceRoot":"","sources":["../../../src/components/CompositeInput/CompositeInput.test-ids.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,wBAAwB,
|
|
1
|
+
{"version":3,"file":"CompositeInput.test-ids.d.ts","sourceRoot":"","sources":["../../../src/components/CompositeInput/CompositeInput.test-ids.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,wBAAwB,qMAG1B,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const getCurrencyInputTestIds: (testIdProp?: import("../..").TestIdProp["testId"]) => import("../..").TestIdsRecord<readonly ["control", "label", "info", "additional-info", "suggestion-accept", "suggestion-reject"]>;
|
|
1
|
+
export declare const getCurrencyInputTestIds: (testIdProp?: import("../..").TestIdProp["testId"]) => import("../..").TestIdsRecord<readonly ["control", "label", "info", "additional-info", "actions", "suggestion-accept", "suggestion-reject"]>;
|
|
2
2
|
//# sourceMappingURL=Currency.test-ids.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Currency.test-ids.d.ts","sourceRoot":"","sources":["../../../src/components/Currency/Currency.test-ids.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,uBAAuB,
|
|
1
|
+
{"version":3,"file":"Currency.test-ids.d.ts","sourceRoot":"","sources":["../../../src/components/Currency/Currency.test-ids.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,uBAAuB,qMAGzB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ForwardRefForwardPropsComponent } from '../../types';
|
|
2
2
|
import type CurrencyInputProps from './CurrencyInput.types';
|
|
3
3
|
declare const _default: ForwardRefForwardPropsComponent<CurrencyInputProps> & {
|
|
4
|
-
getTestIds: (testIdProp?: import("../..").TestIdProp["testId"]) => import("../..").TestIdsRecord<readonly ["control", "label", "info", "additional-info", "suggestion-accept", "suggestion-reject"]>;
|
|
4
|
+
getTestIds: (testIdProp?: import("../..").TestIdProp["testId"]) => import("../..").TestIdsRecord<readonly ["control", "label", "info", "additional-info", "actions", "suggestion-accept", "suggestion-reject"]>;
|
|
5
5
|
};
|
|
6
6
|
export default _default;
|
|
7
7
|
//# sourceMappingURL=CurrencyInput.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
declare const StyledCurrencyInput: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<Omit<import("../Input").InputProps, "ref"> & import("react").RefAttributes<HTMLInputElement>, "ref"> & {
|
|
2
2
|
ref?: ((instance: HTMLInputElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLInputElement> | null | undefined;
|
|
3
3
|
}, never>> & string & Omit<import("react").ForwardRefExoticComponent<Omit<import("../Input").InputProps, "ref"> & import("react").RefAttributes<HTMLInputElement>> & {
|
|
4
|
-
getTestIds: (testIdProp?: import("../..").TestIdProp["testId"]) => import("../..").TestIdsRecord<readonly ["control", "label", "info", "additional-info", "suggestion-accept", "suggestion-reject"]>;
|
|
4
|
+
getTestIds: (testIdProp?: import("../..").TestIdProp["testId"]) => import("../..").TestIdsRecord<readonly ["control", "label", "info", "additional-info", "actions", "suggestion-accept", "suggestion-reject"]>;
|
|
5
5
|
}, keyof import("react").Component<any, {}, any>>;
|
|
6
6
|
export default StyledCurrencyInput;
|
|
7
7
|
//# sourceMappingURL=CurrencyInput.styles.d.ts.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export declare const getDurationInputTestIds: (testIdProp?: import("../..").TestIdProp["testId"]) => import("../..").TestIdsRecord<readonly ["control-hour", "control-minute", "control-second", "control-number", "control-unit", "label", "info", "additional-info", "suggestion-accept", "suggestion-reject"]>;
|
|
2
|
-
export declare const getDateInputTestIds: (testIdProp?: import("../..").TestIdProp["testId"]) => import("../..").TestIdsRecord<readonly ["control-day", "control-month", "control-year", "open-close-picker", "picker", "clear-current-date", "set-current-date", "label", "info", "additional-info", "suggestion-accept", "suggestion-reject"]>;
|
|
3
|
-
export declare const getDateRangeInputTestIds: (testIdProp?: import("../..").TestIdProp["testId"]) => import("../..").TestIdsRecord<readonly ["from-date", "to-date", "label", "info", "additional-info", "suggestion-accept", "suggestion-reject"]>;
|
|
4
|
-
export declare const getDateTimeInputTestIds: (testIdProp?: import("../..").TestIdProp["testId"]) => import("../..").TestIdsRecord<readonly ["control-day", "control-month", "control-year", "control-hour", "control-minute", "control-second", "control-period", "open-close-picker", "picker", "discard-changes", "apply-changes", "clear-current-date-and-time", "set-current-date-and-time", "label", "info", "additional-info", "suggestion-accept", "suggestion-reject"]>;
|
|
5
|
-
export declare const getDayOfWeekInputTestIds: (testIdProp?: import("../..").TestIdProp["testId"]) => import("../..").TestIdsRecord<readonly ["control", "label", "info", "additional-info", "suggestion-accept", "suggestion-reject"]>;
|
|
6
|
-
export declare const getMonthInputTestIds: (testIdProp?: import("../..").TestIdProp["testId"]) => import("../..").TestIdsRecord<readonly ["control-month", "control-year", "label", "info", "additional-info", "suggestion-accept", "suggestion-reject"]>;
|
|
7
|
-
export declare const getQuarterInputTestIds: (testIdProp?: import("../..").TestIdProp["testId"]) => import("../..").TestIdsRecord<readonly ["control-quarter", "control-year", "label", "info", "additional-info", "suggestion-accept", "suggestion-reject"]>;
|
|
8
|
-
export declare const getTimeInputTestIds: (testIdProp?: import("../..").TestIdProp["testId"]) => import("../..").TestIdsRecord<readonly ["control-hour", "control-minute", "control-second", "control-period", "open-close-picker", "picker", "clear-current-time", "label", "info", "additional-info", "suggestion-accept", "suggestion-reject"]>;
|
|
9
|
-
export declare const getTimeRangeInputTestIds: (testIdProp?: import("../..").TestIdProp["testId"]) => import("../..").TestIdsRecord<readonly ["from-time", "to-time", "from-date-time", "to-date-time", "label", "info", "additional-info", "suggestion-accept", "suggestion-reject"]>;
|
|
10
|
-
export declare const getWeekInputTestIds: (testIdProp?: import("../..").TestIdProp["testId"]) => import("../..").TestIdsRecord<readonly ["control-week", "control-year", "open-close-picker", "picker", "clear-current-week", "label", "info", "additional-info", "suggestion-accept", "suggestion-reject"]>;
|
|
1
|
+
export declare const getDurationInputTestIds: (testIdProp?: import("../..").TestIdProp["testId"]) => import("../..").TestIdsRecord<readonly ["control-hour", "control-minute", "control-second", "control-number", "control-unit", "label", "info", "additional-info", "actions", "suggestion-accept", "suggestion-reject"]>;
|
|
2
|
+
export declare const getDateInputTestIds: (testIdProp?: import("../..").TestIdProp["testId"]) => import("../..").TestIdsRecord<readonly ["control-day", "control-month", "control-year", "open-close-picker", "picker", "clear-current-date", "set-current-date", "label", "info", "additional-info", "actions", "suggestion-accept", "suggestion-reject"]>;
|
|
3
|
+
export declare const getDateRangeInputTestIds: (testIdProp?: import("../..").TestIdProp["testId"]) => import("../..").TestIdsRecord<readonly ["from-date", "to-date", "label", "info", "additional-info", "actions", "suggestion-accept", "suggestion-reject"]>;
|
|
4
|
+
export declare const getDateTimeInputTestIds: (testIdProp?: import("../..").TestIdProp["testId"]) => import("../..").TestIdsRecord<readonly ["control-day", "control-month", "control-year", "control-hour", "control-minute", "control-second", "control-period", "open-close-picker", "picker", "discard-changes", "apply-changes", "clear-current-date-and-time", "set-current-date-and-time", "label", "info", "additional-info", "actions", "suggestion-accept", "suggestion-reject"]>;
|
|
5
|
+
export declare const getDayOfWeekInputTestIds: (testIdProp?: import("../..").TestIdProp["testId"]) => import("../..").TestIdsRecord<readonly ["control", "label", "info", "additional-info", "actions", "suggestion-accept", "suggestion-reject"]>;
|
|
6
|
+
export declare const getMonthInputTestIds: (testIdProp?: import("../..").TestIdProp["testId"]) => import("../..").TestIdsRecord<readonly ["control-month", "control-year", "label", "info", "additional-info", "actions", "suggestion-accept", "suggestion-reject"]>;
|
|
7
|
+
export declare const getQuarterInputTestIds: (testIdProp?: import("../..").TestIdProp["testId"]) => import("../..").TestIdsRecord<readonly ["control-quarter", "control-year", "label", "info", "additional-info", "actions", "suggestion-accept", "suggestion-reject"]>;
|
|
8
|
+
export declare const getTimeInputTestIds: (testIdProp?: import("../..").TestIdProp["testId"]) => import("../..").TestIdsRecord<readonly ["control-hour", "control-minute", "control-second", "control-period", "open-close-picker", "picker", "clear-current-time", "label", "info", "additional-info", "actions", "suggestion-accept", "suggestion-reject"]>;
|
|
9
|
+
export declare const getTimeRangeInputTestIds: (testIdProp?: import("../..").TestIdProp["testId"]) => import("../..").TestIdsRecord<readonly ["from-time", "to-time", "from-date-time", "to-date-time", "label", "info", "additional-info", "actions", "suggestion-accept", "suggestion-reject"]>;
|
|
10
|
+
export declare const getWeekInputTestIds: (testIdProp?: import("../..").TestIdProp["testId"]) => import("../..").TestIdsRecord<readonly ["control-week", "control-year", "open-close-picker", "picker", "clear-current-week", "label", "info", "additional-info", "actions", "suggestion-accept", "suggestion-reject"]>;
|
|
11
11
|
export declare const getDatePickerTestIds: (testIdProp?: import("../..").TestIdProp["testId"]) => import("../..").TestIdsRecord<readonly ["previous-month", "month", "next-month", "calendar", "time", "set-current-date"]>;
|
|
12
12
|
//# sourceMappingURL=DateTime.test-ids.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateTime.test-ids.d.ts","sourceRoot":"","sources":["../../../src/components/DateTime/DateTime.test-ids.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,uBAAuB,
|
|
1
|
+
{"version":3,"file":"DateTime.test-ids.d.ts","sourceRoot":"","sources":["../../../src/components/DateTime/DateTime.test-ids.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,uBAAuB,gRAOzB,CAAC;AAEZ,eAAO,MAAM,mBAAmB,mTASrB,CAAC;AAEZ,eAAO,MAAM,wBAAwB,kNAI1B,CAAC;AAEZ,eAAO,MAAM,uBAAuB,+aAezB,CAAC;AAEZ,eAAO,MAAM,wBAAwB,qMAG1B,CAAC;AAEZ,eAAO,MAAM,oBAAoB,2NAItB,CAAC;AAEZ,eAAO,MAAM,sBAAsB,6NAIxB,CAAC;AAEZ,eAAO,MAAM,mBAAmB,qTASrB,CAAC;AAEZ,eAAO,MAAM,wBAAwB,oPAM1B,CAAC;AAEZ,eAAO,MAAM,mBAAmB,+QAOrB,CAAC;AAEZ,eAAO,MAAM,oBAAoB,kLAOtB,CAAC"}
|
|
@@ -31,7 +31,7 @@ export declare const StyledDateInput: import("styled-components/dist/types").ISt
|
|
|
31
31
|
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | RefObject<HTMLDivElement> | null | undefined;
|
|
32
32
|
}, DateInputProps>> & string;
|
|
33
33
|
declare const _default: FunctionComponent<DateInputProps & ForwardProps> & {
|
|
34
|
-
getTestIds: (testIdProp?: import("../../..").TestIdProp["testId"]) => import("../../..").TestIdsRecord<readonly ["control-day", "control-month", "control-year", "open-close-picker", "picker", "clear-current-date", "set-current-date", "label", "info", "additional-info", "suggestion-accept", "suggestion-reject"]>;
|
|
34
|
+
getTestIds: (testIdProp?: import("../../..").TestIdProp["testId"]) => import("../../..").TestIdsRecord<readonly ["control-day", "control-month", "control-year", "open-close-picker", "picker", "clear-current-date", "set-current-date", "label", "info", "additional-info", "actions", "suggestion-accept", "suggestion-reject"]>;
|
|
35
35
|
};
|
|
36
36
|
export default _default;
|
|
37
37
|
//# sourceMappingURL=DateInput.d.ts.map
|
|
@@ -40,7 +40,7 @@ export interface DateRangeInputProps extends DateTimeProperties {
|
|
|
40
40
|
handle?: Ref<DateRangeInputHandleValue>;
|
|
41
41
|
}
|
|
42
42
|
declare const _default: import("react").ForwardRefExoticComponent<DateRangeInputProps & import("react").RefAttributes<HTMLDivElement>> & {
|
|
43
|
-
getTestIds: (testIdProp?: import("../../..").TestIdProp["testId"]) => import("../../..").TestIdsRecord<readonly ["from-date", "to-date", "label", "info", "additional-info", "suggestion-accept", "suggestion-reject"]>;
|
|
43
|
+
getTestIds: (testIdProp?: import("../../..").TestIdProp["testId"]) => import("../../..").TestIdsRecord<readonly ["from-date", "to-date", "label", "info", "additional-info", "actions", "suggestion-accept", "suggestion-reject"]>;
|
|
44
44
|
};
|
|
45
45
|
export default _default;
|
|
46
46
|
//# sourceMappingURL=DateRangeInput.d.ts.map
|
|
@@ -44,7 +44,7 @@ export declare const StyledDateTimeInput: import("styled-components/dist/types")
|
|
|
44
44
|
}, DateTimeInputProps>> & string;
|
|
45
45
|
export declare const convertToCallbackParameter: (date: Date, parts: DateTimeParts<string | undefined>, locale: string) => DateTimeCallbackParameter;
|
|
46
46
|
declare const _default: FunctionComponent<DateTimeInputProps & ForwardProps> & {
|
|
47
|
-
getTestIds: (testIdProp?: import("../../..").TestIdProp["testId"]) => import("../../..").TestIdsRecord<readonly ["control-day", "control-month", "control-year", "control-hour", "control-minute", "control-second", "control-period", "open-close-picker", "picker", "discard-changes", "apply-changes", "clear-current-date-and-time", "set-current-date-and-time", "label", "info", "additional-info", "suggestion-accept", "suggestion-reject"]>;
|
|
47
|
+
getTestIds: (testIdProp?: import("../../..").TestIdProp["testId"]) => import("../../..").TestIdsRecord<readonly ["control-day", "control-month", "control-year", "control-hour", "control-minute", "control-second", "control-period", "open-close-picker", "picker", "discard-changes", "apply-changes", "clear-current-date-and-time", "set-current-date-and-time", "label", "info", "additional-info", "actions", "suggestion-accept", "suggestion-reject"]>;
|
|
48
48
|
};
|
|
49
49
|
export default _default;
|
|
50
50
|
//# sourceMappingURL=DateTimeInput.d.ts.map
|
|
@@ -36,7 +36,7 @@ export interface DayOfWeekInputProps extends TestIdProp, BaseProps {
|
|
|
36
36
|
onChange?: (value: DayOfWeek) => void;
|
|
37
37
|
}
|
|
38
38
|
declare const _default: FunctionComponent<DayOfWeekInputProps & ForwardProps> & {
|
|
39
|
-
getTestIds: (testIdProp?: TestIdProp["testId"]) => import("../../..").TestIdsRecord<readonly ["control", "label", "info", "additional-info", "suggestion-accept", "suggestion-reject"]>;
|
|
39
|
+
getTestIds: (testIdProp?: TestIdProp["testId"]) => import("../../..").TestIdsRecord<readonly ["control", "label", "info", "additional-info", "actions", "suggestion-accept", "suggestion-reject"]>;
|
|
40
40
|
};
|
|
41
41
|
export default _default;
|
|
42
42
|
//# sourceMappingURL=DayOfWeekInput.d.ts.map
|
|
@@ -2,7 +2,7 @@ import type { FunctionComponent } from 'react';
|
|
|
2
2
|
import type { ForwardProps } from '../../../../types';
|
|
3
3
|
import type DurationInputProps from './DurationInput.types';
|
|
4
4
|
declare const _default: FunctionComponent<DurationInputProps & ForwardProps> & {
|
|
5
|
-
getTestIds: (testIdProp?: import("../../../..").TestIdProp["testId"]) => import("../../../..").TestIdsRecord<readonly ["control-hour", "control-minute", "control-second", "control-number", "control-unit", "label", "info", "additional-info", "suggestion-accept", "suggestion-reject"]>;
|
|
5
|
+
getTestIds: (testIdProp?: import("../../../..").TestIdProp["testId"]) => import("../../../..").TestIdsRecord<readonly ["control-hour", "control-minute", "control-second", "control-number", "control-unit", "label", "info", "additional-info", "actions", "suggestion-accept", "suggestion-reject"]>;
|
|
6
6
|
};
|
|
7
7
|
export default _default;
|
|
8
8
|
//# sourceMappingURL=DurationInput.d.ts.map
|
|
@@ -15,7 +15,7 @@ export declare const StyledMonthInput: import("styled-components/dist/types").IS
|
|
|
15
15
|
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
16
16
|
}, MonthInputProps>> & string;
|
|
17
17
|
declare const _default: FunctionComponent<MonthInputProps & ForwardProps> & {
|
|
18
|
-
getTestIds: (testIdProp?: import("../../..").TestIdProp["testId"]) => import("../../..").TestIdsRecord<readonly ["control-month", "control-year", "label", "info", "additional-info", "suggestion-accept", "suggestion-reject"]>;
|
|
18
|
+
getTestIds: (testIdProp?: import("../../..").TestIdProp["testId"]) => import("../../..").TestIdsRecord<readonly ["control-month", "control-year", "label", "info", "additional-info", "actions", "suggestion-accept", "suggestion-reject"]>;
|
|
19
19
|
};
|
|
20
20
|
export default _default;
|
|
21
21
|
//# sourceMappingURL=MonthInput.d.ts.map
|
|
@@ -10,7 +10,7 @@ export declare const StyledQuarterInput: import("styled-components/dist/types").
|
|
|
10
10
|
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
11
11
|
}, QuarterInputProps>> & string;
|
|
12
12
|
declare const _default: FunctionComponent<QuarterInputProps & ForwardProps> & {
|
|
13
|
-
getTestIds: (testIdProp?: import("../../..").TestIdProp["testId"]) => import("../../..").TestIdsRecord<readonly ["control-quarter", "control-year", "label", "info", "additional-info", "suggestion-accept", "suggestion-reject"]>;
|
|
13
|
+
getTestIds: (testIdProp?: import("../../..").TestIdProp["testId"]) => import("../../..").TestIdsRecord<readonly ["control-quarter", "control-year", "label", "info", "additional-info", "actions", "suggestion-accept", "suggestion-reject"]>;
|
|
14
14
|
};
|
|
15
15
|
export default _default;
|
|
16
16
|
//# sourceMappingURL=QuarterInput.d.ts.map
|
|
@@ -33,7 +33,7 @@ export declare const StyledTimeInput: import("styled-components/dist/types").ISt
|
|
|
33
33
|
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
34
34
|
}, TimeInputProps>> & string;
|
|
35
35
|
declare const _default: ForwardRefForwardPropsComponent<TimeInputComponentProps> & {
|
|
36
|
-
getTestIds: (testIdProp?: import("../../..").TestIdProp["testId"]) => import("../../..").TestIdsRecord<readonly ["control-hour", "control-minute", "control-second", "control-period", "open-close-picker", "picker", "clear-current-time", "label", "info", "additional-info", "suggestion-accept", "suggestion-reject"]>;
|
|
36
|
+
getTestIds: (testIdProp?: import("../../..").TestIdProp["testId"]) => import("../../..").TestIdsRecord<readonly ["control-hour", "control-minute", "control-second", "control-period", "open-close-picker", "picker", "clear-current-time", "label", "info", "additional-info", "actions", "suggestion-accept", "suggestion-reject"]>;
|
|
37
37
|
};
|
|
38
38
|
export default _default;
|
|
39
39
|
//# sourceMappingURL=TimeInput.d.ts.map
|
|
@@ -49,7 +49,7 @@ export interface TimeRangeInputProps extends DateTimeProperties {
|
|
|
49
49
|
handle?: Ref<TimeRangeInputHandleValue>;
|
|
50
50
|
}
|
|
51
51
|
declare const _default: import("react").ForwardRefExoticComponent<TimeRangeInputProps & import("react").RefAttributes<HTMLDivElement>> & {
|
|
52
|
-
getTestIds: (testIdProp?: import("../../..").TestIdProp["testId"]) => import("../../..").TestIdsRecord<readonly ["from-time", "to-time", "from-date-time", "to-date-time", "label", "info", "additional-info", "suggestion-accept", "suggestion-reject"]>;
|
|
52
|
+
getTestIds: (testIdProp?: import("../../..").TestIdProp["testId"]) => import("../../..").TestIdsRecord<readonly ["from-time", "to-time", "from-date-time", "to-date-time", "label", "info", "additional-info", "actions", "suggestion-accept", "suggestion-reject"]>;
|
|
53
53
|
};
|
|
54
54
|
export default _default;
|
|
55
55
|
//# sourceMappingURL=TimeRangeInput.d.ts.map
|
|
@@ -11,7 +11,7 @@ export declare const StyledWeekInput: import("styled-components/dist/types").ISt
|
|
|
11
11
|
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
12
12
|
}, WeekInputProps>> & string;
|
|
13
13
|
declare const _default: ForwardRefForwardPropsComponent<WeekInputComponentProps> & {
|
|
14
|
-
getTestIds: (testIdProp?: import("../../..").TestIdProp["testId"]) => import("../../..").TestIdsRecord<readonly ["control-week", "control-year", "open-close-picker", "picker", "clear-current-week", "label", "info", "additional-info", "suggestion-accept", "suggestion-reject"]>;
|
|
14
|
+
getTestIds: (testIdProp?: import("../../..").TestIdProp["testId"]) => import("../../..").TestIdsRecord<readonly ["control-week", "control-year", "open-close-picker", "picker", "clear-current-week", "label", "info", "additional-info", "actions", "suggestion-accept", "suggestion-reject"]>;
|
|
15
15
|
};
|
|
16
16
|
export default _default;
|
|
17
17
|
//# sourceMappingURL=WeekInput.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const getFileInputTestIds: (testIdProp?: import("../..").TestIdProp["testId"]) => import("../..").TestIdsRecord<readonly ["control", "files", "label", "info", "additional-info", "suggestion-accept", "suggestion-reject"]>;
|
|
1
|
+
export declare const getFileInputTestIds: (testIdProp?: import("../..").TestIdProp["testId"]) => import("../..").TestIdsRecord<readonly ["control", "files", "label", "info", "additional-info", "actions", "suggestion-accept", "suggestion-reject"]>;
|
|
2
2
|
//# sourceMappingURL=File.test-ids.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"File.test-ids.d.ts","sourceRoot":"","sources":["../../../src/components/File/File.test-ids.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,mBAAmB,
|
|
1
|
+
{"version":3,"file":"File.test-ids.d.ts","sourceRoot":"","sources":["../../../src/components/File/File.test-ids.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,mBAAmB,8MAIrB,CAAC"}
|
|
@@ -73,7 +73,7 @@ interface BaseFileInputProps extends BaseProps, NoChildrenProp, TestIdProp, Pick
|
|
|
73
73
|
export interface FileInputProps extends BaseFileInputProps, MultiAttachCompactProps {
|
|
74
74
|
}
|
|
75
75
|
declare const _default: ForwardRefForwardPropsComponent<FileInputProps> & {
|
|
76
|
-
getTestIds: (testIdProp?: TestIdProp["testId"]) => import("../..").TestIdsRecord<readonly ["control", "files", "label", "info", "additional-info", "suggestion-accept", "suggestion-reject"]>;
|
|
76
|
+
getTestIds: (testIdProp?: TestIdProp["testId"]) => import("../..").TestIdsRecord<readonly ["control", "files", "label", "info", "additional-info", "actions", "suggestion-accept", "suggestion-reject"]>;
|
|
77
77
|
};
|
|
78
78
|
export default _default;
|
|
79
79
|
//# sourceMappingURL=FileInput.d.ts.map
|
|
@@ -571,7 +571,7 @@ export declare const StyledBareButton: import("styled-components/dist/types").IS
|
|
|
571
571
|
export declare const StyledFormField: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("../FormField").FormFieldProps & import("../..").ForwardProps, {
|
|
572
572
|
compactMode: FileInputProps["compact"];
|
|
573
573
|
}>> & string & Omit<import("react").FC<import("../FormField").FormFieldProps & import("../..").ForwardProps> & {
|
|
574
|
-
getTestIds: (testIdProp?: import("../..").TestIdProp["testId"]) => import("../..").TestIdsRecord<readonly ["label", "info", "additional-info", "suggestion-accept", "suggestion-reject"]>;
|
|
574
|
+
getTestIds: (testIdProp?: import("../..").TestIdProp["testId"]) => import("../..").TestIdsRecord<readonly ["label", "info", "additional-info", "actions", "suggestion-accept", "suggestion-reject"]>;
|
|
575
575
|
}, keyof import("react").Component<any, {}, any>>;
|
|
576
576
|
export declare const StyledFileInputControl: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<(Omit<Omit<Pick<import("../Flex/Flex").BaseFlexProps & import("../..").BaseProps & import("../..").AsProp & {
|
|
577
577
|
children?: import("react").ReactNode;
|
|
@@ -4,6 +4,13 @@ import type { FlexProps } from '../Flex';
|
|
|
4
4
|
import type { FormControlProps } from '../FormControl';
|
|
5
5
|
import type { LabelProps } from '../Label';
|
|
6
6
|
import type { elements } from './FormField.test-ids';
|
|
7
|
+
export interface FormFieldActionsOptions {
|
|
8
|
+
items: Action[];
|
|
9
|
+
/** Determines where actions are rendered. */
|
|
10
|
+
position: 'outside' | 'inside';
|
|
11
|
+
}
|
|
12
|
+
/** Array-form actions render outside; object-form actions can set their position. */
|
|
13
|
+
type FormFieldActions = Action[] | FormFieldActionsOptions;
|
|
7
14
|
export interface FormFieldProps extends OmitStrict<FormControlProps, 'placeholder' | 'value' | 'defaultValue'>, TestIdProp<typeof elements> {
|
|
8
15
|
/** Pass a single form control component i.e. Input | TextArea | Select | etc.. */
|
|
9
16
|
children: ReactElement | ReactElement[];
|
|
@@ -63,7 +70,7 @@ export interface FormFieldProps extends OmitStrict<FormControlProps, 'placeholde
|
|
|
63
70
|
*/
|
|
64
71
|
inline?: boolean;
|
|
65
72
|
/** Optionally utilized by Input or Select. */
|
|
66
|
-
actions?:
|
|
73
|
+
actions?: FormFieldActions;
|
|
67
74
|
/** Enables Flex container prop pass through. */
|
|
68
75
|
container?: ExcludeStrict<FlexProps['container'], true>;
|
|
69
76
|
/** Character remaining count. Typically used on Textareas only */
|
|
@@ -90,7 +97,7 @@ export declare const StyledFormField: import("styled-components/dist/types").ISt
|
|
|
90
97
|
labelInline?: boolean;
|
|
91
98
|
}>> & string;
|
|
92
99
|
declare const _default: FC<FormFieldProps & ForwardProps> & {
|
|
93
|
-
getTestIds: (testIdProp?: TestIdProp["testId"]) => import("../..").TestIdsRecord<readonly ["label", "info", "additional-info", "suggestion-accept", "suggestion-reject"]>;
|
|
100
|
+
getTestIds: (testIdProp?: TestIdProp["testId"]) => import("../..").TestIdsRecord<readonly ["label", "info", "additional-info", "actions", "suggestion-accept", "suggestion-reject"]>;
|
|
94
101
|
};
|
|
95
102
|
export default _default;
|
|
96
103
|
//# sourceMappingURL=FormField.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormField.d.ts","sourceRoot":"","sources":["../../../src/components/FormField/FormField.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,EAAE,EAEF,SAAS,EACT,aAAa,EACb,YAAY,EAGb,MAAM,OAAO,CAAC;AAKf,OAAO,KAAK,EACV,MAAM,EACN,aAAa,EACb,YAAY,EACZ,UAAU,EACV,UAAU,EACV,UAAU,EACX,MAAM,aAAa,CAAC;AAErB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"FormField.d.ts","sourceRoot":"","sources":["../../../src/components/FormField/FormField.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,EAAE,EAEF,SAAS,EACT,aAAa,EACb,YAAY,EAGb,MAAM,OAAO,CAAC;AAKf,OAAO,KAAK,EACV,MAAM,EACN,aAAa,EACb,YAAY,EACZ,UAAU,EACV,UAAU,EACV,UAAU,EACX,MAAM,aAAa,CAAC;AAErB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAIvD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAe3C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAIrD,MAAM,WAAW,uBAAuB;IACtC,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,6CAA6C;IAC7C,QAAQ,EAAE,SAAS,GAAG,QAAQ,CAAC;CAChC;AAED,qFAAqF;AACrF,KAAK,gBAAgB,GAAG,MAAM,EAAE,GAAG,uBAAuB,CAAC;AAE3D,MAAM,WAAW,cACf,SAAQ,UAAU,CAAC,gBAAgB,EAAE,aAAa,GAAG,OAAO,GAAG,cAAc,CAAC,EAC5E,UAAU,CAAC,OAAO,QAAQ,CAAC;IAC7B,kFAAkF;IAClF,QAAQ,EAAE,YAAY,GAAG,YAAY,EAAE,CAAC;IACxC;;;;;;;;OAQG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;;OAGG;IACH,OAAO,CAAC,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC;IAC3B;;;OAGG;IACH,QAAQ,CAAC,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC;IACjC;;;OAGG;IACH,OAAO,CAAC,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC;IAC3B;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,YAAY,CAAC,EAAE,SAAS,GAAG,UAAU,CAAC;IACtC;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;;OAGG;IACH,EAAE,CAAC,EAAE,KAAK,GAAG,UAAU,GAAG,aAAa,CAAC,GAAG,CAAC,CAAC;IAC7C;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,8CAA8C;IAC9C,OAAO,CAAC,EAAE,gBAAgB,CAAC;IAC3B,gDAAgD;IAChD,SAAS,CAAC,EAAE,aAAa,CAAC,SAAS,CAAC,WAAW,CAAC,EAAE,IAAI,CAAC,CAAC;IACxD,kEAAkE;IAClE,gBAAgB,CAAC,EAAE,SAAS,CAAC;IAC7B,2CAA2C;IAC3C,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,mGAAmG;IACnG,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,mDAAmD;IACnD,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC;AAyBD,eAAO,MAAM,mBAAmB;gBACmB,OAAO;YA6BxD,CAAC;AAIH,eAAO,MAAM,kBAAkB;;uJAAiB,CAAC;AAEjD,eAAO,MAAM,cAAc;YAAwB,OAAO;YAUxD,CAAC;AAEH,eAAO,MAAM,eAAe;gBAEZ,OAAO;wBACC,OAAO;kBACb,OAAO;YAwFvB,CAAC;;;;AA2bH,wBAA2D"}
|
|
@@ -5,12 +5,13 @@ import AIButton from '../AIButton';
|
|
|
5
5
|
import { defaultThemeProp } from '../../theme';
|
|
6
6
|
import Flex, { StyledFlex } from '../Flex';
|
|
7
7
|
import Actions from '../Actions';
|
|
8
|
+
import { StyledFormControl } from '../FormControl';
|
|
8
9
|
import { useConsolidatedRef, useI18n, useLiveLog, useTestIds, useTheme, useUID } from '../../hooks';
|
|
9
10
|
import Label, { StyledLabel } from '../Label';
|
|
10
11
|
import { calculateFontSize, getReadableStatusColor } from '../../styles';
|
|
11
12
|
import VisuallyHiddenText from '../VisuallyHiddenText';
|
|
12
13
|
import { getFocusables, withTestIds, createClassName } from '../../utils';
|
|
13
|
-
import Button from '../Button';
|
|
14
|
+
import Button, { StyledButton } from '../Button';
|
|
14
15
|
import Text, { StyledText } from '../Text';
|
|
15
16
|
import Icon, { registerIcon } from '../Icon';
|
|
16
17
|
import * as warnSolidIcon from '../Icon/icons/warn-solid.icon';
|
|
@@ -163,6 +164,68 @@ const StyledSuggestionWrapper = styled(Flex)(({ theme, status }) => {
|
|
|
163
164
|
`;
|
|
164
165
|
});
|
|
165
166
|
StyledSuggestionWrapper.defaultProps = defaultThemeProp;
|
|
167
|
+
// Build a shared control boundary for inputs whose action belongs inside the field.
|
|
168
|
+
const StyledInlineActions = styled(StyledFormControl)(({ theme, disabled, readOnly, status }) => {
|
|
169
|
+
const { base: { 'border-radius': baseBorderRadius }, components: { input, 'form-control': formControl, 'form-field': formField } } = theme;
|
|
170
|
+
const inlineEndRadius = `calc(${baseBorderRadius} * ${formControl['border-radius']})`;
|
|
171
|
+
const statusBorderColor = status && formField[status]
|
|
172
|
+
? getReadableStatusColor(theme, status)
|
|
173
|
+
: formControl['border-color'];
|
|
174
|
+
let dividerColor = statusBorderColor;
|
|
175
|
+
if (disabled) {
|
|
176
|
+
dividerColor = formControl[':disabled']['border-color'];
|
|
177
|
+
}
|
|
178
|
+
else if (readOnly) {
|
|
179
|
+
dividerColor = formControl[':read-only']['border-color'];
|
|
180
|
+
}
|
|
181
|
+
return css `
|
|
182
|
+
/* Lay out the input and action slot inside one field boundary. */
|
|
183
|
+
height: ${input.height};
|
|
184
|
+
display: flex;
|
|
185
|
+
align-items: center;
|
|
186
|
+
min-width: 0;
|
|
187
|
+
width: 100%;
|
|
188
|
+
|
|
189
|
+
/* Apply one focus ring around the combined control. */
|
|
190
|
+
&:focus-within:not([disabled]) {
|
|
191
|
+
border-color: ${formControl[':focus']['border-color']};
|
|
192
|
+
box-shadow: ${formControl[':focus']['box-shadow']};
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/* Let the wrapper, rather than the input, draw the field boundary. */
|
|
196
|
+
> ${StyledFormControl}:first-child {
|
|
197
|
+
border: 0;
|
|
198
|
+
box-shadow: none;
|
|
199
|
+
background-color: transparent;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
/* Separate the action slot and align its end edge with the field. */
|
|
203
|
+
> div:last-child {
|
|
204
|
+
margin-inline-end: calc(-1 * ${formControl['border-width']});
|
|
205
|
+
border-inline-start: ${formControl['border-width']} solid ${dividerColor};
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
/* Blend the action button into the field's inline-end edge. */
|
|
209
|
+
> div:last-child > ${StyledButton} {
|
|
210
|
+
border: 0;
|
|
211
|
+
border-radius: 0;
|
|
212
|
+
border-start-end-radius: ${inlineEndRadius};
|
|
213
|
+
border-end-end-radius: ${inlineEndRadius};
|
|
214
|
+
|
|
215
|
+
/* Keep the action slot aligned with the input on coarse pointers. */
|
|
216
|
+
@media (pointer: coarse) {
|
|
217
|
+
min-width: ${input.height};
|
|
218
|
+
min-height: ${input.height};
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
/* Keep the Button hover wash inside the shared field boundary. */
|
|
222
|
+
&:hover::before {
|
|
223
|
+
inset: 0;
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
`;
|
|
227
|
+
});
|
|
228
|
+
StyledInlineActions.defaultProps = defaultThemeProp;
|
|
166
229
|
const statusIconMap = { error: 'warn-solid', warning: 'diamond-minus', success: 'check' };
|
|
167
230
|
const FormField = forwardRef(function FormField(props, ref) {
|
|
168
231
|
const uid = useUID();
|
|
@@ -237,8 +300,15 @@ const FormField = forwardRef(function FormField(props, ref) {
|
|
|
237
300
|
.trim() || undefined
|
|
238
301
|
});
|
|
239
302
|
}
|
|
240
|
-
|
|
241
|
-
|
|
303
|
+
const actionItems = Array.isArray(actions) ? actions : actions?.items;
|
|
304
|
+
if (actionItems?.length) {
|
|
305
|
+
if (!Array.isArray(actions) && actions?.position === 'inside') {
|
|
306
|
+
// Keep the input and its action inside one border while preserving the default outside layout.
|
|
307
|
+
content = (_jsxs(StyledInlineActions, { status: status, disabled: disabled, readOnly: readOnly, hasSuggestion: hasSuggestion, children: [content, _jsx("div", { "data-testid": testIds.actions, children: _jsx(Actions, { items: actionItems, menuAt: 3, disabled: disabled }) })] }));
|
|
308
|
+
}
|
|
309
|
+
else {
|
|
310
|
+
content = (_jsxs(Flex, { container: { alignItems: 'center', gap: 0.5 }, item: { grow: labelInline ? 1 : undefined }, children: [content, _jsx(Actions, { items: actionItems, menuAt: 3 })] }));
|
|
311
|
+
}
|
|
242
312
|
}
|
|
243
313
|
let infoContent = (_jsxs(Flex, { id: `${id}-info`, "data-testid": testIds.info, status: status, as: StyledFormFieldInfo, container: { alignItems: 'center', gap: 0.5 }, infoAbove: infoAbove, children: [status && status !== 'pending' && (_jsxs(_Fragment, { children: [_jsx(Flex, { item: { alignSelf: 'start' }, as: StyledStatusIcon, status: status, name: statusIconMap[status] }), _jsx(VisuallyHiddenText, { children: `${t(status)} ` })] })), info] }));
|
|
244
314
|
if (charLimitDisplay) {
|