@popmenu/common-ui 0.153.0 → 0.154.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 (75) hide show
  1. package/build/cjs/components/Avatar/Avatar.d.ts +1 -1
  2. package/build/cjs/components/BrowserSilhouette/BrowserSilhouette.d.ts +2 -2
  3. package/build/cjs/components/Checkbox/Checkbox.d.ts +1 -1
  4. package/build/cjs/components/Chip/Chip.d.ts +1 -1
  5. package/build/cjs/components/FollowerAuthenticationDialog/FollowerAuthenticationAltActions.d.ts +2 -1
  6. package/build/cjs/components/FollowerAuthenticationDialog/FollowerAuthenticationBody.d.ts +2 -1
  7. package/build/cjs/components/FollowerAuthenticationDialog/FollowerAuthenticationCloseButton.d.ts +2 -1
  8. package/build/cjs/components/FollowerAuthenticationDialog/FollowerAuthenticationContent.d.ts +1 -1
  9. package/build/cjs/components/FollowerAuthenticationDialog/FollowerAuthenticationDialog.d.ts +2 -1
  10. package/build/cjs/components/FollowerAuthenticationDialog/FollowerAuthenticationDialogProps.d.ts +17 -2
  11. package/build/cjs/components/FollowerAuthenticationDialog/FollowerAuthenticationFooter.d.ts +2 -1
  12. package/build/cjs/components/FollowerAuthenticationDialog/FollowerAuthenticationForm.d.ts +2 -1
  13. package/build/cjs/components/FollowerAuthenticationDialog/FollowerAuthenticationGraphic.d.ts +2 -1
  14. package/build/cjs/components/FollowerAuthenticationDialog/FollowerAuthenticationInfo.d.ts +2 -1
  15. package/build/cjs/components/FollowerAuthenticationDialog/FollowerAuthenticationLogoContainer.d.ts +2 -1
  16. package/build/cjs/components/FollowerAuthenticationDialog/FollowerAuthenticationPrivacyPolicy.d.ts +2 -0
  17. package/build/cjs/components/FollowerAuthenticationDialog/FollowerAuthenticationTitle.d.ts +2 -1
  18. package/build/cjs/components/FollowerAuthenticationDialog/FollowerAuthenticationUserForm.d.ts +2 -0
  19. package/build/cjs/components/FollowerAuthenticationDialog/FollowerAuthenticationVipBenefitRows.d.ts +2 -1
  20. package/build/cjs/components/FollowerAuthenticationDialog/phoneValidation.d.ts +2 -0
  21. package/build/cjs/components/IconButton/IconButton.d.ts +1 -1
  22. package/build/cjs/components/Paper/Paper.d.ts +1 -1
  23. package/build/cjs/components/PaperContent/PaperContent.d.ts +1 -1
  24. package/build/cjs/components/Radio/Radio.d.ts +1 -1
  25. package/build/cjs/components/Switch/Switch.d.ts +1 -1
  26. package/build/cjs/components/TabPanel/TabPanel.d.ts +2 -2
  27. package/build/cjs/components/ToggleButton/ToggleButton.d.ts +1 -1
  28. package/build/cjs/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +1 -1
  29. package/build/cjs/components/Tooltip/Tooltip.d.ts +1 -1
  30. package/build/cjs/index.js +275 -52
  31. package/build/cjs/index.js.map +1 -1
  32. package/build/esm/components/Avatar/Avatar.d.ts +1 -1
  33. package/build/esm/components/BrowserSilhouette/BrowserSilhouette.d.ts +2 -2
  34. package/build/esm/components/Checkbox/Checkbox.d.ts +1 -1
  35. package/build/esm/components/Chip/Chip.d.ts +1 -1
  36. package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationAltActions.d.ts +2 -1
  37. package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationBody.d.ts +2 -1
  38. package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationCloseButton.d.ts +2 -1
  39. package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationContent.d.ts +1 -1
  40. package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationDialog.d.ts +2 -1
  41. package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationDialogProps.d.ts +17 -2
  42. package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationFooter.d.ts +2 -1
  43. package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationForm.d.ts +2 -1
  44. package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationForm.js +28 -47
  45. package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationForm.js.map +1 -1
  46. package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationGraphic.d.ts +2 -1
  47. package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationGraphic.js +1 -1
  48. package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationGraphic.js.map +1 -1
  49. package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationInfo.d.ts +2 -1
  50. package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationInfo.js +1 -1
  51. package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationInfo.js.map +1 -1
  52. package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationLogoContainer.d.ts +2 -1
  53. package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationPrivacyPolicy.d.ts +2 -0
  54. package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationPrivacyPolicy.js +29 -0
  55. package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationPrivacyPolicy.js.map +1 -0
  56. package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationTitle.d.ts +2 -1
  57. package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationUserForm.d.ts +2 -0
  58. package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationUserForm.js +201 -0
  59. package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationUserForm.js.map +1 -0
  60. package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationVipBenefitRows.d.ts +2 -1
  61. package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationVipBenefitRows.js +1 -1
  62. package/build/esm/components/FollowerAuthenticationDialog/FollowerAuthenticationVipBenefitRows.js.map +1 -1
  63. package/build/esm/components/FollowerAuthenticationDialog/phoneValidation.d.ts +2 -0
  64. package/build/esm/components/FollowerAuthenticationDialog/phoneValidation.js +32 -0
  65. package/build/esm/components/FollowerAuthenticationDialog/phoneValidation.js.map +1 -0
  66. package/build/esm/components/IconButton/IconButton.d.ts +1 -1
  67. package/build/esm/components/Paper/Paper.d.ts +1 -1
  68. package/build/esm/components/PaperContent/PaperContent.d.ts +1 -1
  69. package/build/esm/components/Radio/Radio.d.ts +1 -1
  70. package/build/esm/components/Switch/Switch.d.ts +1 -1
  71. package/build/esm/components/TabPanel/TabPanel.d.ts +2 -2
  72. package/build/esm/components/ToggleButton/ToggleButton.d.ts +1 -1
  73. package/build/esm/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +1 -1
  74. package/build/esm/components/Tooltip/Tooltip.d.ts +1 -1
  75. package/package.json +2 -2
@@ -0,0 +1,201 @@
1
+ import React, { useRef, useState, useMemo } from 'react';
2
+ import { useFollowerAuthenticationDialogContext } from './context.js';
3
+ import { makeStyles, TextField, MenuItem, Button, Box, Typography } from '@material-ui/core';
4
+ import { Divider } from '../Divider/Divider.js';
5
+ import { formatPhoneNumber, validatePhoneNumber } from './phoneValidation.js';
6
+ import { FollowerAuthenticationPrivacyPolicy } from './FollowerAuthenticationPrivacyPolicy.js';
7
+
8
+ const getDaysInMonth = (month) => {
9
+ const m = parseInt(month, 10);
10
+ if (!m)
11
+ return 31;
12
+ // Allow 29 for Feb to support leap year birthdays/anniversaries
13
+ const days = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
14
+ return days[m - 1];
15
+ };
16
+ const useStyles = makeStyles((theme) => ({
17
+ form: {
18
+ alignItems: 'center',
19
+ display: 'flex',
20
+ flexDirection: 'column',
21
+ gridGap: 16,
22
+ width: '100%',
23
+ },
24
+ sectionLabel: {
25
+ alignSelf: 'start',
26
+ fontSize: '0.75rem',
27
+ },
28
+ divider: {
29
+ width: '100%',
30
+ },
31
+ pickerContainer: {
32
+ display: 'flex',
33
+ flexDirection: 'column',
34
+ gridGap: theme.spacing(1),
35
+ width: '100%',
36
+ },
37
+ pickerFieldsRow: {
38
+ display: 'flex',
39
+ gridGap: theme.spacing(2),
40
+ width: '100%',
41
+ },
42
+ pickerField: {
43
+ flex: 1,
44
+ },
45
+ }));
46
+ const MonthDayPicker = ({ sectionLabel, monthLabel, dayLabel, monthId, dayId, monthName, dayName, monthValue, dayValue, onMonthChange, onDayChange, required, disabled, monthOptions, }) => {
47
+ const classes = useStyles();
48
+ const dayOptions = useMemo(() => Array.from({ length: getDaysInMonth(monthValue) }, (_, i) => ({ label: String(i + 1), value: String(i + 1) })), [monthValue]);
49
+ return (React.createElement(Box, { className: classes.pickerContainer },
50
+ React.createElement(Typography, { className: classes.sectionLabel }, sectionLabel),
51
+ React.createElement(Box, { className: classes.pickerFieldsRow },
52
+ React.createElement(TextField, { disabled: disabled, select: true, label: monthLabel, id: monthId, name: monthName, value: monthValue, onChange: (e) => {
53
+ const newMonth = e.target.value;
54
+ onMonthChange(newMonth);
55
+ if (dayValue && parseInt(dayValue, 10) > getDaysInMonth(newMonth)) {
56
+ onDayChange('');
57
+ }
58
+ }, required: required || Boolean(dayValue), className: classes.pickerField }, monthOptions.map((option) => (React.createElement(MenuItem, { key: option.value, value: option.value }, option.label)))),
59
+ React.createElement(TextField, { disabled: disabled, select: true, label: dayLabel, id: dayId, name: dayName, value: dayValue, onChange: (e) => onDayChange(e.target.value), required: required || Boolean(monthValue), className: classes.pickerField }, dayOptions.map((option) => (React.createElement(MenuItem, { key: option.value, value: option.value }, option.label)))))));
60
+ };
61
+ const FollowerAuthenticationUserForm = () => {
62
+ const { state, messages, locationOptions, onActionButtonClick, loading, signUpSetting } = useFollowerAuthenticationDialogContext();
63
+ const showPhone = signUpSetting?.phone?.enabled !== false;
64
+ const phoneRequired = signUpSetting?.phone?.required ?? false;
65
+ const showBirthday = signUpSetting?.birthday?.enabled !== false;
66
+ const birthdayRequired = signUpSetting?.birthday?.required ?? false;
67
+ const showWeddingAnniversary = signUpSetting?.weddingAnniversary?.enabled !== false;
68
+ const weddingAnniversaryRequired = signUpSetting?.weddingAnniversary?.required ?? false;
69
+ const classes = useStyles();
70
+ const formRef = useRef(null);
71
+ const [showNameErrorText, setShowNameErrorText] = useState(false);
72
+ const [showEmailErrorText, setShowEmailErrorText] = useState(false);
73
+ const [showPhoneErrorText, setShowPhoneErrorText] = useState(false);
74
+ const [showLocationErrorText, setShowLocationErrorText] = useState(false);
75
+ const [nameValue, setNameValue] = useState(state.context.name || '');
76
+ const [emailValue, setEmailValue] = useState(state.context.email || '');
77
+ const [phoneValue, setPhoneValue] = useState(formatPhoneNumber(state.context.phone || ''));
78
+ const [locationValue, setLocationValue] = useState(state.context.favoriteLocationId ? String(state.context.favoriteLocationId) : '');
79
+ const [selectedBirthMonth, setSelectedBirthMonth] = useState(state.context.birthMonth ? String(state.context.birthMonth) : '');
80
+ const [selectedBirthDay, setSelectedBirthDay] = useState(state.context.birthDay ? String(state.context.birthDay) : '');
81
+ const [selectedWeddingMonth, setSelectedWeddingMonth] = useState(state.context.weddingMonth ? String(state.context.weddingMonth) : '');
82
+ const [selectedWeddingDay, setSelectedWeddingDay] = useState(state.context.weddingDay ? String(state.context.weddingDay) : '');
83
+ const checkFieldValidity = (e) => {
84
+ const fieldName = e.target.name;
85
+ const fieldValue = e.target.value;
86
+ switch (fieldName) {
87
+ case 'name': {
88
+ setNameValue(fieldValue);
89
+ setShowNameErrorText(fieldValue.length === 0);
90
+ break;
91
+ }
92
+ case 'email': {
93
+ const emailField = formRef.current?.elements.namedItem(fieldName);
94
+ const isEmailValid = emailField?.validity.valid ?? false;
95
+ setEmailValue(fieldValue);
96
+ setShowEmailErrorText(!isEmailValid && fieldValue.length > 0);
97
+ break;
98
+ }
99
+ case 'phone': {
100
+ const formatted = formatPhoneNumber(fieldValue);
101
+ setPhoneValue(formatted);
102
+ setShowPhoneErrorText(formatted.length > 0 && !validatePhoneNumber(formatted));
103
+ break;
104
+ }
105
+ case 'location': {
106
+ setLocationValue(fieldValue);
107
+ setShowLocationErrorText(!fieldValue);
108
+ break;
109
+ }
110
+ }
111
+ };
112
+ const isFormValid = useMemo(() => {
113
+ const hasValidName = Boolean(nameValue) && !showNameErrorText;
114
+ const hasValidEmail = Boolean(emailValue) && !showEmailErrorText;
115
+ const hasValidPhone = showPhone
116
+ ? state.context.phone
117
+ ? true
118
+ : phoneRequired
119
+ ? validatePhoneNumber(phoneValue)
120
+ : !phoneValue || validatePhoneNumber(phoneValue)
121
+ : true;
122
+ const hasValidLocation = locationOptions.length > 0 ? Boolean(locationValue) : true;
123
+ // A partial date (only month or only day) requires completing the pair
124
+ const hasValidBirthday = !showBirthday ||
125
+ (birthdayRequired || selectedBirthMonth || selectedBirthDay
126
+ ? Boolean(selectedBirthMonth) && Boolean(selectedBirthDay)
127
+ : true);
128
+ const hasValidWeddingAnniversary = !showWeddingAnniversary ||
129
+ (weddingAnniversaryRequired || selectedWeddingMonth || selectedWeddingDay
130
+ ? Boolean(selectedWeddingMonth) && Boolean(selectedWeddingDay)
131
+ : true);
132
+ return (hasValidName &&
133
+ hasValidEmail &&
134
+ hasValidPhone &&
135
+ hasValidLocation &&
136
+ hasValidBirthday &&
137
+ hasValidWeddingAnniversary);
138
+ }, [
139
+ nameValue,
140
+ emailValue,
141
+ phoneValue,
142
+ state.context.phone,
143
+ locationValue,
144
+ locationOptions.length,
145
+ showNameErrorText,
146
+ showEmailErrorText,
147
+ showPhone,
148
+ phoneRequired,
149
+ showBirthday,
150
+ birthdayRequired,
151
+ selectedBirthMonth,
152
+ selectedBirthDay,
153
+ showWeddingAnniversary,
154
+ weddingAnniversaryRequired,
155
+ selectedWeddingMonth,
156
+ selectedWeddingDay,
157
+ ]);
158
+ const monthOptions = useMemo(() => [
159
+ { label: messages.signUpMonthJanuary, value: '1' },
160
+ { label: messages.signUpMonthFebruary, value: '2' },
161
+ { label: messages.signUpMonthMarch, value: '3' },
162
+ { label: messages.signUpMonthApril, value: '4' },
163
+ { label: messages.signUpMonthMay, value: '5' },
164
+ { label: messages.signUpMonthJune, value: '6' },
165
+ { label: messages.signUpMonthJuly, value: '7' },
166
+ { label: messages.signUpMonthAugust, value: '8' },
167
+ { label: messages.signUpMonthSeptember, value: '9' },
168
+ { label: messages.signUpMonthOctober, value: '10' },
169
+ { label: messages.signUpMonthNovember, value: '11' },
170
+ { label: messages.signUpMonthDecember, value: '12' },
171
+ ], [messages]);
172
+ const handleSubmit = (e) => {
173
+ e.preventDefault();
174
+ const formData = new FormData(e.target);
175
+ const values = Object.fromEntries(formData.entries());
176
+ // Disabled fields are excluded from FormData — restore pre-filled values from context
177
+ if (state.context.email && !values.email)
178
+ values.email = state.context.email;
179
+ if (state.context.phone && !values.phone)
180
+ values.phone = state.context.phone;
181
+ // Strip display formatting so the submitted value is consistent with the disabled-field path
182
+ if (values.phone) {
183
+ values.phone = values.phone.replace(/[^\d+]/g, '');
184
+ }
185
+ onActionButtonClick('submit-form', values);
186
+ };
187
+ return (React.createElement("form", { ref: formRef, id: "follower-authentication-user-form", className: classes.form, onSubmit: handleSubmit, onInvalid: (e) => e.preventDefault() },
188
+ React.createElement(TextField, { disabled: loading || Boolean(state.context.email), label: messages.signUpEmailInputLabel, id: "email-input", name: "email", onChange: checkFieldValidity, error: showEmailErrorText, helperText: showEmailErrorText && messages.signUpEmailErrorText, inputProps: { type: 'email', required: true }, value: emailValue, fullWidth: true }),
189
+ React.createElement(Divider, { className: classes.divider }),
190
+ React.createElement(TextField, { disabled: loading, label: messages.signUpNameInputLabel, id: "name-input", name: "name", onChange: checkFieldValidity, error: showNameErrorText, helperText: showNameErrorText && messages.signUpNameErrorText, inputProps: { required: true }, value: nameValue, fullWidth: true }),
191
+ showPhone && (React.createElement(TextField, { disabled: loading || Boolean(state.context.phone), label: messages.signUpPhoneInputLabel, id: "phone-input", name: "phone", onChange: checkFieldValidity, error: showPhoneErrorText, helperText: showPhoneErrorText && messages.signUpPhoneErrorText, inputProps: { required: phoneRequired }, value: phoneValue, fullWidth: true })),
192
+ locationOptions.length > 0 && (React.createElement(TextField, { disabled: loading, select: true, onChange: checkFieldValidity, label: messages.signUpLocationInputLabel, error: showLocationErrorText, helperText: showLocationErrorText && messages.signUpLocationErrorText, id: "location-input", name: "location", value: locationValue, fullWidth: true }, locationOptions.map((option) => (React.createElement(MenuItem, { "data-cy": "option", key: option.value, value: option.value }, option.label))))),
193
+ (showBirthday || showWeddingAnniversary) && React.createElement(Divider, { className: classes.divider }),
194
+ showBirthday && (React.createElement(MonthDayPicker, { sectionLabel: messages.signUpBirthdaySectionLabel, monthLabel: messages.signUpMonthInputLabel, dayLabel: messages.signUpDayInputLabel, monthId: "birthday-month-input", dayId: "birthday-date-input", monthName: "birthMonth", dayName: "birthDay", monthValue: selectedBirthMonth, dayValue: selectedBirthDay, onMonthChange: setSelectedBirthMonth, onDayChange: setSelectedBirthDay, required: birthdayRequired, disabled: loading, monthOptions: monthOptions })),
195
+ showWeddingAnniversary && (React.createElement(MonthDayPicker, { sectionLabel: messages.signUpWeddingAnniversarySectionLabel, monthLabel: messages.signUpMonthInputLabel, dayLabel: messages.signUpDayInputLabel, monthId: "wedding-month-input", dayId: "wedding-date-input", monthName: "weddingMonth", dayName: "weddingDay", monthValue: selectedWeddingMonth, dayValue: selectedWeddingDay, onMonthChange: setSelectedWeddingMonth, onDayChange: setSelectedWeddingDay, required: weddingAnniversaryRequired, disabled: loading, monthOptions: monthOptions })),
196
+ React.createElement(FollowerAuthenticationPrivacyPolicy, null),
197
+ React.createElement(Button, { disabled: loading || !isFormValid, type: "submit" }, messages.completeProfileCtaButtonLabel)));
198
+ };
199
+
200
+ export { FollowerAuthenticationUserForm };
201
+ //# sourceMappingURL=FollowerAuthenticationUserForm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FollowerAuthenticationUserForm.js","sources":["../../../../src/components/FollowerAuthenticationDialog/FollowerAuthenticationUserForm.tsx"],"sourcesContent":["import React, { ChangeEventHandler, ReactNode, useMemo, useRef, useState } from 'react'\nimport { useFollowerAuthenticationDialogContext } from './context'\nimport { Box, Button, makeStyles, MenuItem, TextField, Typography } from '@material-ui/core'\nimport { Divider } from '../Divider'\nimport { validatePhoneNumber, formatPhoneNumber } from './phoneValidation'\nimport { FollowerAuthenticationPrivacyPolicy } from './FollowerAuthenticationPrivacyPolicy'\n\nconst getDaysInMonth = (month: string): number => {\n const m = parseInt(month, 10)\n if (!m) return 31\n // Allow 29 for Feb to support leap year birthdays/anniversaries\n const days = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]\n return days[m - 1]\n}\n\nconst useStyles = makeStyles((theme) => ({\n form: {\n alignItems: 'center',\n display: 'flex',\n flexDirection: 'column',\n gridGap: 16,\n width: '100%',\n },\n sectionLabel: {\n alignSelf: 'start',\n fontSize: '0.75rem',\n },\n divider: {\n width: '100%',\n },\n pickerContainer: {\n display: 'flex',\n flexDirection: 'column',\n gridGap: theme.spacing(1),\n width: '100%',\n },\n pickerFieldsRow: {\n display: 'flex',\n gridGap: theme.spacing(2),\n width: '100%',\n },\n pickerField: {\n flex: 1,\n },\n}))\n\ntype MonthDayPickerProps = {\n sectionLabel: ReactNode\n monthLabel: ReactNode\n dayLabel: ReactNode\n monthId: string\n dayId: string\n monthName: string\n dayName: string\n monthValue: string\n dayValue: string\n onMonthChange: (value: string) => void\n onDayChange: (value: string) => void\n required: boolean\n disabled: boolean\n monthOptions: { label: ReactNode; value: string }[]\n}\n\nconst MonthDayPicker = ({\n sectionLabel,\n monthLabel,\n dayLabel,\n monthId,\n dayId,\n monthName,\n dayName,\n monthValue,\n dayValue,\n onMonthChange,\n onDayChange,\n required,\n disabled,\n monthOptions,\n}: MonthDayPickerProps) => {\n const classes = useStyles()\n const dayOptions = useMemo(\n () =>\n Array.from({ length: getDaysInMonth(monthValue) }, (_, i) => ({ label: String(i + 1), value: String(i + 1) })),\n [monthValue],\n )\n\n return (\n <Box className={classes.pickerContainer}>\n <Typography className={classes.sectionLabel}>{sectionLabel}</Typography>\n <Box className={classes.pickerFieldsRow}>\n <TextField\n disabled={disabled}\n select\n label={monthLabel}\n id={monthId}\n name={monthName}\n value={monthValue}\n onChange={(e) => {\n const newMonth = e.target.value\n onMonthChange(newMonth)\n if (dayValue && parseInt(dayValue, 10) > getDaysInMonth(newMonth)) {\n onDayChange('')\n }\n }}\n required={required || Boolean(dayValue)}\n className={classes.pickerField}\n >\n {monthOptions.map((option) => (\n <MenuItem key={option.value} value={option.value}>\n {option.label}\n </MenuItem>\n ))}\n </TextField>\n <TextField\n disabled={disabled}\n select\n label={dayLabel}\n id={dayId}\n name={dayName}\n value={dayValue}\n onChange={(e) => onDayChange(e.target.value)}\n required={required || Boolean(monthValue)}\n className={classes.pickerField}\n >\n {dayOptions.map((option) => (\n <MenuItem key={option.value} value={option.value}>\n {option.label}\n </MenuItem>\n ))}\n </TextField>\n </Box>\n </Box>\n )\n}\n\nexport const FollowerAuthenticationUserForm = () => {\n const { state, messages, locationOptions, onActionButtonClick, loading, signUpSetting } =\n useFollowerAuthenticationDialogContext()\n\n const showPhone = signUpSetting?.phone?.enabled !== false\n const phoneRequired = signUpSetting?.phone?.required ?? false\n const showBirthday = signUpSetting?.birthday?.enabled !== false\n const birthdayRequired = signUpSetting?.birthday?.required ?? false\n const showWeddingAnniversary = signUpSetting?.weddingAnniversary?.enabled !== false\n const weddingAnniversaryRequired = signUpSetting?.weddingAnniversary?.required ?? false\n\n const classes = useStyles()\n const formRef = useRef<HTMLFormElement>(null)\n\n const [showNameErrorText, setShowNameErrorText] = useState(false)\n const [showEmailErrorText, setShowEmailErrorText] = useState(false)\n const [showPhoneErrorText, setShowPhoneErrorText] = useState(false)\n const [showLocationErrorText, setShowLocationErrorText] = useState(false)\n\n const [nameValue, setNameValue] = useState(state.context.name || '')\n const [emailValue, setEmailValue] = useState(state.context.email || '')\n const [phoneValue, setPhoneValue] = useState(formatPhoneNumber(state.context.phone || ''))\n const [locationValue, setLocationValue] = useState(\n state.context.favoriteLocationId ? String(state.context.favoriteLocationId) : '',\n )\n const [selectedBirthMonth, setSelectedBirthMonth] = useState(\n state.context.birthMonth ? String(state.context.birthMonth) : '',\n )\n const [selectedBirthDay, setSelectedBirthDay] = useState(state.context.birthDay ? String(state.context.birthDay) : '')\n const [selectedWeddingMonth, setSelectedWeddingMonth] = useState(\n state.context.weddingMonth ? String(state.context.weddingMonth) : '',\n )\n const [selectedWeddingDay, setSelectedWeddingDay] = useState(\n state.context.weddingDay ? String(state.context.weddingDay) : '',\n )\n\n const checkFieldValidity: ChangeEventHandler<HTMLInputElement> = (e) => {\n const fieldName = e.target.name\n const fieldValue = e.target.value\n\n switch (fieldName) {\n case 'name': {\n setNameValue(fieldValue)\n setShowNameErrorText(fieldValue.length === 0)\n break\n }\n case 'email': {\n const emailField = formRef.current?.elements.namedItem(fieldName) as HTMLInputElement\n const isEmailValid = emailField?.validity.valid ?? false\n setEmailValue(fieldValue)\n setShowEmailErrorText(!isEmailValid && fieldValue.length > 0)\n break\n }\n case 'phone': {\n const formatted = formatPhoneNumber(fieldValue)\n setPhoneValue(formatted)\n setShowPhoneErrorText(formatted.length > 0 && !validatePhoneNumber(formatted))\n break\n }\n case 'location': {\n setLocationValue(fieldValue)\n setShowLocationErrorText(!fieldValue)\n break\n }\n default:\n break\n }\n }\n\n const isFormValid = useMemo(() => {\n const hasValidName = Boolean(nameValue) && !showNameErrorText\n const hasValidEmail = Boolean(emailValue) && !showEmailErrorText\n const hasValidPhone = showPhone\n ? state.context.phone\n ? true\n : phoneRequired\n ? validatePhoneNumber(phoneValue)\n : !phoneValue || validatePhoneNumber(phoneValue)\n : true\n const hasValidLocation = locationOptions.length > 0 ? Boolean(locationValue) : true\n // A partial date (only month or only day) requires completing the pair\n const hasValidBirthday =\n !showBirthday ||\n (birthdayRequired || selectedBirthMonth || selectedBirthDay\n ? Boolean(selectedBirthMonth) && Boolean(selectedBirthDay)\n : true)\n const hasValidWeddingAnniversary =\n !showWeddingAnniversary ||\n (weddingAnniversaryRequired || selectedWeddingMonth || selectedWeddingDay\n ? Boolean(selectedWeddingMonth) && Boolean(selectedWeddingDay)\n : true)\n return (\n hasValidName &&\n hasValidEmail &&\n hasValidPhone &&\n hasValidLocation &&\n hasValidBirthday &&\n hasValidWeddingAnniversary\n )\n }, [\n nameValue,\n emailValue,\n phoneValue,\n state.context.phone,\n locationValue,\n locationOptions.length,\n showNameErrorText,\n showEmailErrorText,\n showPhone,\n phoneRequired,\n showBirthday,\n birthdayRequired,\n selectedBirthMonth,\n selectedBirthDay,\n showWeddingAnniversary,\n weddingAnniversaryRequired,\n selectedWeddingMonth,\n selectedWeddingDay,\n ])\n\n const monthOptions = useMemo(\n () => [\n { label: messages.signUpMonthJanuary, value: '1' },\n { label: messages.signUpMonthFebruary, value: '2' },\n { label: messages.signUpMonthMarch, value: '3' },\n { label: messages.signUpMonthApril, value: '4' },\n { label: messages.signUpMonthMay, value: '5' },\n { label: messages.signUpMonthJune, value: '6' },\n { label: messages.signUpMonthJuly, value: '7' },\n { label: messages.signUpMonthAugust, value: '8' },\n { label: messages.signUpMonthSeptember, value: '9' },\n { label: messages.signUpMonthOctober, value: '10' },\n { label: messages.signUpMonthNovember, value: '11' },\n { label: messages.signUpMonthDecember, value: '12' },\n ],\n [messages],\n )\n\n const handleSubmit = (e: React.FormEvent<HTMLFormElement>) => {\n e.preventDefault()\n const formData = new FormData(e.target as HTMLFormElement)\n const values = Object.fromEntries(formData.entries()) as Record<string, string>\n // Disabled fields are excluded from FormData — restore pre-filled values from context\n if (state.context.email && !values.email) values.email = state.context.email\n if (state.context.phone && !values.phone) values.phone = state.context.phone\n // Strip display formatting so the submitted value is consistent with the disabled-field path\n if (values.phone) {\n values.phone = values.phone.replace(/[^\\d+]/g, '')\n }\n onActionButtonClick('submit-form', values)\n }\n\n return (\n <form\n ref={formRef}\n id=\"follower-authentication-user-form\"\n className={classes.form}\n onSubmit={handleSubmit}\n onInvalid={(e) => e.preventDefault()}\n >\n <TextField\n disabled={loading || Boolean(state.context.email)}\n label={messages.signUpEmailInputLabel}\n id=\"email-input\"\n name=\"email\"\n onChange={checkFieldValidity}\n error={showEmailErrorText}\n helperText={showEmailErrorText && messages.signUpEmailErrorText}\n inputProps={{ type: 'email', required: true }}\n value={emailValue}\n fullWidth\n />\n <Divider className={classes.divider} />\n <TextField\n disabled={loading}\n label={messages.signUpNameInputLabel}\n id=\"name-input\"\n name=\"name\"\n onChange={checkFieldValidity}\n error={showNameErrorText}\n helperText={showNameErrorText && messages.signUpNameErrorText}\n inputProps={{ required: true }}\n value={nameValue}\n fullWidth\n />\n {showPhone && (\n <TextField\n disabled={loading || Boolean(state.context.phone)}\n label={messages.signUpPhoneInputLabel}\n id=\"phone-input\"\n name=\"phone\"\n onChange={checkFieldValidity}\n error={showPhoneErrorText}\n helperText={showPhoneErrorText && messages.signUpPhoneErrorText}\n inputProps={{ required: phoneRequired }}\n value={phoneValue}\n fullWidth\n />\n )}\n {locationOptions.length > 0 && (\n <TextField\n disabled={loading}\n select\n onChange={checkFieldValidity}\n label={messages.signUpLocationInputLabel}\n error={showLocationErrorText}\n helperText={showLocationErrorText && messages.signUpLocationErrorText}\n id=\"location-input\"\n name=\"location\"\n value={locationValue}\n fullWidth\n >\n {locationOptions.map((option) => (\n <MenuItem data-cy=\"option\" key={option.value} value={option.value}>\n {option.label}\n </MenuItem>\n ))}\n </TextField>\n )}\n {(showBirthday || showWeddingAnniversary) && <Divider className={classes.divider} />}\n {showBirthday && (\n <MonthDayPicker\n sectionLabel={messages.signUpBirthdaySectionLabel}\n monthLabel={messages.signUpMonthInputLabel}\n dayLabel={messages.signUpDayInputLabel}\n monthId=\"birthday-month-input\"\n dayId=\"birthday-date-input\"\n monthName=\"birthMonth\"\n dayName=\"birthDay\"\n monthValue={selectedBirthMonth}\n dayValue={selectedBirthDay}\n onMonthChange={setSelectedBirthMonth}\n onDayChange={setSelectedBirthDay}\n required={birthdayRequired}\n disabled={loading}\n monthOptions={monthOptions}\n />\n )}\n {showWeddingAnniversary && (\n <MonthDayPicker\n sectionLabel={messages.signUpWeddingAnniversarySectionLabel}\n monthLabel={messages.signUpMonthInputLabel}\n dayLabel={messages.signUpDayInputLabel}\n monthId=\"wedding-month-input\"\n dayId=\"wedding-date-input\"\n monthName=\"weddingMonth\"\n dayName=\"weddingDay\"\n monthValue={selectedWeddingMonth}\n dayValue={selectedWeddingDay}\n onMonthChange={setSelectedWeddingMonth}\n onDayChange={setSelectedWeddingDay}\n required={weddingAnniversaryRequired}\n disabled={loading}\n monthOptions={monthOptions}\n />\n )}\n <FollowerAuthenticationPrivacyPolicy />\n <Button disabled={loading || !isFormValid} type=\"submit\">\n {messages.completeProfileCtaButtonLabel}\n </Button>\n </form>\n )\n}\n"],"names":[],"mappings":";;;;;;;AAOA,MAAM,cAAc,GAAG,CAAC,KAAa,KAAY;IAC/C,MAAM,CAAC,GAAG,QAAQ,CAAC,KAAK,EAAE,EAAE,CAAC;AAC7B,IAAA,IAAI,CAAC,CAAC;AAAE,QAAA,OAAO,EAAE;;IAEjB,MAAM,IAAI,GAAG,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC;AAC7D,IAAA,OAAO,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;AACpB,CAAC;AAED,MAAM,SAAS,GAAG,UAAU,CAAC,CAAC,KAAK,MAAM;AACvC,IAAA,IAAI,EAAE;AACJ,QAAA,UAAU,EAAE,QAAQ;AACpB,QAAA,OAAO,EAAE,MAAM;AACf,QAAA,aAAa,EAAE,QAAQ;AACvB,QAAA,OAAO,EAAE,EAAE;AACX,QAAA,KAAK,EAAE,MAAM;AACd,KAAA;AACD,IAAA,YAAY,EAAE;AACZ,QAAA,SAAS,EAAE,OAAO;AAClB,QAAA,QAAQ,EAAE,SAAS;AACpB,KAAA;AACD,IAAA,OAAO,EAAE;AACP,QAAA,KAAK,EAAE,MAAM;AACd,KAAA;AACD,IAAA,eAAe,EAAE;AACf,QAAA,OAAO,EAAE,MAAM;AACf,QAAA,aAAa,EAAE,QAAQ;AACvB,QAAA,OAAO,EAAE,KAAK,CAAC,OAAO,CA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YAAY,EACtB,OAAO,EAAC,UAAU,EAClB,UAAU,EAAE,kBAAkB,EAC9B,QAAQ,EAAE,gBAAgB,EAC1B,aAAa,EAAE,qBAAqB,EACpC,WAAW,EAAE,mBAAmB,EAChC,QAAQ,EAAE,gBAAgB,EAC1B,QAAQ,EAAE,OAAO,EACjB,YAAY,EAAE,YAAY,GAC1B,CACH;AACA,QAAA,sBAAsB,KACrB,KAAC,CAAA,aAAA,CAAA,cAAc,EACb,EAAA,YAAY,EAAE,QAAQ,CAAC,oCAAoC,EAC3D,UAAU,EAAE,QAAQ,CAAC,qBAAqB,EAC1C,QAAQ,EAAE,QAAQ,CAAC,mBAAmB,EACtC,OAAO,EAAC,qBAAqB,EAC7B,KAAK,EAAC,oBAAoB,EAC1B,SAAS,EAAC,cAAc,EACxB,OAAO,EAAC,YAAY,EACpB,UAAU,EAAE,oBAAoB,EAChC,QAAQ,EAAE,kBAAkB,EAC5B,aAAa,EAAE,uBAAuB,EACtC,WAAW,EAAE,qBAAqB,EAClC,QAAQ,EAAE,0BAA0B,EACpC,QAAQ,EAAE,OAAO,EACjB,YAAY,EAAE,YAAY,GAC1B,CACH;AACD,QAAA,KAAA,CAAA,aAAA,CAAC,mCAAmC,EAAG,IAAA,CAAA;AACvC,QAAA,KAAA,CAAA,aAAA,CAAC,MAAM,EAAC,EAAA,QAAQ,EAAE,OAAO,IAAI,CAAC,WAAW,EAAE,IAAI,EAAC,QAAQ,IACrD,QAAQ,CAAC,6BAA6B,CAChC,CACJ;AAEX;;;;"}
@@ -1 +1,2 @@
1
- export declare const FollowerAuthenticationVipBenefitRows: () => JSX.Element | null;
1
+ import React from 'react';
2
+ export declare const FollowerAuthenticationVipBenefitRows: () => React.JSX.Element | null;
@@ -21,7 +21,7 @@ const useStyles = makeStyles((theme) => ({
21
21
  const FollowerAuthenticationVipBenefitRows = () => {
22
22
  const classes = useStyles();
23
23
  const { vipBenefitRows, showV2, state } = useFollowerAuthenticationDialogContext();
24
- const isInitialOrSignUpState = state.value === 'initial' || state.value === 'signUp';
24
+ const isInitialOrSignUpState = state.value === 'initial' || state.value === 'signUp' || state.value === 'completeProfile';
25
25
  if (!showV2 || !vipBenefitRows || !isInitialOrSignUpState)
26
26
  return null;
27
27
  return (React.createElement(Box, { className: classes.main }, vipBenefitRows.map((row, index) => (React.createElement(Box, { key: index, className: classes.vipBenefitRows },
@@ -1 +1 @@
1
- {"version":3,"file":"FollowerAuthenticationVipBenefitRows.js","sources":["../../../../src/components/FollowerAuthenticationDialog/FollowerAuthenticationVipBenefitRows.tsx"],"sourcesContent":["import React from 'react'\nimport { useFollowerAuthenticationDialogContext } from './context'\nimport { Box, makeStyles } from '@material-ui/core'\nimport { Icon } from '../Icon'\nimport { Typography } from '../Typography'\n\nconst useStyles = makeStyles((theme) => ({\n main: {\n display: 'flex',\n flexDirection: 'column',\n gridGap: theme.spacing(1.5),\n width: '100%',\n },\n vipBenefitRows: {\n display: 'flex',\n alignItems: 'center',\n flexDirection: 'row',\n gridGap: theme.spacing(2),\n },\n}))\n\nexport const FollowerAuthenticationVipBenefitRows = () => {\n const classes = useStyles()\n const { vipBenefitRows, showV2, state } = useFollowerAuthenticationDialogContext()\n const isInitialOrSignUpState = state.value === 'initial' || state.value === 'signUp'\n\n if (!showV2 || !vipBenefitRows || !isInitialOrSignUpState) return null\n\n return (\n <Box className={classes.main}>\n {vipBenefitRows.map((row, index) => (\n <Box key={index} className={classes.vipBenefitRows}>\n <Icon icon={row.icon} size=\"large\" aria-hidden=\"true\" />\n <Typography>{row.text}</Typography>\n </Box>\n ))}\n </Box>\n )\n}\n"],"names":[],"mappings":";;;;;;AAMA,MAAM,SAAS,GAAG,UAAU,CAAC,CAAC,KAAK,MAAM;AACvC,IAAA,IAAI,EAAE;AACJ,QAAA,OAAO,EAAE,MAAM;AACf,QAAA,aAAa,EAAE,QAAQ;AACvB,QAAA,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC;AAC3B,QAAA,KAAK,EAAE,MAAM;AACd,KAAA;AACD,IAAA,cAAc,EAAE;AACd,QAAA,OAAO,EAAE,MAAM;AACf,QAAA,UAAU,EAAE,QAAQ;AACpB,QAAA,aAAa,EAAE,KAAK;AACpB,QAAA,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;AAC1B,KAAA;AACF,CAAA,CAAC,CAAC;AAEI,MAAM,oCAAoC,GAAG,MAAK;AACvD,IAAA,MAAM,OAAO,GAAG,SAAS,EAAE;IAC3B,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,sCAAsC,EAAE;AAClF,IAAA,MAAM,sBAAsB,GAAG,KAAK,CAAC,KAAK,KAAK,SAAS,IAAI,KAAK,CAAC,KAAK,KAAK,QAAQ;AAEpF,IAAA,IAAI,CAAC,MAAM,IAAI,CAAC,cAAc,IAAI,CAAC,sBAAsB;AAAE,QAAA,OAAO,IAAI;AAEtE,IAAA,QACE,KAAA,CAAA,aAAA,CAAC,GAAG,EAAA,EAAC,SAAS,EAAE,OAAO,CAAC,IAAI,EACzB,EAAA,cAAc,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,KAAK,MAC7B,oBAAC,GAAG,EAAA,EAAC,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,CAAC,cAAc,EAAA;AAChD,QAAA,KAAA,CAAA,aAAA,CAAC,IAAI,EAAA,EAAC,IAAI,EAAE,GAAG,CAAC,IAAI,EAAE,IAAI,EAAC,OAAO,EAAA,aAAA,EAAa,MAAM,EAAG,CAAA;QACxD,KAAC,CAAA,aAAA,CAAA,UAAU,EAAE,IAAA,EAAA,GAAG,CAAC,IAAI,CAAc,CAC/B,CACP,CAAC,CACE;AAEV;;;;"}
1
+ {"version":3,"file":"FollowerAuthenticationVipBenefitRows.js","sources":["../../../../src/components/FollowerAuthenticationDialog/FollowerAuthenticationVipBenefitRows.tsx"],"sourcesContent":["import React from 'react'\nimport { useFollowerAuthenticationDialogContext } from './context'\nimport { Box, makeStyles } from '@material-ui/core'\nimport { Icon } from '../Icon'\nimport { Typography } from '../Typography'\n\nconst useStyles = makeStyles((theme) => ({\n main: {\n display: 'flex',\n flexDirection: 'column',\n gridGap: theme.spacing(1.5),\n width: '100%',\n },\n vipBenefitRows: {\n display: 'flex',\n alignItems: 'center',\n flexDirection: 'row',\n gridGap: theme.spacing(2),\n },\n}))\n\nexport const FollowerAuthenticationVipBenefitRows = () => {\n const classes = useStyles()\n const { vipBenefitRows, showV2, state } = useFollowerAuthenticationDialogContext()\n const isInitialOrSignUpState =\n state.value === 'initial' || state.value === 'signUp' || state.value === 'completeProfile'\n\n if (!showV2 || !vipBenefitRows || !isInitialOrSignUpState) return null\n\n return (\n <Box className={classes.main}>\n {vipBenefitRows.map((row, index) => (\n <Box key={index} className={classes.vipBenefitRows}>\n <Icon icon={row.icon} size=\"large\" aria-hidden=\"true\" />\n <Typography>{row.text}</Typography>\n </Box>\n ))}\n </Box>\n )\n}\n"],"names":[],"mappings":";;;;;;AAMA,MAAM,SAAS,GAAG,UAAU,CAAC,CAAC,KAAK,MAAM;AACvC,IAAA,IAAI,EAAE;AACJ,QAAA,OAAO,EAAE,MAAM;AACf,QAAA,aAAa,EAAE,QAAQ;AACvB,QAAA,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC;AAC3B,QAAA,KAAK,EAAE,MAAM;AACd,KAAA;AACD,IAAA,cAAc,EAAE;AACd,QAAA,OAAO,EAAE,MAAM;AACf,QAAA,UAAU,EAAE,QAAQ;AACpB,QAAA,aAAa,EAAE,KAAK;AACpB,QAAA,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;AAC1B,KAAA;AACF,CAAA,CAAC,CAAC;AAEI,MAAM,oCAAoC,GAAG,MAAK;AACvD,IAAA,MAAM,OAAO,GAAG,SAAS,EAAE;IAC3B,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,sCAAsC,EAAE;AAClF,IAAA,MAAM,sBAAsB,GAC1B,KAAK,CAAC,KAAK,KAAK,SAAS,IAAI,KAAK,CAAC,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,KAAK,KAAK,iBAAiB;AAE5F,IAAA,IAAI,CAAC,MAAM,IAAI,CAAC,cAAc,IAAI,CAAC,sBAAsB;AAAE,QAAA,OAAO,IAAI;AAEtE,IAAA,QACE,KAAA,CAAA,aAAA,CAAC,GAAG,EAAA,EAAC,SAAS,EAAE,OAAO,CAAC,IAAI,EACzB,EAAA,cAAc,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,KAAK,MAC7B,oBAAC,GAAG,EAAA,EAAC,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,CAAC,cAAc,EAAA;AAChD,QAAA,KAAA,CAAA,aAAA,CAAC,IAAI,EAAA,EAAC,IAAI,EAAE,GAAG,CAAC,IAAI,EAAE,IAAI,EAAC,OAAO,EAAA,aAAA,EAAa,MAAM,EAAG,CAAA;QACxD,KAAC,CAAA,aAAA,CAAA,UAAU,EAAE,IAAA,EAAA,GAAG,CAAC,IAAI,CAAc,CAC/B,CACP,CAAC,CACE;AAEV;;;;"}
@@ -0,0 +1,2 @@
1
+ export declare const validatePhoneNumber: (phone: string) => boolean;
2
+ export declare const formatPhoneNumber: (value: string) => string;
@@ -0,0 +1,32 @@
1
+ const northAmericanPhoneRegex = /^(\+?1[\s.-]?)?(\([2-9]\d{2}\)|[2-9]\d{2})[-\s.]?[2-9]\d{2}[-\s.]?\d{4}$/;
2
+ const ukPhoneRegex = /^((\+?44\s?|0044\s?)(\s?\d{3,5}|\(\d{3,5}\))(\s?\d{3,4})(\s?\d{3,4})$|^07\d{3}\s?\d{6}$)/;
3
+ const validatePhoneNumber = (phone) => {
4
+ if (!phone)
5
+ return false;
6
+ return northAmericanPhoneRegex.test(phone) || ukPhoneRegex.test(phone);
7
+ };
8
+ const formatPatterns = [
9
+ { pattern: /^(1)([2-9]\d{2})(\d{3})(\d{4})$/, format: '+{1} ({2}) {3}-{4}', international: true },
10
+ { pattern: /^([2-9]\d{2})(\d{3})(\d{4})$/, format: '({1}) {2}-{3}', international: false },
11
+ { pattern: /^(44)(\d{4})(\d{6})$/, format: '+{1} {2} {3}', international: true },
12
+ { pattern: /^(07\d{3})(\d{6})$/, format: '{1} {2}', international: false },
13
+ ];
14
+ const formatPhoneNumber = (value) => {
15
+ if (!value)
16
+ return '';
17
+ const isInternational = value.startsWith('+');
18
+ const digits = value.replace(/\D/g, '');
19
+ if (!digits)
20
+ return isInternational ? '+' : '';
21
+ for (const { pattern, format, international } of formatPatterns) {
22
+ if (isInternational && !international)
23
+ continue;
24
+ const m = digits.match(pattern);
25
+ if (m)
26
+ return m.slice(1).reduce((result, match, i) => result.replace(`{${i + 1}}`, match), format);
27
+ }
28
+ return isInternational ? `+${digits}` : digits;
29
+ };
30
+
31
+ export { formatPhoneNumber, validatePhoneNumber };
32
+ //# sourceMappingURL=phoneValidation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"phoneValidation.js","sources":["../../../../src/components/FollowerAuthenticationDialog/phoneValidation.ts"],"sourcesContent":["const northAmericanPhoneRegex = /^(\\+?1[\\s.-]?)?(\\([2-9]\\d{2}\\)|[2-9]\\d{2})[-\\s.]?[2-9]\\d{2}[-\\s.]?\\d{4}$/\nconst ukPhoneRegex = /^((\\+?44\\s?|0044\\s?)(\\s?\\d{3,5}|\\(\\d{3,5}\\))(\\s?\\d{3,4})(\\s?\\d{3,4})$|^07\\d{3}\\s?\\d{6}$)/\n\nexport const validatePhoneNumber = (phone: string): boolean => {\n if (!phone) return false\n return northAmericanPhoneRegex.test(phone) || ukPhoneRegex.test(phone)\n}\n\nconst formatPatterns = [\n { pattern: /^(1)([2-9]\\d{2})(\\d{3})(\\d{4})$/, format: '+{1} ({2}) {3}-{4}', international: true },\n { pattern: /^([2-9]\\d{2})(\\d{3})(\\d{4})$/, format: '({1}) {2}-{3}', international: false },\n { pattern: /^(44)(\\d{4})(\\d{6})$/, format: '+{1} {2} {3}', international: true },\n { pattern: /^(07\\d{3})(\\d{6})$/, format: '{1} {2}', international: false },\n]\n\nexport const formatPhoneNumber = (value: string): string => {\n if (!value) return ''\n const isInternational = value.startsWith('+')\n const digits = value.replace(/\\D/g, '')\n if (!digits) return isInternational ? '+' : ''\n for (const { pattern, format, international } of formatPatterns) {\n if (isInternational && !international) continue\n const m = digits.match(pattern)\n if (m) return m.slice(1).reduce((result, match, i) => result.replace(`{${i + 1}}`, match), format)\n }\n return isInternational ? `+${digits}` : digits\n}\n"],"names":[],"mappings":"AAAA,MAAM,uBAAuB,GAAG,0EAA0E;AAC1G,MAAM,YAAY,GAAG,0FAA0F;AAElG,MAAA,mBAAmB,GAAG,CAAC,KAAa,KAAa;AAC5D,IAAA,IAAI,CAAC,KAAK;AAAE,QAAA,OAAO,KAAK;AACxB,IAAA,OAAO,uBAAuB,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC;AACxE;AAEA,MAAM,cAAc,GAAG;IACrB,EAAE,OAAO,EAAE,iCAAiC,EAAE,MAAM,EAAE,oBAAoB,EAAE,aAAa,EAAE,IAAI,EAAE;IACjG,EAAE,OAAO,EAAE,8BAA8B,EAAE,MAAM,EAAE,eAAe,EAAE,aAAa,EAAE,KAAK,EAAE;IAC1F,EAAE,OAAO,EAAE,sBAAsB,EAAE,MAAM,EAAE,cAAc,EAAE,aAAa,EAAE,IAAI,EAAE;IAChF,EAAE,OAAO,EAAE,oBAAoB,EAAE,MAAM,EAAE,SAAS,EAAE,aAAa,EAAE,KAAK,EAAE;CAC3E;AAEY,MAAA,iBAAiB,GAAG,CAAC,KAAa,KAAY;AACzD,IAAA,IAAI,CAAC,KAAK;AAAE,QAAA,OAAO,EAAE;IACrB,MAAM,eAAe,GAAG,KAAK,CAAC,UAAU,CAAC,GAAG,CAAC;IAC7C,MAAM,MAAM,GAAG,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC;AACvC,IAAA,IAAI,CAAC,MAAM;QAAE,OAAO,eAAe,GAAG,GAAG,GAAG,EAAE;IAC9C,KAAK,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,IAAI,cAAc,EAAE;QAC/D,IAAI,eAAe,IAAI,CAAC,aAAa;YAAE;QACvC,MAAM,CAAC,GAAG,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC;AAC/B,QAAA,IAAI,CAAC;AAAE,YAAA,OAAO,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,CAAC,KAAK,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA,CAAA,CAAG,EAAE,KAAK,CAAC,EAAE,MAAM,CAAC;;IAEpG,OAAO,eAAe,GAAG,CAAA,CAAA,EAAI,MAAM,CAAA,CAAE,GAAG,MAAM;AAChD;;;;"}
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
2
  import { IconButtonProps } from './IconButtonProps';
3
- export declare const IconButton: React.ForwardRefExoticComponent<Pick<IconButtonProps, "color" | "id" | "lang" | "name" | "type" | "role" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "size" | "translate" | "hidden" | "disabled" | "form" | "slot" | "title" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "placeholder" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "value" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "action" | "disableFocusRipple" | "buttonRef" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "onFocusVisible" | "TouchRippleProps" | "edge" | keyof import("@material-ui/core/OverridableComponent").CommonProps<import("@material-ui/core").IconButtonTypeMap<{}, "button">>> & React.RefAttributes<HTMLButtonElement>>;
3
+ export declare const IconButton: React.ForwardRefExoticComponent<Omit<IconButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
@@ -3,4 +3,4 @@ import { PaperProps as MuiPaperProps } from '@material-ui/core';
3
3
  export interface PaperProps extends MuiPaperProps {
4
4
  legacyStyles?: boolean;
5
5
  }
6
- export declare const Paper: React.ForwardRefExoticComponent<Pick<PaperProps, "className" | "color" | "id" | "lang" | "style" | "role" | "tabIndex" | "elevation" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "translate" | "hidden" | "square" | "variant" | "slot" | "title" | "classes" | "innerRef" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "placeholder" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "component" | "legacyStyles"> & React.RefAttributes<HTMLDivElement>>;
6
+ export declare const Paper: React.ForwardRefExoticComponent<Omit<PaperProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  export declare const PaperContent: (props: {
3
3
  children: React.ReactNode;
4
- }) => JSX.Element;
4
+ }) => React.JSX.Element;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
2
  import { RadioProps } from './RadioProps';
3
- export declare const Radio: React.ForwardRefExoticComponent<Pick<RadioProps, "className" | "color" | "id" | "lang" | "name" | "style" | "role" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "icon" | "size" | "translate" | "hidden" | "disabled" | "form" | "label" | "slot" | "title" | "classes" | "innerRef" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "placeholder" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "value" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "readOnly" | "required" | "checked" | "action" | "disableFocusRipple" | "buttonRef" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "onFocusVisible" | "TouchRippleProps" | "checkedIcon" | "edge" | "inputProps" | "inputRef" | "LabelProps"> & React.RefAttributes<HTMLInputElement>>;
3
+ export declare const Radio: React.ForwardRefExoticComponent<Omit<RadioProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
2
  import { SwitchProps } from './SwitchProps';
3
- export declare const Switch: React.ForwardRefExoticComponent<Pick<SwitchProps, "className" | "color" | "id" | "lang" | "name" | "style" | "type" | "role" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "icon" | "size" | "translate" | "hidden" | "disabled" | "form" | "label" | "slot" | "title" | "classes" | "innerRef" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "placeholder" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "value" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "readOnly" | "required" | "checked" | "action" | "disableFocusRipple" | "buttonRef" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "onFocusVisible" | "TouchRippleProps" | "checkedIcon" | "edge" | "inputProps" | "inputRef" | "LabelProps"> & React.RefAttributes<HTMLInputElement>>;
3
+ export declare const Switch: React.ForwardRefExoticComponent<Omit<SwitchProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
@@ -1,3 +1,3 @@
1
- import { PropsWithChildren } from 'react';
1
+ import React, { PropsWithChildren } from 'react';
2
2
  import { TabPanelProps } from './TabPanelProps';
3
- export declare const TabPanel: (props: PropsWithChildren<TabPanelProps>) => JSX.Element | null;
3
+ export declare const TabPanel: (props: PropsWithChildren<TabPanelProps>) => React.JSX.Element | null;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
2
  import { ToggleButtonProps } from './ToggleButtonProps';
3
- export declare const ToggleButton: React.ForwardRefExoticComponent<Pick<ToggleButtonProps, "className" | "color" | "id" | "lang" | "name" | "style" | "type" | "role" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "size" | "translate" | "hidden" | "disabled" | "form" | "slot" | "title" | "classes" | "innerRef" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "placeholder" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "value" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "action" | "selected" | "disableFocusRipple" | "buttonRef" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "onFocusVisible" | "TouchRippleProps"> & React.RefAttributes<HTMLButtonElement>>;
3
+ export declare const ToggleButton: React.ForwardRefExoticComponent<Omit<ToggleButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
2
  import { ToggleButtonGroupProps } from './ToggleButtonGroupProps';
3
- export declare const ToggleButtonGroup: React.ForwardRefExoticComponent<Pick<ToggleButtonGroupProps, "className" | "color" | "id" | "lang" | "style" | "role" | "tabIndex" | "orientation" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "size" | "translate" | "hidden" | "slot" | "title" | "classes" | "innerRef" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "placeholder" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "value" | "exclusive"> & React.RefAttributes<HTMLDivElement>>;
3
+ export declare const ToggleButtonGroup: React.ForwardRefExoticComponent<Omit<ToggleButtonGroupProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
2
  import { TooltipProps } from './TooltipProps';
3
- export declare const Tooltip: React.ForwardRefExoticComponent<Pick<TooltipProps, "className" | "color" | "id" | "lang" | "style" | "role" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "translate" | "hidden" | "open" | "slot" | "title" | "classes" | "innerRef" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "placeholder" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "onClose" | "arrow" | "disableFocusListener" | "disableHoverListener" | "disableTouchListener" | "enterDelay" | "enterNextDelay" | "enterTouchDelay" | "interactive" | "leaveDelay" | "leaveTouchDelay" | "onOpen" | "placement" | "PopperComponent" | "PopperProps" | "TransitionComponent" | "TransitionProps"> & React.RefAttributes<HTMLElement>>;
3
+ export declare const Tooltip: React.ForwardRefExoticComponent<Omit<TooltipProps, "ref"> & React.RefAttributes<HTMLElement>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@popmenu/common-ui",
3
- "version": "0.153.0",
3
+ "version": "0.154.0",
4
4
  "license": "MIT",
5
5
  "author": "Popmenu Design System Team",
6
6
  "description": "React components for all Popmenu apps on the web.",
@@ -31,5 +31,5 @@
31
31
  "react": "18.x || 19.x"
32
32
  },
33
33
  "sideEffects": false,
34
- "gitHead": "0fdf023d7469982c4672a66b4af08befd1bb9dce"
34
+ "gitHead": "5a7633f43ac0b6a3af67866a1d2467143fb7a946"
35
35
  }