@cleartrip/ct-design-common-utils 4.0.0-TEST.3 → 4.0.0-rc

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 (57) hide show
  1. package/dist/HapticFeedback/getHapticPattern.d.ts +4 -0
  2. package/dist/HapticFeedback/getHapticPattern.d.ts.map +1 -0
  3. package/dist/HapticFeedback/index.d.ts +5 -0
  4. package/dist/HapticFeedback/index.d.ts.map +1 -0
  5. package/dist/HapticFeedback/index.native.d.ts +5 -0
  6. package/dist/HapticFeedback/index.native.d.ts.map +1 -0
  7. package/dist/HapticFeedback/type.d.ts +13 -0
  8. package/dist/HapticFeedback/type.d.ts.map +1 -0
  9. package/dist/accessibility.d.ts +4 -0
  10. package/dist/accessibility.d.ts.map +1 -0
  11. package/dist/batchedPromise.d.ts +10 -0
  12. package/dist/batchedPromise.d.ts.map +1 -0
  13. package/dist/common.d.ts +13 -11
  14. package/dist/common.d.ts.map +1 -1
  15. package/dist/ct-design-common-utils.browser.cjs.js +1 -1
  16. package/dist/ct-design-common-utils.browser.cjs.js.map +1 -1
  17. package/dist/ct-design-common-utils.browser.esm.js +1 -1
  18. package/dist/ct-design-common-utils.browser.esm.js.map +1 -1
  19. package/dist/ct-design-common-utils.cjs.js +292 -61
  20. package/dist/ct-design-common-utils.cjs.js.map +1 -1
  21. package/dist/ct-design-common-utils.esm.js +269 -62
  22. package/dist/ct-design-common-utils.esm.js.map +1 -1
  23. package/dist/ct-design-common-utils.umd.js +295 -95
  24. package/dist/ct-design-common-utils.umd.js.map +1 -1
  25. package/dist/dates.d.ts +3 -2
  26. package/dist/dates.d.ts.map +1 -1
  27. package/dist/index.d.ts +5 -0
  28. package/dist/index.d.ts.map +1 -1
  29. package/dist/platform/index.d.ts +27 -0
  30. package/dist/platform/index.d.ts.map +1 -0
  31. package/dist/platform/native-info.d.ts +8 -0
  32. package/dist/platform/native-info.d.ts.map +1 -0
  33. package/dist/platform/native-info.native.d.ts +8 -0
  34. package/dist/platform/native-info.native.d.ts.map +1 -0
  35. package/dist/promiseHandler.d.ts +16 -0
  36. package/dist/promiseHandler.d.ts.map +1 -0
  37. package/dist/{regex/index.d.ts → regex.d.ts} +1 -1
  38. package/dist/regex.d.ts.map +1 -0
  39. package/dist/type.d.ts +62 -0
  40. package/dist/type.d.ts.map +1 -0
  41. package/package.json +11 -6
  42. package/src/HapticFeedback/getHapticPattern.ts +23 -0
  43. package/src/HapticFeedback/index.native.ts +26 -0
  44. package/src/HapticFeedback/index.ts +7 -0
  45. package/src/HapticFeedback/type.ts +35 -0
  46. package/src/accessibility.ts +39 -0
  47. package/src/batchedPromise.ts +43 -0
  48. package/src/common.ts +227 -0
  49. package/src/dates.ts +53 -0
  50. package/src/index.ts +8 -0
  51. package/src/platform/index.ts +70 -0
  52. package/src/platform/native-info.native.ts +17 -0
  53. package/src/platform/native-info.ts +21 -0
  54. package/src/promiseHandler.ts +62 -0
  55. package/src/regex.ts +23 -0
  56. package/src/type.ts +381 -0
  57. package/dist/regex/index.d.ts.map +0 -1
package/src/dates.ts ADDED
@@ -0,0 +1,53 @@
1
+ import dayjs from 'dayjs';
2
+ import startOfDay from 'date-fns/startOfDay';
3
+ import { MONTHS } from '@cleartrip/ct-design-common-constants';
4
+
5
+ export const startOfToday = () => startOfDay(new Date());
6
+
7
+ export function getDateFromString(milli: string) {
8
+ // input --> 25/09/2022
9
+ const date = new Date(milli).toLocaleDateString('en-GB');
10
+ return date;
11
+ }
12
+
13
+ export function dateFormat(date: string) {
14
+ // output ---> 27 Aug 2022
15
+ const temp = date.split('/');
16
+ const newDate = `${temp[0]} ${MONTHS[parseInt(temp[1]) - 1]} ${temp[2]}`;
17
+ return newDate;
18
+ }
19
+
20
+ export function dateFormat_hrental(date: string) {
21
+ // output ---> 2022-08-27
22
+ const temp = date.split('/');
23
+ const newDate = `${temp[2]}-${temp[1]}-${temp[0]}`;
24
+ return newDate;
25
+ }
26
+
27
+ export function formatDateToString(date: Date, formatOptions?: Record<string, string>, localeOption: string = 'en-US') {
28
+ const dateformatOptions: Intl.DateTimeFormatOptions = {
29
+ weekday: 'short',
30
+ month: 'short',
31
+ day: 'numeric',
32
+ ...formatOptions,
33
+ };
34
+ if (date) {
35
+ return date.toLocaleDateString(localeOption, dateformatOptions);
36
+ }
37
+ }
38
+
39
+ export function getFormattedDate(date: string, outputFormat = '', inputFormat = '') {
40
+ let newDate = 'invalid date';
41
+ try {
42
+ newDate = date ? dayjs(date, inputFormat).format(outputFormat) : dayjs().format(outputFormat);
43
+ } catch (_e) {
44
+ newDate = 'invalid date';
45
+ }
46
+ return newDate;
47
+ }
48
+
49
+ export function dayDiff(days: string, to: string) {
50
+ const dDate = dayjs(getFormattedDate(days, 'DD-MM-YYYY'), 'DD-MM-YYYY');
51
+ const toDate = dayjs(getFormattedDate(to, 'DD-MM-YYYY'), 'DD-MM-YYYY');
52
+ return dDate.diff(toDate, 'day');
53
+ }
package/src/index.ts ADDED
@@ -0,0 +1,8 @@
1
+ export * from './common';
2
+ export * from './dates';
3
+ export * from './regex';
4
+ export * from './accessibility';
5
+ export * from './HapticFeedback';
6
+ export * from './platform';
7
+ export * from './batchedPromise';
8
+ export * from './promiseHandler';
@@ -0,0 +1,70 @@
1
+ export enum Platform {
2
+ IOS = 'iOS',
3
+ PWA = 'PWA',
4
+ ANDROID = 'Android',
5
+ }
6
+
7
+ export enum AppAgent {
8
+ PWA = 'PWA',
9
+ IOS = 'iPhoneApp',
10
+ ANDROID = 'AndroidApp',
11
+ H_PWA = 'pwa',
12
+ H_IOS = 'ios',
13
+ H_ANDROID = 'android',
14
+ H_UNKNOWN = 'unrecognised',
15
+ }
16
+
17
+ import { getDimensions, getOS, getOSVersion } from './native-info';
18
+
19
+ export const getPlatform = (): Platform => {
20
+ const platform = getOS();
21
+
22
+ switch (platform) {
23
+ case 'ios': {
24
+ return Platform.IOS;
25
+ }
26
+ case 'android': {
27
+ return Platform.ANDROID;
28
+ }
29
+ default: {
30
+ return Platform.PWA;
31
+ }
32
+ }
33
+ };
34
+
35
+ export const getAppAgent = (): string => {
36
+ const platform = getPlatform();
37
+
38
+ switch (platform) {
39
+ case Platform.IOS: {
40
+ return AppAgent.IOS;
41
+ }
42
+ case Platform.ANDROID: {
43
+ return AppAgent.ANDROID;
44
+ }
45
+ default: {
46
+ return AppAgent.PWA;
47
+ }
48
+ }
49
+ };
50
+
51
+ export const getJSVersion = (): string => 'N/A';
52
+
53
+ export const getDeviceWidth = (): number => {
54
+ return getDimensions().width;
55
+ };
56
+
57
+ export const getDeviceHeight = (): number => {
58
+ return getDimensions().height;
59
+ };
60
+
61
+ export const isMobile = () => true;
62
+ export const isIOS = (): boolean => getPlatform() === Platform.IOS;
63
+ export const isAndroid = (): boolean => getPlatform() === Platform.ANDROID;
64
+ export const isAndroid_15 = (): boolean => getOSVersion() >= 35 && getPlatform() === Platform.ANDROID;
65
+ export const isJSVersionUpdated = (compareVersion: number): boolean => parseInt(getJSVersion()) >= compareVersion;
66
+ export const isPwa = (): boolean =>
67
+ getPlatform().toUpperCase() !== Platform.ANDROID.toUpperCase() &&
68
+ getPlatform().toUpperCase() !== Platform.IOS.toUpperCase();
69
+
70
+ export * from './native-info';
@@ -0,0 +1,17 @@
1
+ import { Dimensions, Platform } from 'react-native';
2
+
3
+ export const getOS = (): 'web' | 'ios' | 'android' => {
4
+ return Platform.OS as 'web' | 'ios' | 'android';
5
+ };
6
+
7
+ export const getDimensions = (): { width: number; height: number } => {
8
+ return Dimensions.get('window');
9
+ };
10
+
11
+ export const getOSVersion = (): number => {
12
+ return Number(Platform.Version);
13
+ };
14
+
15
+ export const isServer = () => {
16
+ return false;
17
+ };
@@ -0,0 +1,21 @@
1
+ export const isServer = () => {
2
+ return typeof window === 'undefined' || !window;
3
+ };
4
+
5
+ export const getOS = (): 'web' | 'ios' | 'android' => {
6
+ return 'web';
7
+ };
8
+
9
+ const DEFAULT_WIDTH = 390;
10
+ const DEFAULT_HEIGHT = 0;
11
+
12
+ export const getDimensions = (): { width: number; height: number } => {
13
+ // Use consistent default width to avoid hydration mismatches
14
+ const width = isServer() ? DEFAULT_WIDTH : window?.innerWidth || DEFAULT_WIDTH;
15
+ const height = isServer() ? DEFAULT_HEIGHT : window?.innerHeight || DEFAULT_HEIGHT;
16
+ return { width: width, height: height };
17
+ };
18
+
19
+ export const getOSVersion = (): number => {
20
+ return 0;
21
+ };
@@ -0,0 +1,62 @@
1
+ interface PromiseHandlerOptions {
2
+ concurrency?: number;
3
+ }
4
+
5
+ class PromiseHandler {
6
+ private queue: Array<() => Promise<void>> = [];
7
+ private running = 0;
8
+ private concurrency: number;
9
+
10
+ constructor(options: PromiseHandlerOptions = {}) {
11
+ this.concurrency = options.concurrency || 5;
12
+ }
13
+
14
+ clear = () => {
15
+ this.queue = [];
16
+ this.running = 0;
17
+ };
18
+
19
+ add = async (task: () => Promise<void>, ref: unknown): Promise<void> => {
20
+ if (!ref) {
21
+ return Promise.resolve();
22
+ }
23
+
24
+ return new Promise((resolve, reject) => {
25
+ this.queue.push(async () => {
26
+ try {
27
+ const result = await task();
28
+ resolve(result);
29
+ } catch (error: unknown) {
30
+ if (error instanceof Error) {
31
+ reject(error);
32
+ } else {
33
+ reject(new Error('Unknown error'));
34
+ }
35
+ } finally {
36
+ if (this.running > -1) {
37
+ this.running--;
38
+ this.processQueue();
39
+ }
40
+ }
41
+ });
42
+ this.processQueue();
43
+ });
44
+ };
45
+
46
+ private processQueue = () => {
47
+ // console.log('processQueue', this.running, this.queue.length);
48
+ while (this.running < this.concurrency && this.queue.length > 0) {
49
+ const task = this.queue.shift();
50
+ if (task) {
51
+ this.running++;
52
+ task();
53
+ }
54
+ }
55
+ };
56
+ }
57
+
58
+ export const createPromiseHandler = (options?: PromiseHandlerOptions) => {
59
+ return new PromiseHandler(options);
60
+ };
61
+
62
+ export const promiseHandler = createPromiseHandler();
package/src/regex.ts ADDED
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Removes non numeric characters in the given string
3
+ * @param {string} data
4
+ * @returns {string}
5
+ */
6
+ export const removeNonNumerals = (data: string): string => data.replace(/\D/g, '');
7
+
8
+ /**
9
+ * Removes empty space
10
+ * @param {string} data
11
+ * @returns {string}
12
+ */
13
+ export const removeSpace = (data: string): string => data.replace(/\s/g, '');
14
+
15
+ /**
16
+ * Add space at given intervals
17
+ * @param {string} data
18
+ * @returns {string}
19
+ */
20
+ export const addSpaceAtInterval = (data: string, interval: number): string => {
21
+ const matches = data?.match(new RegExp(`.{1,${interval}}`, 'g'));
22
+ return matches?.length ? matches.join(' ') : '';
23
+ };
package/src/type.ts ADDED
@@ -0,0 +1,381 @@
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @format
8
+ */
9
+
10
+ /**
11
+ * @see https://reactnative.dev/docs/accessibility#accessibility-properties
12
+ */
13
+ export interface AccessibilityProps extends AccessibilityPropsAndroid, AccessibilityPropsIOS {
14
+ /**
15
+ * When true, indicates that the view is an accessibility element.
16
+ * By default, all the touchable elements are accessible.
17
+ */
18
+ accessible?: boolean | undefined;
19
+
20
+ /**
21
+ * Provides an array of custom actions available for accessibility.
22
+ */
23
+ accessibilityActions?: ReadonlyArray<AccessibilityActionInfo> | undefined;
24
+
25
+ /**
26
+ * Overrides the text that's read by the screen reader when the user interacts with the element. By default, the
27
+ * label is constructed by traversing all the children and accumulating all the Text nodes separated by space.
28
+ */
29
+ accessibilityLabel?: string | undefined;
30
+
31
+ /**
32
+ * Alias for accessibilityLabel https://reactnative.dev/docs/view#accessibilitylabel
33
+ * https://github.com/facebook/react-native/issues/34424
34
+ */
35
+ 'aria-label'?: string | undefined;
36
+
37
+ /**
38
+ * Accessibility Role tells a person using either VoiceOver on iOS or TalkBack on Android the type of element that is focused on.
39
+ */
40
+ accessibilityRole?: AccessibilityRole | undefined;
41
+ /**
42
+ * Accessibility State tells a person using either VoiceOver on iOS or TalkBack on Android the state of the element currently focused on.
43
+ */
44
+ accessibilityState?: AccessibilityState | undefined;
45
+
46
+ /**
47
+ * alias for accessibilityState
48
+ *
49
+ * see https://reactnative.dev/docs/accessibility#accessibilitystate
50
+ */
51
+ 'aria-busy'?: boolean | undefined;
52
+ 'aria-checked'?: boolean | 'mixed' | undefined;
53
+ 'aria-disabled'?: boolean | undefined;
54
+ 'aria-expanded'?: boolean | undefined;
55
+ 'aria-selected'?: boolean | undefined;
56
+
57
+ /**
58
+ * An accessibility hint helps users understand what will happen when they perform an action on the accessibility element when that result is not obvious from the accessibility label.
59
+ */
60
+ accessibilityHint?: string | undefined;
61
+ /**
62
+ * Represents the current value of a component. It can be a textual description of a component's value, or for range-based components, such as sliders and progress bars,
63
+ * it contains range information (minimum, current, and maximum).
64
+ */
65
+ accessibilityValue?: AccessibilityValue | undefined;
66
+
67
+ 'aria-valuemax'?: AccessibilityValue['max'] | undefined;
68
+ 'aria-valuemin'?: AccessibilityValue['min'] | undefined;
69
+ 'aria-valuenow'?: AccessibilityValue['now'] | undefined;
70
+ 'aria-valuetext'?: AccessibilityValue['text'] | undefined;
71
+
72
+ /**
73
+ * [Android] Controlling if a view fires accessibility events and if it is reported to accessibility services.
74
+ */
75
+ importantForAccessibility?: ('auto' | 'yes' | 'no' | 'no-hide-descendants') | undefined;
76
+
77
+ /**
78
+ * A value indicating whether the accessibility elements contained within
79
+ * this accessibility element are hidden.
80
+ */
81
+ 'aria-hidden'?: boolean | undefined;
82
+
83
+ 'aria-modal'?: boolean | undefined;
84
+
85
+ /**
86
+ * Indicates to accessibility services to treat UI component like a specific role.
87
+ */
88
+ role?: Role | undefined;
89
+ }
90
+
91
+ export type AccessibilityActionInfo = Readonly<{
92
+ name: AccessibilityActionName | string;
93
+ label?: string | undefined;
94
+ }>;
95
+
96
+ export type AccessibilityActionName =
97
+ /**
98
+ * Generated when a screen reader user double taps the component.
99
+ */
100
+ | 'activate'
101
+ /**
102
+ * Generated when a screen reader user increments an adjustable component.
103
+ */
104
+ | 'increment'
105
+ /**
106
+ * Generated when a screen reader user decrements an adjustable component.
107
+ */
108
+ | 'decrement'
109
+ /**
110
+ * Generated when a TalkBack user places accessibility focus on the component and double taps and holds one finger on the screen.
111
+ * @platform android
112
+ */
113
+ | 'longpress'
114
+ /**
115
+ * Generated when a VoiceOver user places focus on or inside the component and double taps with two fingers.
116
+ * @platform ios
117
+ * */
118
+ | 'magicTap'
119
+ /**
120
+ * Generated when a VoiceOver user places focus on or inside the component and performs a two finger scrub gesture (left, right, left).
121
+ * @platform ios
122
+ * */
123
+ | 'escape';
124
+
125
+ export interface AccessibilityState {
126
+ /**
127
+ * When true, informs accessible tools if the element is disabled
128
+ */
129
+ disabled?: boolean | undefined;
130
+ /**
131
+ * When true, informs accessible tools if the element is selected
132
+ */
133
+ selected?: boolean | undefined;
134
+ /**
135
+ * For items like Checkboxes and Toggle switches, reports their state to accessible tools
136
+ */
137
+ checked?: boolean | 'mixed' | undefined;
138
+ /**
139
+ * When present, informs accessible tools if the element is busy
140
+ */
141
+ busy?: boolean | undefined;
142
+ /**
143
+ * When present, informs accessible tools the element is expanded or collapsed
144
+ */
145
+ expanded?: boolean | undefined;
146
+ }
147
+
148
+ export interface AccessibilityValue {
149
+ /**
150
+ * The minimum value of this component's range. (should be an integer)
151
+ */
152
+ min?: number | undefined;
153
+
154
+ /**
155
+ * The maximum value of this component's range. (should be an integer)
156
+ */
157
+ max?: number | undefined;
158
+
159
+ /**
160
+ * The current value of this component's range. (should be an integer)
161
+ */
162
+ now?: number | undefined;
163
+
164
+ /**
165
+ * A textual description of this component's value. (will override minimum, current, and maximum if set)
166
+ */
167
+ text?: string | undefined;
168
+ }
169
+
170
+ export type AccessibilityRole =
171
+ | 'none'
172
+ | 'button'
173
+ | 'togglebutton'
174
+ | 'link'
175
+ | 'search'
176
+ | 'image'
177
+ | 'keyboardkey'
178
+ | 'text'
179
+ | 'adjustable'
180
+ | 'imagebutton'
181
+ | 'header'
182
+ | 'summary'
183
+ | 'alert'
184
+ | 'checkbox'
185
+ | 'combobox'
186
+ | 'menu'
187
+ | 'menubar'
188
+ | 'menuitem'
189
+ | 'progressbar'
190
+ | 'radio'
191
+ | 'radiogroup'
192
+ | 'scrollbar'
193
+ | 'spinbutton'
194
+ | 'switch'
195
+ | 'tab'
196
+ | 'tabbar'
197
+ | 'tablist'
198
+ | 'timer'
199
+ | 'list'
200
+ | 'toolbar';
201
+
202
+ export interface AccessibilityPropsAndroid {
203
+ /**
204
+ * Identifies the element that labels the element it is applied to. When the assistive technology focuses on the component with this props,
205
+ * the text is read aloud. The value should should match the nativeID of the related element.
206
+ *
207
+ * @platform android
208
+ */
209
+ accessibilityLabelledBy?: string | string[] | undefined;
210
+
211
+ /**
212
+ * Identifies the element that labels the element it is applied to. When the assistive technology focuses on the component with this props,
213
+ * the text is read aloud. The value should should match the nativeID of the related element.
214
+ *
215
+ * @platform android
216
+ */
217
+ 'aria-labelledby'?: string | undefined;
218
+
219
+ /**
220
+ * Indicates to accessibility services whether the user should be notified
221
+ * when this view changes. Works for Android API >= 19 only.
222
+ *
223
+ * @platform android
224
+ *
225
+ * See https://reactnative.dev/docs/view#accessibilityliveregion
226
+ */
227
+ accessibilityLiveRegion?: 'none' | 'polite' | 'assertive' | undefined;
228
+
229
+ /**
230
+ * Indicates to accessibility services whether the user should be notified
231
+ * when this view changes. Works for Android API >= 19 only.
232
+ *
233
+ * @platform android
234
+ *
235
+ * See https://reactnative.dev/docs/view#accessibilityliveregion
236
+ */
237
+ 'aria-live'?: ('polite' | 'assertive' | 'off') | undefined;
238
+
239
+ /**
240
+ * Controls how view is important for accessibility which is if it fires accessibility events
241
+ * and if it is reported to accessibility services that query the screen.
242
+ * Works for Android only. See http://developer.android.com/reference/android/R.attr.html#importantForAccessibility for references.
243
+ *
244
+ * Possible values:
245
+ * 'auto' - The system determines whether the view is important for accessibility - default (recommended).
246
+ * 'yes' - The view is important for accessibility.
247
+ * 'no' - The view is not important for accessibility.
248
+ * 'no-hide-descendants' - The view is not important for accessibility, nor are any of its descendant views.
249
+ *
250
+ * @platform android
251
+ */
252
+ importantForAccessibility?: 'auto' | 'yes' | 'no' | 'no-hide-descendants' | undefined;
253
+ }
254
+
255
+ export interface AccessibilityPropsIOS {
256
+ /**
257
+ * A Boolean value indicating whether the accessibility elements contained within this accessibility element
258
+ * are hidden to the screen reader.
259
+ * @platform ios
260
+ */
261
+ accessibilityElementsHidden?: boolean | undefined;
262
+
263
+ /**
264
+ * A Boolean value indicating whether VoiceOver should ignore the elements within views that are siblings of the receiver.
265
+ * @platform ios
266
+ */
267
+ accessibilityViewIsModal?: boolean | undefined;
268
+
269
+ /**
270
+ * When accessible is true, the system will invoke this function when the user performs the escape gesture (scrub with two fingers).
271
+ * @platform ios
272
+ */
273
+ onAccessibilityEscape?: (() => void) | undefined;
274
+
275
+ /**
276
+ * When `accessible` is true, the system will try to invoke this function when the user performs accessibility tap gesture.
277
+ * @platform ios
278
+ */
279
+ onAccessibilityTap?: (() => void) | undefined;
280
+
281
+ /**
282
+ * When accessible is true, the system will invoke this function when the user performs the magic tap gesture.
283
+ * @platform ios
284
+ */
285
+ onMagicTap?: (() => void) | undefined;
286
+
287
+ /**
288
+ * https://reactnative.dev/docs/accessibility#accessibilityignoresinvertcolorsios
289
+ * @platform ios
290
+ */
291
+ accessibilityIgnoresInvertColors?: boolean | undefined;
292
+
293
+ /**
294
+ * By using the accessibilityLanguage property, the screen reader will understand which language to use while reading the element's label, value and hint. The provided string value must follow the BCP 47 specification (https://www.rfc-editor.org/info/bcp47).
295
+ * https://reactnative.dev/docs/accessibility#accessibilitylanguage-ios
296
+ * @platform ios
297
+ */
298
+ accessibilityLanguage?: string | undefined;
299
+
300
+ /**
301
+ * A Boolean value that indicates whether or not to show the item in the large content viewer.
302
+ * Available on iOS 13.0+
303
+ * https://reactnative.dev/docs/accessibility#accessibilityshowslargecontentviewer
304
+ * @platform ios
305
+ */
306
+ accessibilityShowsLargeContentViewer?: boolean | undefined;
307
+
308
+ /**
309
+ * When `accessibilityShowsLargeContentViewer` is set, this string will be used as title for the large content viewer.
310
+ * https://reactnative.dev/docs/accessibility#accessibilitylargecontenttitle
311
+ * @platform ios
312
+ */
313
+ accessibilityLargeContentTitle?: string | undefined;
314
+ }
315
+
316
+ export type Role =
317
+ | 'alert'
318
+ | 'alertdialog'
319
+ | 'application'
320
+ | 'article'
321
+ | 'banner'
322
+ | 'button'
323
+ | 'cell'
324
+ | 'checkbox'
325
+ | 'columnheader'
326
+ | 'combobox'
327
+ | 'complementary'
328
+ | 'contentinfo'
329
+ | 'definition'
330
+ | 'dialog'
331
+ | 'directory'
332
+ | 'document'
333
+ | 'feed'
334
+ | 'figure'
335
+ | 'form'
336
+ | 'grid'
337
+ | 'group'
338
+ | 'heading'
339
+ | 'img'
340
+ | 'link'
341
+ | 'list'
342
+ | 'listitem'
343
+ | 'log'
344
+ | 'main'
345
+ | 'marquee'
346
+ | 'math'
347
+ | 'menu'
348
+ | 'menubar'
349
+ | 'menuitem'
350
+ | 'meter'
351
+ | 'navigation'
352
+ | 'none'
353
+ | 'note'
354
+ | 'option'
355
+ | 'presentation'
356
+ | 'progressbar'
357
+ | 'radio'
358
+ | 'radiogroup'
359
+ | 'region'
360
+ | 'row'
361
+ | 'rowgroup'
362
+ | 'rowheader'
363
+ | 'scrollbar'
364
+ | 'searchbox'
365
+ | 'separator'
366
+ | 'slider'
367
+ | 'spinbutton'
368
+ | 'status'
369
+ | 'summary'
370
+ | 'switch'
371
+ | 'tab'
372
+ | 'table'
373
+ | 'tablist'
374
+ | 'tabpanel'
375
+ | 'term'
376
+ | 'timer'
377
+ | 'toolbar'
378
+ | 'tooltip'
379
+ | 'tree'
380
+ | 'treegrid'
381
+ | 'treeitem';
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../packages/utils/common/src/regex/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,iBAAiB,SAAU,MAAM,KAAG,MAAiC,CAAC;AAOnF,eAAO,MAAM,WAAW,SAAU,MAAM,KAAG,MAAiC,CAAC;AAO7E,eAAO,MAAM,kBAAkB,SAAU,MAAM,YAAY,MAAM,KAAG,MAGnE,CAAC"}