@cayuse-test/react 1.0.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 (103) hide show
  1. package/README.md +346 -0
  2. package/dist/chunk-2K3CWMLR.js +108 -0
  3. package/dist/chunk-2K3CWMLR.js.map +1 -0
  4. package/dist/chunk-B2Z63U4D.js +10398 -0
  5. package/dist/chunk-B2Z63U4D.js.map +1 -0
  6. package/dist/chunk-EPGO6B3U.js +3 -0
  7. package/dist/chunk-EPGO6B3U.js.map +1 -0
  8. package/dist/chunk-LFWPG3ND.js +97 -0
  9. package/dist/chunk-LFWPG3ND.js.map +1 -0
  10. package/dist/chunk-M2L7SQBQ.js +205 -0
  11. package/dist/chunk-M2L7SQBQ.js.map +1 -0
  12. package/dist/chunk-MJBMK4OG.js +143 -0
  13. package/dist/chunk-MJBMK4OG.js.map +1 -0
  14. package/dist/chunk-RG4GEORO.js +194 -0
  15. package/dist/chunk-RG4GEORO.js.map +1 -0
  16. package/dist/chunk-SZMEZFAR.js +193 -0
  17. package/dist/chunk-SZMEZFAR.js.map +1 -0
  18. package/dist/chunk-TYZPOXN5.js +243 -0
  19. package/dist/chunk-TYZPOXN5.js.map +1 -0
  20. package/dist/chunk-XRUFEGUC.js +225 -0
  21. package/dist/chunk-XRUFEGUC.js.map +1 -0
  22. package/dist/components/index.d.ts +1471 -0
  23. package/dist/components/index.js +144 -0
  24. package/dist/components/index.js.map +1 -0
  25. package/dist/context/tenant/index.d.ts +200 -0
  26. package/dist/context/tenant/index.js +14 -0
  27. package/dist/context/tenant/index.js.map +1 -0
  28. package/dist/globals/constants/index.d.ts +83 -0
  29. package/dist/globals/constants/index.js +31 -0
  30. package/dist/globals/constants/index.js.map +1 -0
  31. package/dist/globals/css/index.d.ts +2 -0
  32. package/dist/globals/css/index.js +2 -0
  33. package/dist/globals/css/index.js.map +1 -0
  34. package/dist/hooks/index.d.ts +125 -0
  35. package/dist/hooks/index.js +30 -0
  36. package/dist/hooks/index.js.map +1 -0
  37. package/dist/index-4NH7IW34.css +47 -0
  38. package/dist/index.d.ts +16 -0
  39. package/dist/index.js +302 -0
  40. package/dist/index.js.map +1 -0
  41. package/dist/modal-dialog-IH5SI4CF.css +93 -0
  42. package/dist/services/upload-s3/index.d.ts +35 -0
  43. package/dist/services/upload-s3/index.js +11 -0
  44. package/dist/services/upload-s3/index.js.map +1 -0
  45. package/dist/styles-2WZORUGA.css +106 -0
  46. package/dist/styles-32VHTPIA.css +20 -0
  47. package/dist/styles-3A5DZ5R7.css +70 -0
  48. package/dist/styles-3PFCZALV.css +60 -0
  49. package/dist/styles-3SNYRDO2.css +100 -0
  50. package/dist/styles-4FHUBUVF.css +150 -0
  51. package/dist/styles-4KAVAZFG.css +5 -0
  52. package/dist/styles-4OFM6DY5.css +22 -0
  53. package/dist/styles-5OXZHQGW.css +14 -0
  54. package/dist/styles-6XZTUN3B.css +68 -0
  55. package/dist/styles-73WOPK6M.css +6 -0
  56. package/dist/styles-7AV26IBF.css +35 -0
  57. package/dist/styles-7DWK55L2.css +71 -0
  58. package/dist/styles-7GWPZSR2.css +222 -0
  59. package/dist/styles-7QBPXFSY.css +6 -0
  60. package/dist/styles-7T6DSZIY.css +27 -0
  61. package/dist/styles-AUI7W2SW.css +408 -0
  62. package/dist/styles-AZSHBXJQ.css +85 -0
  63. package/dist/styles-BTXJVGNW.css +99 -0
  64. package/dist/styles-BUPIQG5C.css +74 -0
  65. package/dist/styles-CLK36LUK.css +27 -0
  66. package/dist/styles-CSKYCMD4.css +123 -0
  67. package/dist/styles-CWCX26BQ.css +13 -0
  68. package/dist/styles-GAIKDZU6.css +47 -0
  69. package/dist/styles-GB7S5BAZ.css +36 -0
  70. package/dist/styles-GVPT6A2Z.css +45 -0
  71. package/dist/styles-IUBOTHBR.css +581 -0
  72. package/dist/styles-IZPTZRKW.css +78 -0
  73. package/dist/styles-LS2YWO5W.css +39 -0
  74. package/dist/styles-M5BEFS4G.css +148 -0
  75. package/dist/styles-MHNICXOS.css +18 -0
  76. package/dist/styles-P6IOJDNI.css +47 -0
  77. package/dist/styles-Q7XE2QVU.css +55 -0
  78. package/dist/styles-R7IS5IGF.css +7 -0
  79. package/dist/styles-RDYYTTBU.css +218 -0
  80. package/dist/styles-RTHIZL5W.css +48 -0
  81. package/dist/styles-RUY4EKZW.css +9 -0
  82. package/dist/styles-T5QJAAUY.css +184 -0
  83. package/dist/styles-VBXWGFCK.css +96 -0
  84. package/dist/styles-VE76CGRO.css +6 -0
  85. package/dist/styles-VLCZ7JYV.css +140 -0
  86. package/dist/styles-W5HDD3YQ.css +71 -0
  87. package/dist/styles-X7BJCSFV.css +86 -0
  88. package/dist/styles-XVRR5GIG.css +42 -0
  89. package/dist/styles-YBC6BJBD.css +83 -0
  90. package/dist/styles-YXNJHPDZ.css +74 -0
  91. package/dist/styles-Z276IEVM.css +264 -0
  92. package/dist/utils/index.d.ts +145 -0
  93. package/dist/utils/index.js +98 -0
  94. package/dist/utils/index.js.map +1 -0
  95. package/package.json +113 -0
  96. package/packages/eslint-config/README.md +69 -0
  97. package/packages/eslint-config/base.js +25 -0
  98. package/packages/eslint-config/next.js +49 -0
  99. package/packages/eslint-config/react-internal.js +44 -0
  100. package/packages/typescript-config/README.md +70 -0
  101. package/packages/typescript-config/base.json +21 -0
  102. package/packages/typescript-config/nextjs.json +12 -0
  103. package/packages/typescript-config/react-library.json +7 -0
@@ -0,0 +1,74 @@
1
+ .cayuse_radio {
2
+ display: flex;
3
+ flex-direction: column;
4
+ gap: 8px;
5
+ }
6
+
7
+ .cayuse_radio-input {
8
+ -webkit-appearance: none;
9
+ -moz-appearance: none;
10
+ appearance: none;
11
+ vertical-align: text-bottom;
12
+ width: 16px;
13
+ height: 16px;
14
+ background-clip: content-box;
15
+ border: 1px solid #000;
16
+ border-radius: 50%;
17
+ margin: 0 8px 0 0 !important;
18
+ transition: 0.2s ease;
19
+ cursor: pointer;
20
+ }
21
+
22
+ .cayuse_radio-input.invalid {
23
+ background-color: #ffe8e6;
24
+ border-color: #b31200;
25
+ border-width: 2px;
26
+ }
27
+
28
+ .cayuse_radio-input:checked {
29
+ border-color: #0076b6;
30
+ border-width: 5px;
31
+ }
32
+
33
+ .cayuse_radio-input:focus {
34
+ outline: 2px solid #5092f7;
35
+ outline-offset: 1px;
36
+ }
37
+
38
+ .cayuse_radio-input:disabled {
39
+ background-color: #adadad;
40
+ border-color: #adadad;
41
+ border-width: 1px;
42
+ cursor: default;
43
+ }
44
+
45
+ .cayuse_radio-input:disabled:checked {
46
+ background-color: white;
47
+ border-color: #adadad;
48
+ border-width: 5px;
49
+ cursor: default;
50
+ }
51
+
52
+ .cayuse_radio-help-text {
53
+ margin-left: 24px;
54
+ font-weight: 400;
55
+ font-size: 12px;
56
+ line-height: 12px;
57
+ color: #5e5e5e;
58
+ }
59
+
60
+ .cayuse_radio-label {
61
+ position: relative;
62
+ -webkit-appearance: none;
63
+ -moz-appearance: none;
64
+ appearance: none;
65
+ vertical-align: text-bottom;
66
+ display: flex;
67
+ font-weight: 700;
68
+ font-size: 14px;
69
+ line-height: 16px;
70
+ padding-inline-start: 0;
71
+ padding-inline-end: 0;
72
+ color: #111111;
73
+ cursor: pointer;
74
+ }
@@ -0,0 +1,264 @@
1
+ .custom-dropdown__container {
2
+ position: relative;
3
+ display: inline-block;
4
+ }
5
+
6
+ .custom-dropdown__button:focus {
7
+ outline: -webkit-focus-ring-color auto 1px !important;
8
+ }
9
+
10
+ .custom-dropdown__button {
11
+ border: none !important;
12
+ color: #333 !important;
13
+ cursor: pointer;
14
+ font-weight: bold !important;
15
+ height: 100%;
16
+ line-height: 2;
17
+ padding: 0.7143rem calc(1.0714rem * 2) !important;
18
+ background-color: transparent !important;
19
+ transition:
20
+ background-color 300ms ease,
21
+ color 300ms ease;
22
+ }
23
+
24
+ @media screen and (max-width: 768px) {
25
+ .custom-dropdown__button {
26
+ padding: 10px 15px !important;
27
+ }
28
+ }
29
+
30
+ .custom-dropdown__button:hover {
31
+ background-color: #f5f5f5 !important;
32
+ color: #333 !important;
33
+ }
34
+
35
+ .custom-dropdown__button::after {
36
+ content: '';
37
+ position: absolute;
38
+ bottom: 0;
39
+ left: 0;
40
+ right: 0;
41
+ background-color: transparent;
42
+ height: 4px;
43
+ transition: background-color 300ms ease;
44
+ will-change: background-color;
45
+ }
46
+
47
+ .custom-dropdown__button[aria-expanded='true']::after {
48
+ background-color: #0076b6;
49
+ }
50
+
51
+ .custom-dropdown__button[aria-expanded='true'] {
52
+ color: #0076b6 !important;
53
+ }
54
+
55
+ .custom-dropdown__button > i {
56
+ position: relative;
57
+ width: auto;
58
+ font-size: 0.85714286em;
59
+ margin: 0 0 0 1em;
60
+ line-height: 1;
61
+ height: 1em;
62
+ backface-visibility: hidden;
63
+ font-weight: 400;
64
+ font-style: normal;
65
+ text-align: center;
66
+ }
67
+
68
+ .custom-dropdown .menuList {
69
+ position: absolute;
70
+ list-style-type: none;
71
+ display: none;
72
+ cursor: auto;
73
+ outline: 0;
74
+ min-width: -moz-max-content;
75
+ min-width: max-content;
76
+ margin: 0;
77
+ background: #fff;
78
+ font-size: 1em;
79
+ text-shadow: none;
80
+ text-align: left;
81
+ transition: opacity 0.1s ease;
82
+ z-index: 11;
83
+ will-change: transform, opacity;
84
+ top: 50px;
85
+ border: solid #e0e0e0 1px;
86
+ border-top-left-radius: 0;
87
+ border-top-right-radius: 0;
88
+ box-shadow: 0 2px 4px rgba(51, 51, 51, 0.5);
89
+ padding: 0.7143rem 0;
90
+ }
91
+
92
+ @media screen and (max-width: 768px) {
93
+ .custom-dropdown .menuList {
94
+ height: 100px;
95
+ overflow-x: auto;
96
+ overflow-y: scroll;
97
+ }
98
+ }
99
+
100
+ .custom-dropdown .menuListOpen {
101
+ display: block;
102
+ }
103
+
104
+ .custom-dropdown .menuList > li {
105
+ display: flex;
106
+ margin: 0;
107
+ padding: 0;
108
+ }
109
+
110
+ .custom-dropdown .menuList > li:hover {
111
+ background: rgba(0, 0, 0, 0.05);
112
+ color: rgba(0, 0, 0, 0.95);
113
+ }
114
+
115
+ .custom-dropdown .menuList > li:focus-within {
116
+ background: rgba(0, 0, 0, 0.05);
117
+ color: rgba(0, 0, 0, 0.95);
118
+ }
119
+
120
+ .custom-dropdown .menuList:not(.custom-styling) > li.active {
121
+ border-bottom: 4px solid #0076b6;
122
+ color: #0076b6;
123
+ font-weight: 700;
124
+ }
125
+
126
+ .custom-dropdown .menuList > li > a {
127
+ cursor: pointer;
128
+ line-height: 1em;
129
+ padding: 0.78571429rem 1.14285714rem;
130
+ font-size: 1rem;
131
+ box-shadow: none;
132
+ -webkit-touch-callout: none;
133
+ white-space: nowrap;
134
+ color: inherit;
135
+ text-decoration: none;
136
+ outline: 0;
137
+ width: 100%;
138
+ }
139
+
140
+ .custom-dropdown .menuList.custom-styling li {
141
+ font-size: 1rem;
142
+ color: rgba(0, 0, 0, 0.87);
143
+ }
144
+
145
+ .custom-dropdown .menuList.custom-styling li.disabled {
146
+ cursor: default;
147
+ pointer-events: none;
148
+ opacity: 0.45;
149
+ font-weight: 700;
150
+ }
151
+
152
+ .custom-dropdown .menuList.custom-styling li.active {
153
+ background: 0 0;
154
+ font-weight: 700;
155
+ color: rgba(0, 0, 0, 0.95);
156
+ box-shadow: none;
157
+ z-index: 12;
158
+ }
159
+
160
+ @media screen and (max-width: 768px) {
161
+ .custom-dropdown .menuList > li > a {
162
+ font-size: 12px;
163
+ padding: 8px 10px;
164
+ }
165
+
166
+ .custom-dropdown li:not(.custom-styling) {
167
+ font-size: 12px;
168
+ padding: 8px 10px;
169
+ }
170
+ }
171
+
172
+ .custom-dropdown:not(.custom-styling) {
173
+ background-color: white !important;
174
+ }
175
+
176
+ .custom-dropdown:not(.custom-styling) .menuList {
177
+ padding: 0;
178
+ top: -165px;
179
+ box-shadow: none;
180
+ width: 99.9%;
181
+ border-radius: 0.28571429rem 0.28571429rem 0 0;
182
+ }
183
+
184
+ .custom-dropdown:not(.custom-styling) button {
185
+ box-shadow: none;
186
+ border: 1px solid rgba(34, 36, 38, 0.15) !important;
187
+ border-radius: 0.28571429rem;
188
+ font-size: 14px;
189
+ font-weight: normal !important;
190
+ background: white;
191
+ padding: 5px 5px 5px 10px !important;
192
+ }
193
+
194
+ .custom-dropdown:not(.custom-styling) button i {
195
+ margin-right: 0;
196
+ margin-left: 4px;
197
+ }
198
+
199
+ .custom-dropdown:not(.custom-styling) button i::before {
200
+ font-size: 0.85em;
201
+ }
202
+
203
+ .custom-dropdown:not(.custom-styling) button[aria-expanded='true']::after {
204
+ background-color: transparent;
205
+ }
206
+
207
+ .custom-dropdown button:focus {
208
+ outline: -webkit-focus-ring-color auto 1px !important;
209
+ }
210
+
211
+ .custom-dropdown:not(.custom-styling) button[aria-expanded='true'],
212
+ .custom-dropdown:not(.custom-styling) button:hover {
213
+ color: black !important;
214
+ background-color: white !important;
215
+ }
216
+
217
+ .custom-dropdown:not(.custom-styling) button:hover {
218
+ box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.05) !important;
219
+ border-color: rgba(34, 36, 38, 0.35) !important;
220
+ }
221
+
222
+ .custom-dropdown:not(.custom-styling) button[aria-expanded='true'] {
223
+ border-color: #96c8da !important;
224
+ }
225
+
226
+ .custom-dropdown .menuList > li {
227
+ cursor: pointer;
228
+ line-height: 1em;
229
+ padding: 0.78571429rem 1.14285714rem;
230
+ width: 100%;
231
+ }
232
+
233
+ .custom-dropdown:not(.custom-styling) li:hover,
234
+ .custom-dropdown:not(.custom-styling) li[aria-selected='true'] {
235
+ font-weight: 700;
236
+ }
237
+
238
+ .custom-styling button {
239
+ background: transparent;
240
+ border: none;
241
+ outline: none;
242
+ padding: 0;
243
+ margin: 0;
244
+ width: -webkit-fill-available;
245
+ width: -moz-available;
246
+ display: flex;
247
+ justify-content: space-between;
248
+ align-items: center;
249
+ }
250
+
251
+ .custom-styling .menuList {
252
+ left: 0;
253
+ top: 100%;
254
+ width: 100%;
255
+ }
256
+
257
+ .custom-styling.disabled {
258
+ cursor: default;
259
+ pointer-events: none;
260
+ opacity: 1;
261
+ background: #f2f2f2 !important;
262
+ color: #999 !important;
263
+ border: 1px solid #cccccc !important;
264
+ }
@@ -0,0 +1,145 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import React__default from 'react';
3
+
4
+ declare function storeItem(key: string, item: any, storage?: Storage): void;
5
+ declare function getStoredItem(key: string, storage?: Storage): any;
6
+ declare function flushStorage(storage?: Storage): void;
7
+
8
+ interface User {
9
+ username: string;
10
+ tenantId?: string;
11
+ [key: string]: any;
12
+ }
13
+ interface AuthContextValue {
14
+ isAuthenticated: boolean;
15
+ loading: boolean;
16
+ user: User | null;
17
+ loginWithRedirect: (params: LoginParams) => void;
18
+ refreshToken: () => Promise<boolean>;
19
+ }
20
+ interface LoginParams {
21
+ tenantId?: string;
22
+ isGuest?: boolean;
23
+ }
24
+ interface CayuseHeader {
25
+ product: string;
26
+ host: string;
27
+ userId: string;
28
+ authenticationToken: string;
29
+ }
30
+ interface AuthProviderProps {
31
+ children: React__default.ReactNode;
32
+ PRODUCT_KEY: string;
33
+ setCayuseHeader: (header: CayuseHeader) => void;
34
+ tokenRefreshUrl?: string;
35
+ isGuest?: boolean;
36
+ }
37
+ declare const AuthContext: React__default.Context<AuthContextValue | undefined>;
38
+ declare const useAuth: () => AuthContextValue;
39
+ declare const ACCESS_TOKEN: "fk_accessToken";
40
+ declare function loginWithRedirect({ tenantId, isGuest }: LoginParams): void;
41
+ declare const AuthProvider: React__default.FC<AuthProviderProps>;
42
+ declare const withAuth: <P extends object>(Component: React__default.ComponentType<P & {
43
+ context: AuthContextValue;
44
+ }>) => (props: P) => react_jsx_runtime.JSX.Element;
45
+
46
+ declare const simulateInputBlur: (input: HTMLInputElement) => void;
47
+ declare const simulateInputChange: (input: HTMLInputElement, value: string | null) => void;
48
+ declare const getElementAncestorComponent: (initialElement: HTMLElement, targetComponentName: string) => HTMLElement | undefined;
49
+
50
+ declare const extractQuestionsFromSection: (section: any) => any[];
51
+ declare const getFormElementsByIds: (formElements: any[], fieldIds: string[]) => any[];
52
+
53
+ /**
54
+ * expects plain object hash of { stringClassName: boolShouldInclude } key-value pairs
55
+ * @deprecated use `classNames` package instead
56
+ */
57
+ declare const crunchClasses: (classHash: Record<string, boolean>) => string;
58
+ /**
59
+ * Use `uuid` or `React.useId` instead
60
+ */
61
+ declare const generateId: (prefix: string) => string;
62
+ declare const injectScript: (src: string, { target, ...rest }: {
63
+ target?: HTMLElement;
64
+ } & Partial<HTMLScriptElement>) => HTMLScriptElement | undefined;
65
+ declare const removeDOMNode: <T extends Node>(node: T) => T;
66
+ declare const debounce: <T extends (...args: any[]) => any>(callback: T, wait: number) => ((...args: Parameters<T>) => void);
67
+ interface SearchTerm {
68
+ key: string;
69
+ val?: string;
70
+ operator?: string;
71
+ }
72
+ declare const encodeSearchTerms: (searchTerms: SearchTerm | SearchTerm[], { shouldEncodeUri }?: {
73
+ shouldEncodeUri?: boolean;
74
+ }) => string[];
75
+ declare const sortCollectionByKey: <T extends Record<string, any>>(collection: T[], key: string) => T[];
76
+ declare const alphaSortCollectionByKey: <T extends Record<string, any>>(collection: T[], key: string) => T[];
77
+ /**
78
+ * Get the datetime format for the current or fallback locale.
79
+ *
80
+ * @returns {{
81
+ * date: string,
82
+ * time: string,
83
+ * datePlaceholder: string,
84
+ * }} The datetime format for the locale.
85
+ */
86
+ declare const getDatetimeFormat: () => {
87
+ date: string;
88
+ time: string;
89
+ datePlaceholder: string;
90
+ };
91
+ /**
92
+ * Note, the escaped characters are needed for the regex to work right
93
+ */
94
+ declare const trim: (string: string, target?: string) => string;
95
+ declare const capitalizeAndJoin: (items: string[], splitter?: string, separator?: string) => string;
96
+
97
+ interface CayuseGlobal {
98
+ appGetTokenSilently?: () => string | Promise<string>;
99
+ }
100
+ declare global {
101
+ var global: typeof globalThis & {
102
+ __CAYUSE__: CayuseGlobal | undefined;
103
+ };
104
+ }
105
+ /**
106
+ * Apps must "register" a global function to get tokens in the background using registerGetTokenSilently
107
+ */
108
+ declare const registerGetTokenSilently: (getTokenSilentlyFunction: () => string | Promise<string>) => void;
109
+ declare class CayuseError extends Error {
110
+ name: string;
111
+ message: string;
112
+ cause: Response | null;
113
+ response: Response | null;
114
+ meta: {
115
+ spRequestId: string;
116
+ flowableDesignRequestId: string;
117
+ flowableEngageRequestId: string;
118
+ };
119
+ constructor(message: string, httpResponseObject?: Response | null);
120
+ }
121
+ declare function isCayuseError(error: any): error is CayuseError;
122
+ declare const checkErrorBody: (error: Response) => Promise<void>;
123
+ interface FetchArgs {
124
+ numRetries?: number;
125
+ attemptNumber?: number;
126
+ notifyUponError?: boolean;
127
+ }
128
+ declare const executeRequest: (url: string, options?: RequestInit, args?: FetchArgs) => Promise<any>;
129
+ declare const request: (url: string, options?: {}, args?: {}) => Promise<any>;
130
+
131
+ declare const isNonEmptyString: (value: unknown) => value is string;
132
+ declare const isString: (value: unknown) => value is string;
133
+ declare const isNumber: (value: unknown) => value is number;
134
+ declare const isBool: (value: unknown) => value is boolean;
135
+ declare const isArray: (arg: any) => arg is any[];
136
+ declare const isNonEmptyArray: (value: unknown) => boolean;
137
+ declare const isNonEmptyMap: (value: unknown) => boolean;
138
+ declare const isFunction: (value: unknown) => value is Function;
139
+ declare const isObject: (object: object) => boolean;
140
+ declare const isNonEmptyObject: (object?: object) => boolean | undefined;
141
+ declare const isObjectWithKey: <T extends object>(object: T, key: string) => boolean;
142
+ declare const isMap: (value: object) => boolean;
143
+ declare const isUrl: (string: string) => boolean;
144
+
145
+ export { ACCESS_TOKEN, AuthContext, AuthProvider, CayuseError, alphaSortCollectionByKey, capitalizeAndJoin, checkErrorBody, crunchClasses, debounce, encodeSearchTerms, executeRequest, extractQuestionsFromSection, flushStorage, generateId, getDatetimeFormat, getElementAncestorComponent, getFormElementsByIds, getStoredItem, injectScript, isArray, isBool, isCayuseError, isFunction, isMap, isNonEmptyArray, isNonEmptyMap, isNonEmptyObject, isNonEmptyString, isNumber, isObject, isObjectWithKey, isString, isUrl, loginWithRedirect, registerGetTokenSilently, removeDOMNode, request, simulateInputBlur, simulateInputChange, sortCollectionByKey, storeItem, trim, useAuth, withAuth };
@@ -0,0 +1,98 @@
1
+ import {
2
+ alphaSortCollectionByKey,
3
+ capitalizeAndJoin,
4
+ crunchClasses,
5
+ debounce,
6
+ encodeSearchTerms,
7
+ extractQuestionsFromSection,
8
+ flushStorage,
9
+ generateId,
10
+ getDatetimeFormat,
11
+ getElementAncestorComponent,
12
+ getFormElementsByIds,
13
+ getStoredItem,
14
+ injectScript,
15
+ removeDOMNode,
16
+ simulateInputBlur,
17
+ simulateInputChange,
18
+ sortCollectionByKey,
19
+ storeItem,
20
+ trim
21
+ } from "../chunk-RG4GEORO.js";
22
+ import {
23
+ ACCESS_TOKEN,
24
+ AuthContext,
25
+ AuthProvider,
26
+ loginWithRedirect,
27
+ useAuth,
28
+ withAuth
29
+ } from "../chunk-XRUFEGUC.js";
30
+ import "../chunk-MJBMK4OG.js";
31
+ import {
32
+ CayuseError,
33
+ checkErrorBody,
34
+ executeRequest,
35
+ isArray,
36
+ isBool,
37
+ isCayuseError,
38
+ isFunction,
39
+ isMap,
40
+ isNonEmptyArray,
41
+ isNonEmptyMap,
42
+ isNonEmptyObject,
43
+ isNonEmptyString,
44
+ isNumber,
45
+ isObject,
46
+ isObjectWithKey,
47
+ isString,
48
+ isUrl,
49
+ registerGetTokenSilently,
50
+ request
51
+ } from "../chunk-SZMEZFAR.js";
52
+ export {
53
+ ACCESS_TOKEN,
54
+ AuthContext,
55
+ AuthProvider,
56
+ CayuseError,
57
+ alphaSortCollectionByKey,
58
+ capitalizeAndJoin,
59
+ checkErrorBody,
60
+ crunchClasses,
61
+ debounce,
62
+ encodeSearchTerms,
63
+ executeRequest,
64
+ extractQuestionsFromSection,
65
+ flushStorage,
66
+ generateId,
67
+ getDatetimeFormat,
68
+ getElementAncestorComponent,
69
+ getFormElementsByIds,
70
+ getStoredItem,
71
+ injectScript,
72
+ isArray,
73
+ isBool,
74
+ isCayuseError,
75
+ isFunction,
76
+ isMap,
77
+ isNonEmptyArray,
78
+ isNonEmptyMap,
79
+ isNonEmptyObject,
80
+ isNonEmptyString,
81
+ isNumber,
82
+ isObject,
83
+ isObjectWithKey,
84
+ isString,
85
+ isUrl,
86
+ loginWithRedirect,
87
+ registerGetTokenSilently,
88
+ removeDOMNode,
89
+ request,
90
+ simulateInputBlur,
91
+ simulateInputChange,
92
+ sortCollectionByKey,
93
+ storeItem,
94
+ trim,
95
+ useAuth,
96
+ withAuth
97
+ };
98
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
package/package.json ADDED
@@ -0,0 +1,113 @@
1
+ {
2
+ "name": "@cayuse-test/react",
3
+ "version": "1.0.0",
4
+ "type": "module",
5
+ "main": "./dist/index.js",
6
+ "module": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "import": "./dist/index.js"
12
+ },
13
+ "./eslint-config/*": {
14
+ "import": "./packages/eslint-config/*.js"
15
+ },
16
+ "./typescript-config/*": {
17
+ "default": "./packages/typescript-config/*.json"
18
+ },
19
+ "./package.json": "./package.json"
20
+ },
21
+ "files": [
22
+ "dist",
23
+ "packages/eslint-config",
24
+ "packages/typescript-config",
25
+ "README.md"
26
+ ],
27
+ "engines": {
28
+ "node": ">=20"
29
+ },
30
+ "packageManager": "pnpm@10.14.0",
31
+ "repository": {
32
+ "type": "git",
33
+ "url": "git+ssh://git@bitbucket.org/cayusellc/cayuse-react-components.git"
34
+ },
35
+ "scripts": {
36
+ "build": "tsup",
37
+ "dev": "tsup --watch",
38
+ "check-types": "tsc --noEmit",
39
+ "format": "prettier --write \"**/*.{js,ts,tsx,md}\"",
40
+ "preinstall": "bash scripts/install-hooks.sh",
41
+ "lint": "eslint .",
42
+ "lint:fix": "eslint . --fix",
43
+ "storybook": "storybook dev -p 6006",
44
+ "build-storybook": "storybook build",
45
+ "test": "vitest",
46
+ "prepublishOnly": "pnpm run build"
47
+ },
48
+ "dependencies": {
49
+ "@fortawesome/fontawesome-svg-core": "6.7.2",
50
+ "@fortawesome/free-solid-svg-icons": "6.7.2",
51
+ "@fortawesome/react-fontawesome": "0.2.2",
52
+ "@transloadit/prettier-bytes": "1.0.1",
53
+ "@uppy/aws-s3": "4",
54
+ "@uppy/core": "4",
55
+ "classnames": "2.5.1",
56
+ "date-fns": "2.30.0",
57
+ "date-fns-tz": "2.0.0",
58
+ "focus-trap-react": "11.0.4",
59
+ "jwt-decode": "4.0.0",
60
+ "linkify-react": "4.3.1",
61
+ "linkifyjs": "^4.3.1",
62
+ "lodash-es": "4.17.21",
63
+ "p-limit": "4.0.0",
64
+ "quill": "2.0.3",
65
+ "react": "18.3.1",
66
+ "react-aria": "^3.41.1",
67
+ "react-aria-components": "1.10.1",
68
+ "react-datepicker": "^8.4.0",
69
+ "react-dom": "18.3.1",
70
+ "react-dropzone": "14.3.8",
71
+ "react-redux": "^9.2.0",
72
+ "react-router-dom": "5.3.4",
73
+ "react-select": "5.10.2",
74
+ "react-stately": "^3.40.0",
75
+ "react-toastify": "10.0.0",
76
+ "react-window": "1.8.11",
77
+ "uuid": "11.1.0"
78
+ },
79
+ "devDependencies": {
80
+ "@chromatic-com/storybook": "^4.1.0",
81
+ "@eslint/js": "^9.30.0",
82
+ "@next/eslint-plugin-next": "^15.3.0",
83
+ "@storybook/addon-a11y": "^9.1.1",
84
+ "@storybook/addon-docs": "^9.1.1",
85
+ "@storybook/addon-vitest": "^9.1.1",
86
+ "@storybook/react-vite": "^9.1.1",
87
+ "@types/lodash-es": "4.17.12",
88
+ "@types/node": "22",
89
+ "@types/react": "18",
90
+ "@types/react-dom": "18",
91
+ "@types/react-router-dom": "^5.3.3",
92
+ "@vitest/browser": "^3.2.4",
93
+ "@vitest/coverage-v8": "^3.2.4",
94
+ "autoprefixer": "^10.4.21",
95
+ "eslint": "^9.30.0",
96
+ "eslint-config-prettier": "^10.1.1",
97
+ "eslint-plugin-jsx-a11y": "^6.10.2",
98
+ "eslint-plugin-only-warn": "^1.1.0",
99
+ "eslint-plugin-react": "^7.37.5",
100
+ "eslint-plugin-react-hooks": "^5.2.0",
101
+ "globals": "^16.2.0",
102
+ "playwright": "^1.54.2",
103
+ "postcss": "^8.5.6",
104
+ "prettier": "^3.6.0",
105
+ "storybook": "^9.1.1",
106
+ "tsconfig-paths": "^4.2.0",
107
+ "tsup": "^8.5.0",
108
+ "typescript": "^5.8.2",
109
+ "typescript-eslint": "^8.35.0",
110
+ "vite": "^7.1.3",
111
+ "vitest": "^3.2.4"
112
+ }
113
+ }