@pingux/astro 2.53.1 → 2.54.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/lib/cjs/components/ArrayField/ArrayField.js +2 -1
  2. package/lib/cjs/components/Button/Button.js +4 -2
  3. package/lib/cjs/components/Calendar/Calendar.d.ts +4 -0
  4. package/lib/cjs/components/Calendar/Calendar.js +14 -59
  5. package/lib/cjs/components/Calendar/Calendar.stories.d.ts +212 -0
  6. package/lib/cjs/components/Calendar/Calendar.stories.js +12 -12
  7. package/lib/cjs/components/Calendar/Calendar.styles.d.ts +73 -0
  8. package/lib/cjs/components/Calendar/Calendar.test.d.ts +1 -0
  9. package/lib/cjs/components/Calendar/Calendar.test.js +2 -2
  10. package/lib/cjs/components/Calendar/CalendarCell.d.ts +9 -0
  11. package/lib/cjs/components/Calendar/CalendarCell.js +11 -30
  12. package/lib/cjs/components/Calendar/CalendarGrid.d.ts +9 -0
  13. package/lib/cjs/components/Calendar/CalendarGrid.js +6 -15
  14. package/lib/cjs/components/Calendar/index.d.ts +1 -0
  15. package/lib/cjs/components/CheckboxField/CheckboxField.js +4 -2
  16. package/lib/cjs/components/ColorField/ColorField.js +4 -2
  17. package/lib/cjs/components/ComboBoxField/ComboBoxField.js +4 -2
  18. package/lib/cjs/components/DatePicker/DatePicker.js +4 -2
  19. package/lib/cjs/components/FileInputField/FileInputField.js +4 -2
  20. package/lib/cjs/components/IconButton/IconButton.js +4 -2
  21. package/lib/cjs/components/ImageUploadField/ImageUploadField.js +4 -2
  22. package/lib/cjs/components/Input/Input.js +7 -6
  23. package/lib/cjs/components/LinkSelectField/LinkSelectField.js +4 -2
  24. package/lib/cjs/components/ListViewItem/ListViewItem.js +4 -2
  25. package/lib/cjs/components/MultivaluesField/MultivaluesField.js +2 -3
  26. package/lib/cjs/components/NumberField/NumberField.js +2 -1
  27. package/lib/cjs/components/PasswordField/PasswordField.js +4 -2
  28. package/lib/cjs/components/RadioGroupField/RadioGroupField.js +4 -2
  29. package/lib/cjs/components/SearchField/SearchField.js +4 -2
  30. package/lib/cjs/components/SelectFieldBase/SelectFieldBase.js +2 -1
  31. package/lib/cjs/components/SwitchField/SwitchField.js +5 -3
  32. package/lib/cjs/components/Tab/Tab.js +2 -1
  33. package/lib/cjs/components/TextAreaField/TextAreaField.js +4 -2
  34. package/lib/cjs/components/TextField/TextField.js +4 -2
  35. package/lib/cjs/components/TimeZonePicker/TimeZonePicker.js +2 -1
  36. package/lib/cjs/hooks/useField/useField.d.ts +8 -5
  37. package/lib/cjs/hooks/useRockerButton/useRockerButton.d.ts +1 -1
  38. package/lib/cjs/types/box.d.ts +3 -0
  39. package/lib/cjs/types/calendar.d.ts +69 -0
  40. package/lib/cjs/types/calendar.js +6 -0
  41. package/lib/cjs/types/index.d.ts +1 -0
  42. package/lib/cjs/types/index.js +42 -31
  43. package/lib/cjs/types/table.d.ts +1 -1
  44. package/lib/cjs/utils/devUtils/constants/pendoID.d.ts +3 -0
  45. package/lib/cjs/utils/devUtils/constants/pendoID.js +13 -0
  46. package/lib/components/ArrayField/ArrayField.js +2 -1
  47. package/lib/components/Button/Button.js +4 -2
  48. package/lib/components/Calendar/Calendar.js +15 -60
  49. package/lib/components/Calendar/Calendar.stories.js +2 -2
  50. package/lib/components/Calendar/Calendar.test.js +2 -2
  51. package/lib/components/Calendar/CalendarCell.js +12 -32
  52. package/lib/components/Calendar/CalendarGrid.js +6 -15
  53. package/lib/components/CheckboxField/CheckboxField.js +4 -2
  54. package/lib/components/ColorField/ColorField.js +4 -2
  55. package/lib/components/ComboBoxField/ComboBoxField.js +4 -2
  56. package/lib/components/DatePicker/DatePicker.js +4 -2
  57. package/lib/components/FileInputField/FileInputField.js +4 -2
  58. package/lib/components/IconButton/IconButton.js +4 -2
  59. package/lib/components/ImageUploadField/ImageUploadField.js +4 -2
  60. package/lib/components/Input/Input.js +6 -5
  61. package/lib/components/LinkSelectField/LinkSelectField.js +4 -2
  62. package/lib/components/ListViewItem/ListViewItem.js +4 -2
  63. package/lib/components/MultivaluesField/MultivaluesField.js +3 -4
  64. package/lib/components/NumberField/NumberField.js +2 -1
  65. package/lib/components/PasswordField/PasswordField.js +4 -2
  66. package/lib/components/RadioGroupField/RadioGroupField.js +4 -2
  67. package/lib/components/SearchField/SearchField.js +4 -2
  68. package/lib/components/SelectFieldBase/SelectFieldBase.js +2 -1
  69. package/lib/components/SwitchField/SwitchField.js +5 -3
  70. package/lib/components/Tab/Tab.js +2 -1
  71. package/lib/components/TextAreaField/TextAreaField.js +4 -2
  72. package/lib/components/TextField/TextField.js +4 -2
  73. package/lib/components/TimeZonePicker/TimeZonePicker.js +2 -1
  74. package/lib/types/calendar.js +1 -0
  75. package/lib/types/index.js +1 -0
  76. package/lib/utils/devUtils/constants/pendoID.js +5 -0
  77. package/package.json +2 -2
@@ -21,6 +21,7 @@ import { mergeProps, useLabel } from 'react-aria';
21
21
  import PropTypes from 'prop-types';
22
22
  import { v4 as uuid } from 'uuid';
23
23
  import { Box, Button, FieldHelperText, Label, Text } from '../..';
24
+ import { getPendoID } from '../../utils/devUtils/constants/pendoID';
24
25
  import statuses from '../../utils/devUtils/constants/statuses';
25
26
  import isValidPositiveInt from '../../utils/devUtils/props/isValidPositiveInt';
26
27
  import { ariaAttributesBasePropTypes, getAriaAttributeProps } from '../../utils/docUtils/ariaAttributes';
@@ -119,7 +120,7 @@ var ArrayField = /*#__PURE__*/forwardRef(function (props, ref) {
119
120
  var _getAriaAttributeProp = getAriaAttributeProps(others),
120
121
  ariaProps = _getAriaAttributeProp.ariaProps,
121
122
  nonAriaProps = _getAriaAttributeProp.nonAriaProps;
122
- return ___EmotionJSX(Box, _extends({}, nonAriaProps, {
123
+ return ___EmotionJSX(Box, _extends({}, getPendoID('ArrayField'), nonAriaProps, {
123
124
  ref: ref
124
125
  }), ___EmotionJSX(Label, _extends({}, raLabelProps, mergeProps(labelProps, raLabelProps, {
125
126
  children: label
@@ -17,8 +17,10 @@ import { mergeProps, useButton, useFocusRing } from 'react-aria';
17
17
  import { Pressable, useHover, usePress } from '@react-aria/interactions';
18
18
  import { Button as ThemeUIButton } from 'theme-ui';
19
19
  import { useAriaLabelWarning, useLocalOrForwardRef, usePropWarning, useStatusClasses } from '../../hooks';
20
+ import { getPendoID } from '../../utils/devUtils/constants/pendoID';
20
21
  import Loader from '../Loader';
21
22
  import { jsx as ___EmotionJSX } from "@emotion/react";
23
+ var displayName = 'Button';
22
24
  var Button = /*#__PURE__*/forwardRef(function (props, ref) {
23
25
  var children = props.children,
24
26
  className = props.className,
@@ -91,7 +93,7 @@ var Button = /*#__PURE__*/forwardRef(function (props, ref) {
91
93
  alignItems: 'center'
92
94
  } : {},
93
95
  variant: variant
94
- }, others, mergeProps(_objectSpread(_objectSpread({}, buttonProps), {}, {
96
+ }, getPendoID(displayName), others, mergeProps(_objectSpread(_objectSpread({}, buttonProps), {}, {
95
97
  tabIndex: tabIndex
96
98
  }), hoverProps, focusProps)), isLoading ? ___EmotionJSX("span", {
97
99
  style: {
@@ -108,5 +110,5 @@ Button.defaultProps = {
108
110
  isDisabled: false,
109
111
  variant: 'default'
110
112
  };
111
- Button.displayName = 'Button';
113
+ Button.displayName = displayName;
112
114
  export default Button;
@@ -11,7 +11,7 @@ import _slicedToArray from "@babel/runtime-corejs3/helpers/esm/slicedToArray";
11
11
  import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
12
12
  function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
13
13
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
14
- import React, { forwardRef, useEffect, useImperativeHandle, useRef, useState } from 'react';
14
+ import React, { forwardRef, useEffect, useRef, useState } from 'react';
15
15
  import { createCalendar, parseDate } from '@internationalized/date';
16
16
  import ChevronDoubleLeftIcon from '@pingux/mdi-react/ChevronDoubleLeftIcon';
17
17
  import ChevronDoubleRightIcon from '@pingux/mdi-react/ChevronDoubleRightIcon';
@@ -21,7 +21,7 @@ import { useCalendar } from '@react-aria/calendar';
21
21
  import { useLocale } from '@react-aria/i18n';
22
22
  import { VisuallyHidden } from '@react-aria/visually-hidden';
23
23
  import { useCalendarState } from '@react-stately/calendar';
24
- import PropTypes from 'prop-types';
24
+ import { useLocalOrForwardRef } from '../../hooks';
25
25
  import { Box, Button, Icon, IconButton, Text } from '../../index';
26
26
  import CalendarGrid from './CalendarGrid';
27
27
  import { jsx as ___EmotionJSX } from "@emotion/react";
@@ -34,12 +34,7 @@ var Calendar = /*#__PURE__*/forwardRef(function (props, ref) {
34
34
  value = props.value;
35
35
  var _useLocale = useLocale(),
36
36
  locale = _useLocale.locale;
37
- var calenderRef = useRef();
38
-
39
- // istanbul ignore next
40
- useImperativeHandle(ref, function () {
41
- return calenderRef.current;
42
- });
37
+ var calenderRef = useLocalOrForwardRef(ref);
43
38
  var parsedDates = {
44
39
  value: typeof value === 'string' && parseDate(value) || value,
45
40
  defaultValue: typeof defaultValue === 'string' && parseDate(defaultValue) || defaultValue,
@@ -53,11 +48,11 @@ var Calendar = /*#__PURE__*/forwardRef(function (props, ref) {
53
48
  locale: locale,
54
49
  createCalendar: createCalendar
55
50
  }));
56
- var _useCalendar = useCalendar(_objectSpread(_objectSpread({}, props), parsedDates), state, calenderRef),
57
- calendarProps = _useCalendar.calendarProps,
58
- prevButtonProps = _useCalendar.prevButtonProps,
59
- nextButtonProps = _useCalendar.nextButtonProps,
60
- title = _useCalendar.title;
51
+ var _ref = useCalendar(_objectSpread(_objectSpread({}, props), parsedDates), state),
52
+ calendarProps = _ref.calendarProps,
53
+ prevButtonProps = _ref.prevButtonProps,
54
+ nextButtonProps = _ref.nextButtonProps,
55
+ title = _ref.title;
61
56
  var _useState = useState(null),
62
57
  _useState2 = _slicedToArray(_useState, 2),
63
58
  yearChangeDirection = _useState2[0],
@@ -72,10 +67,12 @@ var Calendar = /*#__PURE__*/forwardRef(function (props, ref) {
72
67
  // after updating visible year, reapplies focus to corresponding year buttons
73
68
  useEffect(function () {
74
69
  if (yearChangeDirection === nav.NEXT) {
75
- nextYearRef.current.focus();
70
+ var _nextYearRef$current;
71
+ (_nextYearRef$current = nextYearRef.current) === null || _nextYearRef$current === void 0 ? void 0 : _nextYearRef$current.focus();
76
72
  }
77
73
  if (yearChangeDirection === nav.PREVIOUS) {
78
- previousYearRef.current.focus();
74
+ var _previousYearRef$curr;
75
+ (_previousYearRef$curr = previousYearRef.current) === null || _previousYearRef$curr === void 0 ? void 0 : _previousYearRef$curr.focus();
79
76
  }
80
77
  setYearChangeDirection(null);
81
78
  }, [nav.NEXT, nav.PREVIOUS, yearChangeDirection]);
@@ -99,12 +96,13 @@ var Calendar = /*#__PURE__*/forwardRef(function (props, ref) {
99
96
  var renderTitle = ___EmotionJSX(Text, {
100
97
  variant: "itemTitle",
101
98
  role: "heading",
102
- "aria-level": "3",
99
+ "aria-level": 3,
103
100
  fontWeight: 3
104
101
  }, title);
105
102
  return ___EmotionJSX(Box, _extends({}, calendarProps, {
106
103
  ref: calenderRef,
107
- variant: "calendar.calendarContainer"
104
+ variant: "calendar.calendarContainer",
105
+ role: "group"
108
106
  }), ___EmotionJSX(VisuallyHidden, {
109
107
  "aria-live": "assertive"
110
108
  }, ___EmotionJSX(Text, null, title)), ___EmotionJSX(Box, {
@@ -167,47 +165,4 @@ var Calendar = /*#__PURE__*/forwardRef(function (props, ref) {
167
165
  tabIndex: -1
168
166
  })));
169
167
  });
170
- Calendar.propTypes = {
171
- /** Prop to provide a custom default date (uncontrolled) */
172
- defaultValue: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
173
- /** Prop to provide a custom default focused date (uncontrolled) */
174
- defaultFocusedValue: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
175
- /** Prop to provide a default date (controlled) */
176
- value: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
177
- /** custom week days for other calendars */
178
- customWeekDays: PropTypes.arrayOf(PropTypes.string),
179
- /** Whether the element should receive focus on render. */
180
- hasAutoFocus: PropTypes.bool,
181
- /** The element's unique identifier. */
182
- id: PropTypes.string,
183
- /**
184
- * Callback that is called for each date of the calendar.
185
- * If it returns true, then the date is unavailable.
186
- *
187
- * (date: DateValue) => boolean
188
- */
189
- isDateUnavailable: PropTypes.func,
190
- /** Whether the calendar is disabled. */
191
- isDisabled: PropTypes.bool,
192
- /** Whether the calendar dates are only focusable. */
193
- isReadOnly: PropTypes.bool,
194
- /** Whether user input is required on the input before form submission. */
195
- isRequired: PropTypes.bool,
196
- /** The maximum allowed date that a user may select. */
197
- maxValue: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
198
- /** The minimum allowed date that a user may select. */
199
- minValue: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
200
- /** Handler that is called when the element loses focus. */
201
- onBlur: PropTypes.func,
202
- /** Handler that is called when the element's selection state changes. */
203
- onChange: PropTypes.func,
204
- /** Handler that is called when the element receives focus. */
205
- onFocus: PropTypes.func,
206
- /** Handler that is called when the element's focus status changes. */
207
- onFocusChange: PropTypes.func,
208
- /** Handler that is called when a key is pressed. */
209
- onKeyDown: PropTypes.func,
210
- /** Handler that is called when a key is released. */
211
- onKeyUp: PropTypes.func
212
- };
213
168
  export default Calendar;
@@ -16,10 +16,10 @@ import React, { useState } from 'react';
16
16
  import { parseDate } from '@internationalized/date';
17
17
  import { withDesign } from 'storybook-addon-designs';
18
18
  import DocsLayout from '../../../.storybook/storybookDocsLayout';
19
- import { FIGMA_LINKS } from '../../utils/designUtils/figmaLinks.ts';
19
+ import { FIGMA_LINKS } from '../../utils/designUtils/figmaLinks';
20
20
  import { ariaAttributeBaseArgTypes } from '../../utils/docUtils/ariaAttributes';
21
- import Calendar from './Calendar';
22
21
  import CalendarReadme from './Calendar.mdx';
22
+ import Calendar from '.';
23
23
  import { jsx as ___EmotionJSX } from "@emotion/react";
24
24
  export default {
25
25
  title: 'Components/Calendar',
@@ -274,7 +274,7 @@ test('unavailable dates cannot be picked', function () {
274
274
  return cell.getAttribute('aria-disabled') === 'true';
275
275
  });
276
276
  expect(cells.length).toBe(9);
277
- var disabledDate = screen.queryByText(16);
277
+ var disabledDate = screen.getByText(16);
278
278
  userEvent.click(disabledDate);
279
279
  expect(disabledDate).toHaveAttribute('aria-disabled', 'true');
280
280
  expect(disabledDate).not.toHaveClass('is-selected');
@@ -290,6 +290,6 @@ test('should autofocus on current day with hasAutoFocus', function () {
290
290
  var focusedDay = _filterInstanceProperty(_context7 = screen.queryAllByText(day)).call(_context7, function (cell) {
291
291
  return cell.getAttribute('aria-disabled') !== 'true';
292
292
  });
293
- expect(focusedDay[0]).toHaveTextContent(day);
293
+ expect(focusedDay[0]).toHaveTextContent(day.toString());
294
294
  expect(focusedDay[0]).toHaveFocus();
295
295
  });
@@ -1,31 +1,26 @@
1
1
  import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime-corejs3/helpers/esm/objectWithoutProperties";
3
3
  var _excluded = ["state", "date", "className"];
4
- import React, { forwardRef, useCallback, useImperativeHandle, useRef } from 'react';
4
+ import React, { forwardRef, useCallback } from 'react';
5
5
  import { useCalendarCell } from '@react-aria/calendar';
6
6
  import { useFocusRing } from '@react-aria/focus';
7
7
  import { useHover, usePress } from '@react-aria/interactions';
8
8
  import { mergeProps } from '@react-aria/utils';
9
- import PropTypes from 'prop-types';
10
- import { useStatusClasses } from '../../hooks';
9
+ import { useLocalOrForwardRef, useStatusClasses } from '../../hooks';
11
10
  import { Box, TableCell } from '../../index';
12
-
11
+ import { jsx as ___EmotionJSX } from "@emotion/react";
13
12
  /**
14
13
  * Grid cell button element with the formatted day number.
15
14
  * Utilizes the useCalendarCell hook to return props for an individual cell,
16
15
  * along with states and information.
17
16
  */
18
- import { jsx as ___EmotionJSX } from "@emotion/react";
17
+
19
18
  var CalendarCell = /*#__PURE__*/forwardRef(function (props, ref) {
20
19
  var state = props.state,
21
20
  date = props.date,
22
21
  className = props.className,
23
22
  others = _objectWithoutProperties(props, _excluded);
24
- var cellRef = useRef();
25
- /* istanbul ignore next */
26
- useImperativeHandle(ref, function () {
27
- return cellRef.current;
28
- });
23
+ var cellRef = useLocalOrForwardRef(ref);
29
24
  var _useCalendarCell = useCalendarCell({
30
25
  date: date
31
26
  }, state, cellRef),
@@ -47,11 +42,11 @@ var CalendarCell = /*#__PURE__*/forwardRef(function (props, ref) {
47
42
 
48
43
  var handleDisableClick = useCallback(function () {
49
44
  var _cellRef$current, _cellRef$current2;
50
- if ((_cellRef$current = cellRef.current) !== null && _cellRef$current !== void 0 && _cellRef$current.hidden && !state.isDisabled && formattedDate > 20) {
51
- setFocused(undefined);
45
+ if ((_cellRef$current = cellRef.current) !== null && _cellRef$current !== void 0 && _cellRef$current.hidden && !state.isDisabled && Number(formattedDate) > 20) {
46
+ setFocused(false);
52
47
  focusPreviousPage();
53
- } else if ((_cellRef$current2 = cellRef.current) !== null && _cellRef$current2 !== void 0 && _cellRef$current2.hidden && !state.isDisabled && formattedDate < 15) {
54
- setFocused(undefined);
48
+ } else if ((_cellRef$current2 = cellRef.current) !== null && _cellRef$current2 !== void 0 && _cellRef$current2.hidden && !state.isDisabled && Number(formattedDate) < 15) {
49
+ setFocused(false);
55
50
  focusNextPage();
56
51
  }
57
52
  }, [date, focusNextPage, focusPreviousPage, formattedDate, state, setFocused]);
@@ -86,27 +81,12 @@ var CalendarCell = /*#__PURE__*/forwardRef(function (props, ref) {
86
81
  }), ___EmotionJSX(Box, _extends({
87
82
  variant: "calendar.calendarButton",
88
83
  ref: cellRef,
89
- hidden: isOutsideVisibleRange,
84
+ hidden: isOutsideVisibleRange
85
+ }, mergeProps(buttonProps, others), {
90
86
  isSelected: isSelected,
91
87
  isDisabled: isDisabled,
92
88
  isUnavailable: isUnavailable,
93
89
  className: classNames
94
- }, mergeProps(buttonProps, others)), formattedDate));
90
+ }), formattedDate));
95
91
  });
96
- CalendarCell.propTypes = {
97
- isSelected: PropTypes.bool,
98
- isDisabled: PropTypes.bool,
99
- isOutsideVisibleRange: PropTypes.bool,
100
- isUnavailable: PropTypes.bool,
101
- formattedDate: PropTypes.string,
102
- state: PropTypes.shape({
103
- focusPreviousPage: PropTypes.func,
104
- setValue: PropTypes.func,
105
- focusNextPage: PropTypes.func,
106
- setFocused: PropTypes.func,
107
- setFocusedDate: PropTypes.func,
108
- isDisabled: PropTypes.bool
109
- }),
110
- date: PropTypes.shape({})
111
- };
112
92
  export default CalendarCell;
@@ -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, gridProps, ___EmotionJSX(TableHead, headerProps, ___EmotionJSX(TableRow, null, _mapInstanceProperty(_context2 = customWeekDays || weekDays).call(_context2, function (day, index) {
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 = 'CheckboxField';
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 = 'ColorField';
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 = 'ComboBoxField';
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 = 'FileInputField';
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 = 'IconButton';
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 = 'ImageUploadField';
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 { jsx as ___EmotionJSX } from "@emotion/react";
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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0lucHV0L0lucHV0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFpQnNCIiwiZmlsZSI6Ii4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0lucHV0L0lucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBSZWFjdCwgeyBmb3J3YXJkUmVmIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuaW1wb3J0IHsgZmxleGJveCwgbGF5b3V0LCB0eXBvZ3JhcGh5IH0gZnJvbSAnc3R5bGVkLXN5c3RlbSc7XG5pbXBvcnQgeyBJbnB1dCBhcyBUaGVtZVVJSW5wdXQgfSBmcm9tICd0aGVtZS11aSc7XG5cbmltcG9ydCB7IElucHV0UHJvcHMgfSBmcm9tICcuLi8uLi90eXBlcyc7XG4vKipcbiAqIEJhc2UgaW5wdXQgY29tcG9uZW50LlxuICpcbiAqIEFjY2VwdHMgcmVsZXZhbnQgc3R5bGluZyBwcm9wcyBmcm9tIFtzdHlsZWQtc3lzdGVtXShodHRwczovL3N0eWxlZC1zeXN0ZW0uY29tL3RhYmxlKS5cbiAqIEJ1aWx0IG9uIHRvcCBvZiBbSW5wdXQgZnJvbSBUaGVtZS1VSV0oaHR0cHM6Ly90aGVtZS11aS5jb20vY29tcG9uZW50cy9pbnB1dC8pLlxuICpcbiAqICoqTm90ZSoqOiBUaGlzIGNvbXBvbmVudCBkb2VzIG5vdCBzdXBwbHkgYWxsIG9mIHRoZSBhY2Nlc3NpYmlsaXR5IGFzc2lzdGFuY2Ugb24gaXRzIG93bi5cbiAqIFdlIGluc3RlYWQgZW5jb3VyYWdlIGRldmVsb3BlcnMgdG8gdXRpbGl6ZSBvdXIgRmllbGQgY29tcG9uZW50cyB3aGVyZXZlciBwb3NzaWJsZS5cbiAqIElmIHRoaXMgY29tcG9uZW50IGlzIHVzZWQsIGFjY2Vzc2liaWxpdHkgaXMgbGVmdCB0byB0aGUgZGV2ZWxvcGVyLlxuICovXG5cbmNvbnN0IEV4dGVuZGVkSW5wdXQgPSBzdHlsZWQoVGhlbWVVSUlucHV0KShcbiAgbGF5b3V0LFxuICBmbGV4Ym94LFxuICB0eXBvZ3JhcGh5LFxuKTtcblxuY29uc3QgSW5wdXQgPSBmb3J3YXJkUmVmPEhUTUxJbnB1dEVsZW1lbnQsIElucHV0UHJvcHM+KChwcm9wcywgcmVmKSA9PiB7XG4gIGNvbnN0IHsgbmFtZSwgcGxhY2Vob2xkZXIsIG1heExlbmd0aCwgLi4ub3RoZXJzIH0gPSBwcm9wcztcblxuICByZXR1cm4gKFxuICAgIDxFeHRlbmRlZElucHV0XG4gICAgICByZWY9e3JlZn1cbiAgICAgIG5hbWU9e25hbWV9XG4gICAgICBwbGFjZWhvbGRlcj17cGxhY2Vob2xkZXJ9XG4gICAgICBtYXhMZW5ndGg9e21heExlbmd0aCAmJiBtYXhMZW5ndGh9XG4gICAgICB7Li4ub3RoZXJzfVxuICAgIC8+XG4gICk7XG59KTtcblxuSW5wdXQuZGlzcGxheU5hbWUgPSAnSW5wdXQnO1xuXG5leHBvcnQgZGVmYXVsdCBJbnB1dDtcbiJdfQ== */");
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 = 'Input';
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 = 'LinkSelectField';
154
+ LinkSelectField.displayName = displayName;
153
155
  export default LinkSelectField;