@pingux/astro 2.53.1 → 2.54.0-alpha.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/lib/cjs/components/ArrayField/ArrayField.js +2 -1
- package/lib/cjs/components/Breadcrumbs/Breadcrumbs.js +1 -1
- package/lib/cjs/components/Breadcrumbs/Breadcrumbs.test.js +2 -3
- package/lib/cjs/components/Button/Button.js +4 -2
- package/lib/cjs/components/Calendar/Calendar.d.ts +4 -0
- package/lib/cjs/components/Calendar/Calendar.js +14 -59
- package/lib/cjs/components/Calendar/Calendar.stories.d.ts +212 -0
- package/lib/cjs/components/Calendar/Calendar.stories.js +12 -12
- package/lib/cjs/components/Calendar/Calendar.styles.d.ts +73 -0
- package/lib/cjs/components/Calendar/Calendar.test.d.ts +1 -0
- package/lib/cjs/components/Calendar/Calendar.test.js +2 -2
- package/lib/cjs/components/Calendar/CalendarCell.d.ts +9 -0
- package/lib/cjs/components/Calendar/CalendarCell.js +11 -30
- package/lib/cjs/components/Calendar/CalendarGrid.d.ts +9 -0
- package/lib/cjs/components/Calendar/CalendarGrid.js +6 -15
- package/lib/cjs/components/Calendar/index.d.ts +1 -0
- package/lib/cjs/components/CheckboxField/CheckboxField.js +4 -2
- package/lib/cjs/components/ColorField/ColorField.js +4 -2
- package/lib/cjs/components/ComboBoxField/ComboBoxField.js +4 -2
- package/lib/cjs/components/DatePicker/DatePicker.js +4 -2
- package/lib/cjs/components/FileInputField/FileInputField.js +4 -2
- package/lib/cjs/components/IconButton/IconButton.js +4 -2
- package/lib/cjs/components/ImageUploadField/ImageUploadField.js +4 -2
- package/lib/cjs/components/Input/Input.js +7 -6
- package/lib/cjs/components/LinkSelectField/LinkSelectField.js +4 -2
- package/lib/cjs/components/ListViewItem/ListViewItem.js +4 -2
- package/lib/cjs/components/MultivaluesField/MultivaluesField.js +2 -3
- package/lib/cjs/components/NumberField/NumberField.js +2 -1
- package/lib/cjs/components/PasswordField/PasswordField.js +4 -2
- package/lib/cjs/components/RadioGroupField/RadioGroupField.js +4 -2
- package/lib/cjs/components/SearchField/SearchField.js +4 -2
- package/lib/cjs/components/SelectFieldBase/SelectFieldBase.js +2 -1
- package/lib/cjs/components/SwitchField/SwitchField.js +5 -3
- package/lib/cjs/components/Tab/Tab.js +2 -1
- package/lib/cjs/components/TextAreaField/TextAreaField.js +4 -2
- package/lib/cjs/components/TextField/TextField.js +4 -2
- package/lib/cjs/components/TimeZonePicker/TimeZonePicker.js +2 -1
- package/lib/cjs/hooks/useField/useField.d.ts +8 -5
- package/lib/cjs/hooks/useRockerButton/useRockerButton.d.ts +1 -1
- package/lib/cjs/types/box.d.ts +3 -0
- package/lib/cjs/types/calendar.d.ts +69 -0
- package/lib/cjs/types/calendar.js +6 -0
- package/lib/cjs/types/index.d.ts +1 -0
- package/lib/cjs/types/index.js +42 -31
- package/lib/cjs/types/table.d.ts +1 -1
- package/lib/cjs/utils/devUtils/constants/pendoID.d.ts +3 -0
- package/lib/cjs/utils/devUtils/constants/pendoID.js +13 -0
- package/lib/components/ArrayField/ArrayField.js +2 -1
- package/lib/components/Breadcrumbs/Breadcrumbs.js +1 -1
- package/lib/components/Breadcrumbs/Breadcrumbs.test.js +2 -3
- package/lib/components/Button/Button.js +4 -2
- package/lib/components/Calendar/Calendar.js +15 -60
- package/lib/components/Calendar/Calendar.stories.js +2 -2
- package/lib/components/Calendar/Calendar.test.js +2 -2
- package/lib/components/Calendar/CalendarCell.js +12 -32
- package/lib/components/Calendar/CalendarGrid.js +6 -15
- package/lib/components/CheckboxField/CheckboxField.js +4 -2
- package/lib/components/ColorField/ColorField.js +4 -2
- package/lib/components/ComboBoxField/ComboBoxField.js +4 -2
- package/lib/components/DatePicker/DatePicker.js +4 -2
- package/lib/components/FileInputField/FileInputField.js +4 -2
- package/lib/components/IconButton/IconButton.js +4 -2
- package/lib/components/ImageUploadField/ImageUploadField.js +4 -2
- package/lib/components/Input/Input.js +6 -5
- package/lib/components/LinkSelectField/LinkSelectField.js +4 -2
- package/lib/components/ListViewItem/ListViewItem.js +4 -2
- package/lib/components/MultivaluesField/MultivaluesField.js +3 -4
- package/lib/components/NumberField/NumberField.js +2 -1
- package/lib/components/PasswordField/PasswordField.js +4 -2
- package/lib/components/RadioGroupField/RadioGroupField.js +4 -2
- package/lib/components/SearchField/SearchField.js +4 -2
- package/lib/components/SelectFieldBase/SelectFieldBase.js +2 -1
- package/lib/components/SwitchField/SwitchField.js +5 -3
- package/lib/components/Tab/Tab.js +2 -1
- package/lib/components/TextAreaField/TextAreaField.js +4 -2
- package/lib/components/TextField/TextField.js +4 -2
- package/lib/components/TimeZonePicker/TimeZonePicker.js +2 -1
- package/lib/types/calendar.js +1 -0
- package/lib/types/index.js +1 -0
- package/lib/utils/devUtils/constants/pendoID.js +5 -0
- package/package.json +2 -2
@@ -1,3 +1,4 @@
|
|
1
|
+
import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
|
1
2
|
import _concatInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/concat";
|
2
3
|
import _mapInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/map";
|
3
4
|
import _Array$from from "@babel/runtime-corejs3/core-js-stable/array/from";
|
@@ -6,7 +7,6 @@ import React from 'react';
|
|
6
7
|
import { getWeeksInMonth } from '@internationalized/date';
|
7
8
|
import { useCalendarGrid } from '@react-aria/calendar';
|
8
9
|
import { useLocale } from '@react-aria/i18n';
|
9
|
-
import PropTypes from 'prop-types';
|
10
10
|
import { Table, TableBody, TableCell, TableHead, TableRow } from '../../index';
|
11
11
|
import CalendarCell from './CalendarCell';
|
12
12
|
|
@@ -33,7 +33,9 @@ var CalendarGrid = function CalendarGrid(props) {
|
|
33
33
|
var _context;
|
34
34
|
return _concatInstanceProperty(_context = "".concat(day, "-")).call(_context, index);
|
35
35
|
};
|
36
|
-
return ___EmotionJSX(Table,
|
36
|
+
return ___EmotionJSX(Table, _extends({}, gridProps, {
|
37
|
+
role: "grid"
|
38
|
+
}), ___EmotionJSX(TableHead, headerProps, ___EmotionJSX(TableRow, null, _mapInstanceProperty(_context2 = customWeekDays || weekDays).call(_context2, function (day, index) {
|
37
39
|
return ___EmotionJSX(TableCell, {
|
38
40
|
variant: "calendar.columnHeader",
|
39
41
|
key: getKey(day, index),
|
@@ -46,23 +48,12 @@ var CalendarGrid = function CalendarGrid(props) {
|
|
46
48
|
return ___EmotionJSX(TableRow, {
|
47
49
|
key: weekIndex
|
48
50
|
}, _mapInstanceProperty(_context5 = getDatesInWeek(weekIndex)).call(_context5, function (date) {
|
49
|
-
return date.day && ___EmotionJSX(CalendarCell, {
|
50
|
-
key: date,
|
51
|
+
return (date === null || date === void 0 ? void 0 : date.day) && ___EmotionJSX(CalendarCell, {
|
52
|
+
key: date.toString(),
|
51
53
|
state: state,
|
52
54
|
date: date
|
53
55
|
});
|
54
56
|
}));
|
55
57
|
})));
|
56
58
|
};
|
57
|
-
CalendarGrid.propTypes = {
|
58
|
-
/** State object that is passed in from the useCalendar hook */
|
59
|
-
state: PropTypes.shape({
|
60
|
-
visibleRange: PropTypes.shape({
|
61
|
-
start: PropTypes.shape({})
|
62
|
-
}),
|
63
|
-
getDatesInWeek: PropTypes.func
|
64
|
-
}),
|
65
|
-
/** Custom week days for other international calendars */
|
66
|
-
customWeekDays: PropTypes.arrayOf(PropTypes.string)
|
67
|
-
};
|
68
59
|
export default CalendarGrid;
|
@@ -18,10 +18,12 @@ import PropTypes from 'prop-types';
|
|
18
18
|
import { v4 as uuid } from 'uuid';
|
19
19
|
import { Box, Checkbox, FieldHelperText, Label } from '../..';
|
20
20
|
import { useField, usePropWarning } from '../../hooks';
|
21
|
+
import { getPendoID } from '../../utils/devUtils/constants/pendoID';
|
21
22
|
import { ariaAttributesBasePropTypes } from '../../utils/docUtils/ariaAttributes';
|
22
23
|
import { inputFieldAttributesBasePropTypes } from '../../utils/docUtils/fieldAttributes';
|
23
24
|
import { statusPropTypes } from '../../utils/docUtils/statusProp';
|
24
25
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
26
|
+
var displayName = 'CheckboxField';
|
25
27
|
var CheckboxField = /*#__PURE__*/forwardRef(function (props, ref) {
|
26
28
|
var label = props.label,
|
27
29
|
_props$controlProps = props.controlProps,
|
@@ -68,7 +70,7 @@ var CheckboxField = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
68
70
|
var helperTextId = useMemo(function () {
|
69
71
|
return uuid();
|
70
72
|
}, []);
|
71
|
-
return ___EmotionJSX(Box, fieldContainerProps, ___EmotionJSX(Label, _extends({
|
73
|
+
return ___EmotionJSX(Box, _extends({}, getPendoID(displayName), fieldContainerProps), ___EmotionJSX(Label, _extends({
|
72
74
|
variant: "forms.label.checkbox"
|
73
75
|
}, fieldLabelProps), ___EmotionJSX(Checkbox, _extends({
|
74
76
|
ref: checkboxRef,
|
@@ -124,5 +126,5 @@ CheckboxField.propTypes = _objectSpread(_objectSpread(_objectSpread({
|
|
124
126
|
/** Handler that is called when a key is released. */
|
125
127
|
onKeyUp: PropTypes.func
|
126
128
|
}, statusPropTypes), ariaAttributesBasePropTypes), inputFieldAttributesBasePropTypes);
|
127
|
-
CheckboxField.displayName =
|
129
|
+
CheckboxField.displayName = displayName;
|
128
130
|
export default CheckboxField;
|
@@ -20,11 +20,13 @@ import { useColorFieldState } from '@react-stately/color';
|
|
20
20
|
import PropTypes from 'prop-types';
|
21
21
|
import { Box, Button, FieldHelperText, Input, Label } from '../..';
|
22
22
|
import useField from '../../hooks/useField';
|
23
|
+
import { getPendoID } from '../../utils/devUtils/constants/pendoID';
|
23
24
|
import { ariaAttributesBasePropTypes, getAriaAttributeProps } from '../../utils/docUtils/ariaAttributes';
|
24
25
|
import { inputFieldAttributesBasePropTypes } from '../../utils/docUtils/fieldAttributes';
|
25
26
|
import { statusPropTypes } from '../../utils/docUtils/statusProp';
|
26
27
|
import PopoverContainer from '../PopoverContainer';
|
27
28
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
29
|
+
var displayName = 'ColorField';
|
28
30
|
var ColorField = /*#__PURE__*/forwardRef(function (props, ref) {
|
29
31
|
var _context;
|
30
32
|
var align = props.align,
|
@@ -91,7 +93,7 @@ var ColorField = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
91
93
|
var colorValue = _ref.colorValue;
|
92
94
|
return _concatInstanceProperty(_context2 = _concatInstanceProperty(_context3 = _concatInstanceProperty(_context4 = "rgba(".concat(colorValue === null || colorValue === void 0 ? void 0 : colorValue.red, ", ")).call(_context4, colorValue === null || colorValue === void 0 ? void 0 : colorValue.green, ", ")).call(_context3, colorValue === null || colorValue === void 0 ? void 0 : colorValue.blue, ", ")).call(_context2, colorValue === null || colorValue === void 0 ? void 0 : colorValue.alpha, ")");
|
93
95
|
}, []);
|
94
|
-
return ___EmotionJSX(Box, fieldContainerProps, label && ___EmotionJSX(Label, fieldLabelProps), ___EmotionJSX(Button, _extends({
|
96
|
+
return ___EmotionJSX(Box, _extends({}, getPendoID(displayName), fieldContainerProps), label && ___EmotionJSX(Label, fieldLabelProps), ___EmotionJSX(Button, _extends({
|
95
97
|
"aria-label": "Select color",
|
96
98
|
bg: getRgbaFromState(state),
|
97
99
|
onPress: handleButtonPress,
|
@@ -144,5 +146,5 @@ ColorField.defaultProps = {
|
|
144
146
|
align: 'middle',
|
145
147
|
direction: 'bottom'
|
146
148
|
};
|
147
|
-
ColorField.displayName =
|
149
|
+
ColorField.displayName = displayName;
|
148
150
|
export default ColorField;
|
@@ -25,6 +25,7 @@ import { useLayoutEffect, useResizeObserver } from '@react-aria/utils';
|
|
25
25
|
import PropTypes from 'prop-types';
|
26
26
|
import { usePropWarning } from '../../hooks';
|
27
27
|
import loadingStates from '../../utils/devUtils/constants/loadingStates';
|
28
|
+
import { getPendoID } from '../../utils/devUtils/constants/pendoID';
|
28
29
|
import { isIterableProp } from '../../utils/devUtils/props/isIterable';
|
29
30
|
import { ariaAttributesBasePropTypes, getAriaAttributeProps } from '../../utils/docUtils/ariaAttributes';
|
30
31
|
import { statusPropTypes } from '../../utils/docUtils/statusProp';
|
@@ -33,6 +34,7 @@ import ListBox from '../ListBox';
|
|
33
34
|
import PopoverContainer from '../PopoverContainer';
|
34
35
|
import ScrollBox from '../ScrollBox';
|
35
36
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
37
|
+
var displayName = 'ComboBoxField';
|
36
38
|
var ComboBoxField = /*#__PURE__*/forwardRef(function (props, ref) {
|
37
39
|
var hasAutoFocus = props.hasAutoFocus,
|
38
40
|
hasAddOption = props.hasAddOption,
|
@@ -198,7 +200,7 @@ var ComboBoxField = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
198
200
|
}, otherListBoxProps))), ___EmotionJSX(DismissButton, {
|
199
201
|
onDismiss: state.close
|
200
202
|
})));
|
201
|
-
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(ComboBoxInput, _extends({}, props, {
|
203
|
+
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(ComboBoxInput, _extends({}, getPendoID(displayName), props, {
|
202
204
|
isOpen: state.isOpen,
|
203
205
|
inputProps: inputProps,
|
204
206
|
labelProps: labelProps,
|
@@ -337,5 +339,5 @@ ComboBoxField.defaultProps = {
|
|
337
339
|
},
|
338
340
|
defaultItems: []
|
339
341
|
};
|
340
|
-
ComboBoxField.displayName =
|
342
|
+
ComboBoxField.displayName = displayName;
|
341
343
|
export default ComboBoxField;
|
@@ -18,8 +18,10 @@ import { FocusScope } from '@react-aria/focus';
|
|
18
18
|
import { useOverlayPosition } from '@react-aria/overlays';
|
19
19
|
import { mergeProps } from '@react-aria/utils';
|
20
20
|
import { useDatePickerState } from '@react-stately/datepicker';
|
21
|
+
import { omit } from 'lodash/object';
|
21
22
|
import PropTypes from 'prop-types';
|
22
23
|
import { Calendar, FieldHelperText, PopoverContainer } from '../../index';
|
24
|
+
import { getPendoID } from '../../utils/devUtils/constants/pendoID';
|
23
25
|
import statuses from '../../utils/devUtils/constants/statuses';
|
24
26
|
import { isDateWithinRanges } from '../../utils/devUtils/props/isDateWithinRanges';
|
25
27
|
import DateField from './DateField';
|
@@ -96,11 +98,11 @@ var DatePicker = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
96
98
|
contain: true,
|
97
99
|
restoreFocus: true
|
98
100
|
}, ___EmotionJSX(Calendar, calendarProps)));
|
99
|
-
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(DateField, _extends({}, props, {
|
101
|
+
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(DateField, _extends({}, getPendoID('DatePicker'), props, {
|
100
102
|
ref: ref,
|
101
103
|
buttonProps: buttonProps,
|
102
104
|
fieldProps: fieldProps,
|
103
|
-
groupProps: groupProps,
|
105
|
+
groupProps: omit(groupProps, 'data-pendo-id'),
|
104
106
|
groupRef: groupRef,
|
105
107
|
helperText: helperText,
|
106
108
|
labelProps: labelProps,
|
@@ -27,6 +27,7 @@ import { v4 as uuidv4 } from 'uuid';
|
|
27
27
|
import { Box, FieldHelperText, Input, Label, Loader } from '../..';
|
28
28
|
import useField from '../../hooks/useField';
|
29
29
|
import useStatusClasses from '../../hooks/useStatusClasses';
|
30
|
+
import { getPendoID } from '../../utils/devUtils/constants/pendoID';
|
30
31
|
import statuses from '../../utils/devUtils/constants/statuses';
|
31
32
|
import { ariaAttributesBasePropTypes, getAriaAttributeProps } from '../../utils/docUtils/ariaAttributes';
|
32
33
|
import { inputFieldAttributesBasePropTypes } from '../../utils/docUtils/fieldAttributes';
|
@@ -34,6 +35,7 @@ import { statusDefaultProp, statusPropTypes } from '../../utils/docUtils/statusP
|
|
34
35
|
import FileItem from './FileItem';
|
35
36
|
import FileSelect from './FileSelect';
|
36
37
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
38
|
+
var displayName = 'FileInputField';
|
37
39
|
var FILE_CHANGE_STATUS = {
|
38
40
|
ADDED: 'added',
|
39
41
|
DELETED: 'deleted'
|
@@ -194,7 +196,7 @@ var FileInputField = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
194
196
|
fieldContainerProps: fieldContainerProps
|
195
197
|
}, ___EmotionJSX(Label, fieldLabelProps), ___EmotionJSX(Box, _extends({
|
196
198
|
variant: "forms.fileInputField.wrapper"
|
197
|
-
}, mergeProps(fieldControlWrapperProps, nonAriaProps), {
|
199
|
+
}, getPendoID(displayName), mergeProps(fieldControlWrapperProps, nonAriaProps), {
|
198
200
|
className: classNames
|
199
201
|
}, getRootProps(), {
|
200
202
|
// to pass accessibility test, this removes focusable dependents
|
@@ -227,7 +229,7 @@ var FileInputField = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
227
229
|
role: "status"
|
228
230
|
}, ___EmotionJSX(VisuallyHidden, null, ___EmotionJSX("h1", null, fileChangeMessage))));
|
229
231
|
});
|
230
|
-
FileInputField.displayName =
|
232
|
+
FileInputField.displayName = displayName;
|
231
233
|
FileInputField.propTypes = _objectSpread(_objectSpread(_objectSpread({
|
232
234
|
/** The rendered label for the field. */
|
233
235
|
label: PropTypes.node,
|
@@ -18,8 +18,10 @@ import { Pressable, useHover, usePress } from '@react-aria/interactions';
|
|
18
18
|
import { IconButton as ThemeUIIconButton } from 'theme-ui';
|
19
19
|
import { BadgeContext } from '../../context/BadgeContext';
|
20
20
|
import { useAriaLabelWarning, useStatusClasses } from '../../hooks';
|
21
|
+
import { getPendoID } from '../../utils/devUtils/constants/pendoID';
|
21
22
|
import TooltipTrigger, { Tooltip } from '../TooltipTrigger';
|
22
23
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
24
|
+
var displayName = 'IconButton';
|
23
25
|
var IconButton = /*#__PURE__*/forwardRef(function (props, ref) {
|
24
26
|
var children = props.children,
|
25
27
|
className = props.className,
|
@@ -86,7 +88,7 @@ var IconButton = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
86
88
|
useAriaLabelWarning('IconButton', ariaLabel);
|
87
89
|
var button = ___EmotionJSX(Pressable, _extends({
|
88
90
|
ref: buttonRef
|
89
|
-
}, mergeProps(buttonProps, others, hoverProps, focusProps)), ___EmotionJSX(ThemeUIIconButton, {
|
91
|
+
}, getPendoID(displayName), mergeProps(buttonProps, others, hoverProps, focusProps)), ___EmotionJSX(ThemeUIIconButton, {
|
90
92
|
tabIndex: 0,
|
91
93
|
className: classNames,
|
92
94
|
"aria-label": ariaLabel,
|
@@ -109,5 +111,5 @@ IconButton.defaultProps = {
|
|
109
111
|
variant: 'base',
|
110
112
|
isDisabled: false
|
111
113
|
};
|
112
|
-
IconButton.displayName =
|
114
|
+
IconButton.displayName = displayName;
|
113
115
|
export default IconButton;
|
@@ -16,12 +16,14 @@ import PropTypes from 'prop-types';
|
|
16
16
|
import { v4 as uuid } from 'uuid';
|
17
17
|
import { Item, Menu } from '../..';
|
18
18
|
import { useImageUploadState } from '../../hooks/useImageUploadState';
|
19
|
+
import { getPendoID } from '../../utils/devUtils/constants/pendoID';
|
19
20
|
import { ariaAttributesBasePropTypes } from '../../utils/docUtils/ariaAttributes';
|
20
21
|
import { inputFieldAttributesBasePropTypes } from '../../utils/docUtils/fieldAttributes';
|
21
22
|
import { statusPropTypes } from '../../utils/docUtils/statusProp';
|
22
23
|
import ImagePreviewButton from './ImagePreviewButton';
|
23
24
|
import ImageUploadFieldBase from './ImageUploadFieldBase';
|
24
25
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
26
|
+
var displayName = 'ImageUploadField';
|
25
27
|
var ImageUploadField = /*#__PURE__*/forwardRef(function (props, ref) {
|
26
28
|
var isLoading = props.isLoading,
|
27
29
|
loaderSize = props.loaderSize,
|
@@ -62,7 +64,7 @@ var ImageUploadField = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
62
64
|
isMenuOpen: state.isMenuOpen,
|
63
65
|
ref: inputRef,
|
64
66
|
widthHeightSx: state.widthHeightSx
|
65
|
-
}, props), ___EmotionJSX(ImagePreviewButton, {
|
67
|
+
}, getPendoID(displayName), props), ___EmotionJSX(ImagePreviewButton, {
|
66
68
|
defaultPreviewImage: state.defaultPreviewImage,
|
67
69
|
defaultPreviewNode: state.defaultPreviewNode,
|
68
70
|
isImageType: state.isImageType,
|
@@ -135,5 +137,5 @@ ImageUploadField.defaultProps = {
|
|
135
137
|
uploadItemText: 'Upload New Image',
|
136
138
|
removeItemText: 'Remove Image'
|
137
139
|
};
|
138
|
-
ImageUploadField.displayName =
|
140
|
+
ImageUploadField.displayName = displayName;
|
139
141
|
export default ImageUploadField;
|
@@ -5,7 +5,7 @@ var _excluded = ["name", "placeholder", "maxLength"];
|
|
5
5
|
import React, { forwardRef } from 'react';
|
6
6
|
import { flexbox, layout, typography } from 'styled-system';
|
7
7
|
import { Input as ThemeUIInput } from 'theme-ui';
|
8
|
-
import {
|
8
|
+
import { getPendoID } from '../../utils/devUtils/constants/pendoID';
|
9
9
|
/**
|
10
10
|
* Base input component.
|
11
11
|
*
|
@@ -16,13 +16,14 @@ import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
16
16
|
* We instead encourage developers to utilize our Field components wherever possible.
|
17
17
|
* If this component is used, accessibility is left to the developer.
|
18
18
|
*/
|
19
|
-
|
19
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
20
|
+
var displayName = 'Input';
|
20
21
|
var ExtendedInput = /*#__PURE__*/_styled(ThemeUIInput, process.env.NODE_ENV === "production" ? {
|
21
22
|
target: "e1lpwkt50"
|
22
23
|
} : {
|
23
24
|
target: "e1lpwkt50",
|
24
25
|
label: "ExtendedInput"
|
25
|
-
})(layout, flexbox, typography, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
26
|
+
})(layout, flexbox, typography, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0lucHV0L0lucHV0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFvQnNCIiwiZmlsZSI6Ii4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0lucHV0L0lucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBSZWFjdCwgeyBmb3J3YXJkUmVmIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuaW1wb3J0IHsgZmxleGJveCwgbGF5b3V0LCB0eXBvZ3JhcGh5IH0gZnJvbSAnc3R5bGVkLXN5c3RlbSc7XG5pbXBvcnQgeyBJbnB1dCBhcyBUaGVtZVVJSW5wdXQgfSBmcm9tICd0aGVtZS11aSc7XG5cbmltcG9ydCB7IElucHV0UHJvcHMgfSBmcm9tICcuLi8uLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRQZW5kb0lEIH0gZnJvbSAnLi4vLi4vdXRpbHMvZGV2VXRpbHMvY29uc3RhbnRzL3BlbmRvSUQnO1xuLyoqXG4gKiBCYXNlIGlucHV0IGNvbXBvbmVudC5cbiAqXG4gKiBBY2NlcHRzIHJlbGV2YW50IHN0eWxpbmcgcHJvcHMgZnJvbSBbc3R5bGVkLXN5c3RlbV0oaHR0cHM6Ly9zdHlsZWQtc3lzdGVtLmNvbS90YWJsZSkuXG4gKiBCdWlsdCBvbiB0b3Agb2YgW0lucHV0IGZyb20gVGhlbWUtVUldKGh0dHBzOi8vdGhlbWUtdWkuY29tL2NvbXBvbmVudHMvaW5wdXQvKS5cbiAqXG4gKiAqKk5vdGUqKjogVGhpcyBjb21wb25lbnQgZG9lcyBub3Qgc3VwcGx5IGFsbCBvZiB0aGUgYWNjZXNzaWJpbGl0eSBhc3Npc3RhbmNlIG9uIGl0cyBvd24uXG4gKiBXZSBpbnN0ZWFkIGVuY291cmFnZSBkZXZlbG9wZXJzIHRvIHV0aWxpemUgb3VyIEZpZWxkIGNvbXBvbmVudHMgd2hlcmV2ZXIgcG9zc2libGUuXG4gKiBJZiB0aGlzIGNvbXBvbmVudCBpcyB1c2VkLCBhY2Nlc3NpYmlsaXR5IGlzIGxlZnQgdG8gdGhlIGRldmVsb3Blci5cbiAqL1xuXG5jb25zdCBkaXNwbGF5TmFtZSA9ICdJbnB1dCc7XG5cbmNvbnN0IEV4dGVuZGVkSW5wdXQgPSBzdHlsZWQoVGhlbWVVSUlucHV0KShcbiAgbGF5b3V0LFxuICBmbGV4Ym94LFxuICB0eXBvZ3JhcGh5LFxuKTtcblxuY29uc3QgSW5wdXQgPSBmb3J3YXJkUmVmPEhUTUxJbnB1dEVsZW1lbnQsIElucHV0UHJvcHM+KChwcm9wcywgcmVmKSA9PiB7XG4gIGNvbnN0IHsgbmFtZSwgcGxhY2Vob2xkZXIsIG1heExlbmd0aCwgLi4ub3RoZXJzIH0gPSBwcm9wcztcblxuICByZXR1cm4gKFxuICAgIDxFeHRlbmRlZElucHV0XG4gICAgICByZWY9e3JlZn1cbiAgICAgIG5hbWU9e25hbWV9XG4gICAgICBwbGFjZWhvbGRlcj17cGxhY2Vob2xkZXJ9XG4gICAgICBtYXhMZW5ndGg9e21heExlbmd0aCAmJiBtYXhMZW5ndGh9XG4gICAgICB7Li4uZ2V0UGVuZG9JRChkaXNwbGF5TmFtZSl9XG4gICAgICB7Li4ub3RoZXJzfVxuICAgIC8+XG4gICk7XG59KTtcblxuSW5wdXQuZGlzcGxheU5hbWUgPSBkaXNwbGF5TmFtZTtcblxuZXhwb3J0IGRlZmF1bHQgSW5wdXQ7XG4iXX0= */");
|
26
27
|
var Input = /*#__PURE__*/forwardRef(function (props, ref) {
|
27
28
|
var name = props.name,
|
28
29
|
placeholder = props.placeholder,
|
@@ -33,7 +34,7 @@ var Input = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
33
34
|
name: name,
|
34
35
|
placeholder: placeholder,
|
35
36
|
maxLength: maxLength && maxLength
|
36
|
-
}, others));
|
37
|
+
}, getPendoID(displayName), others));
|
37
38
|
});
|
38
|
-
Input.displayName =
|
39
|
+
Input.displayName = displayName;
|
39
40
|
export default Input;
|
@@ -18,12 +18,14 @@ import PropTypes from 'prop-types';
|
|
18
18
|
import { v4 as uuid } from 'uuid';
|
19
19
|
import { Box, Button, Icon, Loader, Text } from '../..';
|
20
20
|
import { usePropWarning, useSelectField } from '../../hooks';
|
21
|
+
import { getPendoID } from '../../utils/devUtils/constants/pendoID';
|
21
22
|
import statuses from '../../utils/devUtils/constants/statuses';
|
22
23
|
import { ariaAttributesBasePropTypes, getAriaAttributeProps } from '../../utils/docUtils/ariaAttributes';
|
23
24
|
import { inputFieldAttributesBasePropTypes } from '../../utils/docUtils/fieldAttributes';
|
24
25
|
import { statusDefaultProp, statusPropTypes } from '../../utils/docUtils/statusProp';
|
25
26
|
import SelectFieldBase from '../SelectFieldBase';
|
26
27
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
28
|
+
var displayName = 'LinkSelectField';
|
27
29
|
var LinkSelectField = /*#__PURE__*/forwardRef(function (props, ref) {
|
28
30
|
var placeholder = props.placeholder,
|
29
31
|
isDisabled = props.isDisabled,
|
@@ -52,7 +54,7 @@ var LinkSelectField = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
52
54
|
ref: triggerRef,
|
53
55
|
variant: "link",
|
54
56
|
tabIndex: isDisabled ? -1 : 0
|
55
|
-
}, triggerProps, ariaProps, {
|
57
|
+
}, getPendoID(displayName), triggerProps, ariaProps, {
|
56
58
|
"aria-describedby": helperText && helperTextId
|
57
59
|
}), ___EmotionJSX(Text, {
|
58
60
|
variant: "label",
|
@@ -149,5 +151,5 @@ LinkSelectField.defaultProps = _objectSpread({
|
|
149
151
|
align: 'start',
|
150
152
|
direction: 'bottom'
|
151
153
|
}, statusDefaultProp);
|
152
|
-
LinkSelectField.displayName =
|
154
|
+
LinkSelectField.displayName = displayName;
|
153
155
|
export default LinkSelectField;
|
@@ -6,9 +6,11 @@ import React, { forwardRef } from 'react';
|
|
6
6
|
import { useHover } from '@react-aria/interactions';
|
7
7
|
import { Box, Icon, Image, Text } from '../..';
|
8
8
|
import { useStatusClasses } from '../../hooks';
|
9
|
+
import { getPendoID } from '../../utils/devUtils/constants/pendoID';
|
9
10
|
import { listViewItemPropTypes } from './listViewItemAttributes';
|
10
11
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
11
12
|
export var LIST_ITEM_ICON = '-list-item-icon';
|
13
|
+
var displayName = 'ListViewItem';
|
12
14
|
var ListViewItem = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
13
15
|
var _context;
|
14
16
|
var children = _ref.children,
|
@@ -75,7 +77,7 @@ var ListViewItem = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
75
77
|
className: classNames,
|
76
78
|
ref: ref,
|
77
79
|
variant: "listViewItem.styledContainer"
|
78
|
-
}, hoverProps, others), ___EmotionJSX(Box, {
|
80
|
+
}, hoverProps, getPendoID(displayName), others), ___EmotionJSX(Box, {
|
79
81
|
isRow: true,
|
80
82
|
variant: getWrapperVariant()
|
81
83
|
}, renderData, (slots === null || slots === void 0 ? void 0 : slots.rightOfData) && ___EmotionJSX(Box, {
|
@@ -88,5 +90,5 @@ var ListViewItem = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
88
90
|
}, children)));
|
89
91
|
});
|
90
92
|
ListViewItem.propTypes = listViewItemPropTypes;
|
91
|
-
ListViewItem.displayName =
|
93
|
+
ListViewItem.displayName = displayName;
|
92
94
|
export default ListViewItem;
|
@@ -32,8 +32,9 @@ import PropTypes from 'prop-types';
|
|
32
32
|
import { Badge, Box, Icon, IconButton, PopoverContainer, ScrollBox, Text, TextField } from '../..';
|
33
33
|
import { MultivaluesContext } from '../../context/MultivaluesContext';
|
34
34
|
import { usePropWarning } from '../../hooks';
|
35
|
+
import { getPendoID } from '../../utils/devUtils/constants/pendoID';
|
35
36
|
import { isIterableProp } from '../../utils/devUtils/props/isIterable';
|
36
|
-
import { ariaAttributesBasePropTypes
|
37
|
+
import { ariaAttributesBasePropTypes } from '../../utils/docUtils/ariaAttributes';
|
37
38
|
import { inputFieldAttributesBasePropTypes } from '../../utils/docUtils/fieldAttributes';
|
38
39
|
import { statusDefaultProp, statusPropTypes } from '../../utils/docUtils/statusProp';
|
39
40
|
import ListBox from '../ListBox';
|
@@ -70,8 +71,6 @@ var MultivaluesField = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
70
71
|
scrollBoxProps = props.scrollBoxProps,
|
71
72
|
status = props.status,
|
72
73
|
others = _objectWithoutProperties(props, _excluded);
|
73
|
-
var _getAriaAttributeProp = getAriaAttributeProps(others),
|
74
|
-
ariaProps = _getAriaAttributeProp.ariaProps;
|
75
74
|
var hasCustomValue = mode === 'non-restrictive';
|
76
75
|
usePropWarning(props, 'disabled', 'isDisabled');
|
77
76
|
var _useState = useState([]),
|
@@ -487,7 +486,7 @@ var MultivaluesField = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
487
486
|
value: filterString,
|
488
487
|
helperText: helperText,
|
489
488
|
"aria-invalid": status === 'error' && true
|
490
|
-
},
|
489
|
+
}, getPendoID('MultivaluesField'), others, inputProps)), ___EmotionJSX(PopoverContainer, {
|
491
490
|
hasNoArrow: true,
|
492
491
|
isNonModal: true,
|
493
492
|
isOpen: !state.collection.size ? false : isOpen,
|
@@ -21,6 +21,7 @@ import PropTypes from 'prop-types';
|
|
21
21
|
import { v4 as uuid } from 'uuid';
|
22
22
|
import { Box, FieldHelperText, Icon, IconButton, Input, Label } from '../..';
|
23
23
|
import { useField, usePropWarning } from '../../hooks';
|
24
|
+
import { getPendoID } from '../../utils/devUtils/constants/pendoID';
|
24
25
|
import { ariaAttributesBasePropTypes } from '../../utils/docUtils/ariaAttributes';
|
25
26
|
import { inputFieldAttributesBasePropTypes } from '../../utils/docUtils/fieldAttributes';
|
26
27
|
import { statusPropTypes } from '../../utils/docUtils/statusProp';
|
@@ -99,7 +100,7 @@ var NumberField = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
99
100
|
// extract numeric value in case input value use units like '4 inches' or 'USD 45.00'
|
100
101
|
// aria-valuenow accept only number value type
|
101
102
|
var inputPropsNumericValue = typeof inputPropsValue === 'string' ? inputPropsValue.match(/[-]{0,1}[\d]*[.]{0,1}[\d]+/g)[0] : inputPropsValue;
|
102
|
-
return ___EmotionJSX(Box, fieldContainerProps, ___EmotionJSX(Label, updatedLabelProps), ___EmotionJSX(Box, _extends({
|
103
|
+
return ___EmotionJSX(Box, _extends({}, getPendoID('NumberField'), fieldContainerProps), ___EmotionJSX(Label, updatedLabelProps), ___EmotionJSX(Box, _extends({
|
103
104
|
variant: "forms.numberField.noDefaultArrows"
|
104
105
|
}, groupProps), ___EmotionJSX(Box, _extends({
|
105
106
|
variant: "forms.numberField.arrowsWrapper"
|
@@ -26,11 +26,13 @@ import { VisuallyHidden } from '@react-aria/visually-hidden';
|
|
26
26
|
import PropTypes from 'prop-types';
|
27
27
|
import { Box, FieldHelperText, Icon, IconButton, Input, Label, PopoverContainer, RequirementsList } from '../..';
|
28
28
|
import { useDebounce, useField, useProgressiveState, usePropWarning, useStatusClasses } from '../../hooks';
|
29
|
+
import { getPendoID } from '../../utils/devUtils/constants/pendoID';
|
29
30
|
import statuses from '../../utils/devUtils/constants/statuses';
|
30
31
|
import { ariaAttributesBasePropTypes } from '../../utils/docUtils/ariaAttributes';
|
31
32
|
import { inputFieldAttributesBasePropTypes } from '../../utils/docUtils/fieldAttributes';
|
32
33
|
import { statusDefaultProp, statusPropTypes } from '../../utils/docUtils/statusProp';
|
33
34
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
35
|
+
var displayName = 'PasswordField';
|
34
36
|
var ARIA_LABELS_FOR_SHOW_PASSWORD_TOGGLE = {
|
35
37
|
HIDE: 'hide password',
|
36
38
|
SHOW: 'show password'
|
@@ -153,7 +155,7 @@ var PasswordField = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
153
155
|
};
|
154
156
|
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(Box, _extends({
|
155
157
|
variant: "forms.input.fieldContainer"
|
156
|
-
}, fieldContainerProps), ___EmotionJSX(Label, fieldLabelProps), ___EmotionJSX(Box, _extends({
|
158
|
+
}, getPendoID(displayName), fieldContainerProps), ___EmotionJSX(Label, fieldLabelProps), ___EmotionJSX(Box, _extends({
|
157
159
|
variant: "forms.input.fieldControlWrapper",
|
158
160
|
isRow: true
|
159
161
|
}, fieldControlWrapperProps, {
|
@@ -282,5 +284,5 @@ PasswordField.defaultProps = _objectSpread({
|
|
282
284
|
requirements: [],
|
283
285
|
type: 'password'
|
284
286
|
}, statusDefaultProp);
|
285
|
-
PasswordField.displayName =
|
287
|
+
PasswordField.displayName = displayName;
|
286
288
|
export default PasswordField;
|
@@ -18,11 +18,13 @@ import { v4 as uuid } from 'uuid';
|
|
18
18
|
import { Box, FieldHelperText, Label } from '../..';
|
19
19
|
import { usePropWarning, useStatusClasses } from '../../hooks';
|
20
20
|
import ORIENTATION from '../../utils/devUtils/constants/orientation';
|
21
|
+
import { getPendoID } from '../../utils/devUtils/constants/pendoID';
|
21
22
|
import { ariaAttributesBasePropTypes } from '../../utils/docUtils/ariaAttributes';
|
22
23
|
import { inputFieldAttributesBasePropTypes } from '../../utils/docUtils/fieldAttributes';
|
23
24
|
import { statusPropTypes } from '../../utils/docUtils/statusProp';
|
24
25
|
import { RadioContext } from '../RadioField';
|
25
26
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
27
|
+
var displayName = 'RadioGroupField';
|
26
28
|
var RadioGroupField = /*#__PURE__*/forwardRef(function (props, ref) {
|
27
29
|
var children = props.children,
|
28
30
|
className = props.className,
|
@@ -51,7 +53,7 @@ var RadioGroupField = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
51
53
|
return ___EmotionJSX(Box, _extends({
|
52
54
|
ref: ref,
|
53
55
|
className: classNames
|
54
|
-
}, unhandledAriaProps, radioGroupProps), ___EmotionJSX(Label, _extends({
|
56
|
+
}, getPendoID(displayName), unhandledAriaProps, radioGroupProps), ___EmotionJSX(Label, _extends({
|
55
57
|
isDisabled: isDisabled,
|
56
58
|
hintText: hintText,
|
57
59
|
isRequired: isRequired,
|
@@ -102,5 +104,5 @@ RadioGroupField.propTypes = _objectSpread(_objectSpread(_objectSpread({
|
|
102
104
|
/** The element's unique identifier. See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id). */
|
103
105
|
id: PropTypes.string
|
104
106
|
}, statusPropTypes), ariaAttributesBasePropTypes), inputFieldAttributesBasePropTypes);
|
105
|
-
RadioGroupField.displayName =
|
107
|
+
RadioGroupField.displayName = displayName;
|
106
108
|
export default RadioGroupField;
|
@@ -18,9 +18,11 @@ import SearchIcon from '@pingux/mdi-react/SearchIcon';
|
|
18
18
|
import PropTypes from 'prop-types';
|
19
19
|
import { Box, Icon, IconButton, Input, Label } from '../..';
|
20
20
|
import { useField, usePropWarning } from '../../hooks';
|
21
|
+
import { getPendoID } from '../../utils/devUtils/constants/pendoID';
|
21
22
|
import { ariaAttributesBasePropTypes } from '../../utils/docUtils/ariaAttributes';
|
22
23
|
import { inputFieldAttributesBasePropTypes } from '../../utils/docUtils/fieldAttributes';
|
23
24
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
25
|
+
var displayName = 'SearchField';
|
24
26
|
var SearchField = /*#__PURE__*/forwardRef(function (props, ref) {
|
25
27
|
var autocomplete = props.autocomplete,
|
26
28
|
hasAutoFocus = props.hasAutoFocus,
|
@@ -60,7 +62,7 @@ var SearchField = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
60
62
|
state.setValue('');
|
61
63
|
}
|
62
64
|
};
|
63
|
-
return ___EmotionJSX(Box, fieldContainerProps, label && ___EmotionJSX(Label, fieldLabelProps), ___EmotionJSX(Box, _extends({
|
65
|
+
return ___EmotionJSX(Box, _extends({}, getPendoID(displayName), fieldContainerProps), label && ___EmotionJSX(Label, fieldLabelProps), ___EmotionJSX(Box, _extends({
|
64
66
|
variant: "forms.search.wrapper"
|
65
67
|
}, fieldControlWrapperProps), ___EmotionJSX(Input, _extends({
|
66
68
|
variant: "forms.input.search",
|
@@ -257,5 +259,5 @@ SearchField.defaultProps = {
|
|
257
259
|
hasNoClearButton: false,
|
258
260
|
icon: SearchIcon
|
259
261
|
};
|
260
|
-
SearchField.displayName =
|
262
|
+
SearchField.displayName = displayName;
|
261
263
|
export default SearchField;
|
@@ -19,6 +19,7 @@ import MenuDown from '@pingux/mdi-react/MenuDownIcon';
|
|
19
19
|
import PropTypes from 'prop-types';
|
20
20
|
import { v4 as uuid } from 'uuid';
|
21
21
|
import { modes } from '../../utils/devUtils/constants/labelModes';
|
22
|
+
import { getPendoID } from '../../utils/devUtils/constants/pendoID';
|
22
23
|
import { ariaAttributesBasePropTypes, getAriaAttributeProps } from '../../utils/docUtils/ariaAttributes';
|
23
24
|
import { statusPropTypes } from '../../utils/docUtils/statusProp';
|
24
25
|
import Box from '../Box';
|
@@ -96,7 +97,7 @@ var SelectFieldBase = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
96
97
|
return ___EmotionJSX(Box, _extends({
|
97
98
|
ref: ref,
|
98
99
|
variant: "forms.input.fieldContainer"
|
99
|
-
}, fieldContainerProps, {
|
100
|
+
}, getPendoID('SelectField'), fieldContainerProps, {
|
100
101
|
sx: _objectSpread(_objectSpread({}, columnStyleProps === null || columnStyleProps === void 0 ? void 0 : columnStyleProps.sx), fieldContainerProps === null || fieldContainerProps === void 0 ? void 0 : fieldContainerProps.sx)
|
101
102
|
}), ___EmotionJSX(Label, fieldLabelProps, label), ___EmotionJSX(HiddenSelect, {
|
102
103
|
state: state,
|
@@ -20,9 +20,11 @@ import { usePress } from '@react-aria/interactions';
|
|
20
20
|
import omit from 'lodash/omit';
|
21
21
|
import { Box, FieldHelperText, Label, Switch } from '../..';
|
22
22
|
import { useField, usePropWarning } from '../../hooks';
|
23
|
+
import { getPendoID } from '../../utils/devUtils/constants/pendoID';
|
23
24
|
import { statusDefaultProp } from '../../utils/docUtils/statusProp';
|
24
25
|
import { switchFieldPropTypes } from './switchFieldAttributes';
|
25
26
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
27
|
+
var displayName = 'SwitchField';
|
26
28
|
var SwitchField = /*#__PURE__*/forwardRef(function (props, ref) {
|
27
29
|
var label = props.label,
|
28
30
|
helperText = props.helperText,
|
@@ -84,16 +86,16 @@ var SwitchField = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
84
86
|
'aria-controls': others['aria-controls'],
|
85
87
|
'aria-errormessage': others['aria-errormessage']
|
86
88
|
};
|
87
|
-
return ___EmotionJSX(Box, fieldContainerProps, ___EmotionJSX(Label, _extends({
|
89
|
+
return ___EmotionJSX(Box, _extends({}, getPendoID(displayName), fieldContainerProps), ___EmotionJSX(Label, _extends({
|
88
90
|
variant: "forms.switch.label"
|
89
91
|
}, fieldLabelProps), ___EmotionJSX(Box, fieldControlWrapperProps, ___EmotionJSX(Switch, _extends({
|
90
92
|
ref: switchRef,
|
91
93
|
inputProps: fieldControlInputProps
|
92
|
-
}, unhandledAriaProps, others))), label), helperText && ___EmotionJSX(FieldHelperText, {
|
94
|
+
}, unhandledAriaProps, omit(others, 'data-pendo-id')))), label), helperText && ___EmotionJSX(FieldHelperText, {
|
93
95
|
status: status
|
94
96
|
}, helperText));
|
95
97
|
});
|
96
98
|
SwitchField.propTypes = switchFieldPropTypes;
|
97
99
|
SwitchField.defaultProps = _objectSpread({}, statusDefaultProp);
|
98
|
-
SwitchField.displayName =
|
100
|
+
SwitchField.displayName = displayName;
|
99
101
|
export default SwitchField;
|
@@ -9,6 +9,7 @@ import PropTypes from 'prop-types';
|
|
9
9
|
import { Box, Text, Tooltip, TooltipTrigger } from '../..';
|
10
10
|
import { usePropWarning, useStatusClasses } from '../../hooks';
|
11
11
|
import ORIENTATION from '../../utils/devUtils/constants/orientation';
|
12
|
+
import { getPendoID } from '../../utils/devUtils/constants/pendoID';
|
12
13
|
import TabPicker from '../TabPicker';
|
13
14
|
import { TabsContext } from '../Tabs';
|
14
15
|
|
@@ -71,7 +72,7 @@ export var CollectionTab = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
71
72
|
}, slots === null || slots === void 0 ? void 0 : slots.beforeTab, ___EmotionJSX(Box, _extends({
|
72
73
|
className: classNames,
|
73
74
|
variant: "tab"
|
74
|
-
}, mergeProps(focusProps, hoverProps, tabProps), otherItemProps, {
|
75
|
+
}, mergeProps(focusProps, hoverProps, tabProps), getPendoID('Tab'), otherItemProps, {
|
75
76
|
ref: tabRef,
|
76
77
|
title: titleAttr || undefined
|
77
78
|
}), icon, ___EmotionJSX(Text, _extends({
|
@@ -16,10 +16,12 @@ import PropTypes from 'prop-types';
|
|
16
16
|
import { v4 as uuid } from 'uuid';
|
17
17
|
import { Box, FieldHelperText, Label, TextArea } from '../..';
|
18
18
|
import { useColumnStyles, useField, useLabelHeight, usePropWarning } from '../../hooks';
|
19
|
+
import { getPendoID } from '../../utils/devUtils/constants/pendoID';
|
19
20
|
import { ariaAttributesBasePropTypes } from '../../utils/docUtils/ariaAttributes';
|
20
21
|
import { inputFieldAttributesBasePropTypes } from '../../utils/docUtils/fieldAttributes';
|
21
22
|
import { statusDefaultProp, statusPropTypes } from '../../utils/docUtils/statusProp';
|
22
23
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
24
|
+
var displayName = 'TextAreaField';
|
23
25
|
var TextAreaField = /*#__PURE__*/forwardRef(function (props, ref) {
|
24
26
|
var helperText = props.helperText,
|
25
27
|
isUnresizable = props.isUnresizable,
|
@@ -101,7 +103,7 @@ var TextAreaField = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
101
103
|
}, labelNode);
|
102
104
|
return ___EmotionJSX(Box, _extends({
|
103
105
|
variant: "forms.input.fieldContainer"
|
104
|
-
}, fieldContainerProps, {
|
106
|
+
}, getPendoID(displayName), fieldContainerProps, {
|
105
107
|
sx: _objectSpread(_objectSpread({}, columnStyleProps === null || columnStyleProps === void 0 ? void 0 : columnStyleProps.sx), fieldContainerProps === null || fieldContainerProps === void 0 ? void 0 : fieldContainerProps.sx),
|
106
108
|
ref: containerRef,
|
107
109
|
maxWidth: "100%"
|
@@ -203,5 +205,5 @@ TextAreaField.defaultProps = _objectSpread({
|
|
203
205
|
isUnresizable: false,
|
204
206
|
rows: 4
|
205
207
|
}, statusDefaultProp);
|
206
|
-
TextAreaField.displayName =
|
208
|
+
TextAreaField.displayName = displayName;
|
207
209
|
export default TextAreaField;
|
@@ -16,10 +16,12 @@ import { v4 as uuid } from 'uuid';
|
|
16
16
|
import { Box, FieldHelperText, Input, Label } from '../..';
|
17
17
|
import { useField, useLabelHeight, usePropWarning } from '../../hooks';
|
18
18
|
import useColumnStyles from '../../hooks/useColumnStyles';
|
19
|
+
import { getPendoID } from '../../utils/devUtils/constants/pendoID';
|
19
20
|
import { ariaAttributesBasePropTypes } from '../../utils/docUtils/ariaAttributes';
|
20
21
|
import { inputFieldAttributesBasePropTypes } from '../../utils/docUtils/fieldAttributes';
|
21
22
|
import { statusDefaultProp, statusPropTypes } from '../../utils/docUtils/statusProp';
|
22
23
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
24
|
+
var displayName = 'TextField';
|
23
25
|
var TextField = /*#__PURE__*/forwardRef(function (props, ref) {
|
24
26
|
var helperText = props.helperText,
|
25
27
|
helpHintProps = props.helpHintProps,
|
@@ -48,7 +50,7 @@ var TextField = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
48
50
|
var helperTextId = uuid();
|
49
51
|
return ___EmotionJSX(Box, _extends({
|
50
52
|
variant: "forms.input.fieldContainer"
|
51
|
-
}, fieldContainerProps, {
|
53
|
+
}, getPendoID(displayName), fieldContainerProps, {
|
52
54
|
sx: _objectSpread(_objectSpread({}, columnStyleProps === null || columnStyleProps === void 0 ? void 0 : columnStyleProps.sx), fieldContainerProps === null || fieldContainerProps === void 0 ? void 0 : fieldContainerProps.sx)
|
53
55
|
}), ___EmotionJSX(Label, _extends({}, fieldLabelProps, {
|
54
56
|
ref: labelRef,
|
@@ -140,5 +142,5 @@ TextField.defaultProps = _objectSpread({
|
|
140
142
|
isReadOnly: false,
|
141
143
|
isRequired: false
|
142
144
|
}, statusDefaultProp);
|
143
|
-
TextField.displayName =
|
145
|
+
TextField.displayName = displayName;
|
144
146
|
export default TextField;
|