@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.
- package/lib/cjs/components/ArrayField/ArrayField.js +2 -1
- 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/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
@@ -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;
|
@@ -23,6 +23,7 @@ import _sortInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instanc
|
|
23
23
|
import React, { forwardRef, useCallback, useEffect, useImperativeHandle, useMemo, useRef, useState } from 'react';
|
24
24
|
import PropTypes from 'prop-types';
|
25
25
|
import { Box, ComboBoxField, Item, Text } from '../../index';
|
26
|
+
import { getPendoID } from '../../utils/devUtils/constants/pendoID';
|
26
27
|
import defaultTimezones, { usCities } from './timezones.js';
|
27
28
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
28
29
|
var createSearchTags = function createSearchTags(_ref) {
|
@@ -184,7 +185,7 @@ var TimeZonePicker = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
184
185
|
}]
|
185
186
|
}, otherProps);
|
186
187
|
}, [emptySearchText, filteredTimezones, otherProps]);
|
187
|
-
return ___EmotionJSX(ComboBoxField, _extends({}, comboBoxFieldProps, {
|
188
|
+
return ___EmotionJSX(ComboBoxField, _extends({}, getPendoID('TimeZonePicker'), comboBoxFieldProps, {
|
188
189
|
disabledKeys: [emptySearchText],
|
189
190
|
menuTrigger: "input"
|
190
191
|
}), items);
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
package/lib/types/index.js
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@pingux/astro",
|
3
|
-
"version": "2.
|
3
|
+
"version": "2.54.0-alpha.0",
|
4
4
|
"description": "React component library for Ping Identity's design system",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -41,7 +41,7 @@
|
|
41
41
|
"@emotion/react": "^11.1.1",
|
42
42
|
"@emotion/styled": "^11.1.1",
|
43
43
|
"@faker-js/faker": "~7.5.0",
|
44
|
-
"@internationalized/date": "3.0
|
44
|
+
"@internationalized/date": "3.5.0",
|
45
45
|
"@mdx-js/react": "^1.6.22",
|
46
46
|
"@pingux/mdi-react": "^1.2.0",
|
47
47
|
"@react-aria/accordion": "~3.0.0-alpha.11",
|