@axos-web-dev/shared-components 1.0.100-dev.70 → 1.0.100-dev.70-slow-msg

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.
@@ -51,6 +51,7 @@ const ChatWindow = ({
51
51
  const messagesEndRef = useRef(null);
52
52
  const inputRef = useRef(null);
53
53
  const isOpen = useOpenChat((state2) => state2.isOpen);
54
+ const isBlockedInput = useOpenChat((state2) => state2.isBlockedInput);
54
55
  useEffect(() => {
55
56
  messagesEndRef.current?.scrollIntoView({ behavior: "smooth" });
56
57
  }, [messages]);
@@ -477,7 +478,7 @@ const ChatWindow = ({
477
478
  placeholder: "Ask anything...",
478
479
  className: clsx(inputStyle, autoResize),
479
480
  autoFocus: true,
480
- disabled: inputDisabled || status !== "connected" || messages.length == 0 || escalationDeflected,
481
+ disabled: isBlockedInput || inputDisabled || status !== "connected" || messages.length == 0 || escalationDeflected,
481
482
  rows: 1
482
483
  }
483
484
  ),
@@ -490,7 +491,7 @@ const ChatWindow = ({
490
491
  ),
491
492
  type: "submit",
492
493
  title: "Send message",
493
- disabled: inputDisabled || status !== "connected" || !input.trim() || messages.length == 0 || escalationDeflected,
494
+ disabled: isBlockedInput || inputDisabled || status !== "connected" || !input.trim() || messages.length == 0 || escalationDeflected,
494
495
  children: /* @__PURE__ */ jsx(
495
496
  "svg",
496
497
  {
@@ -20,7 +20,9 @@ const Chatbot = ({
20
20
  reset,
21
21
  startEscalation,
22
22
  hasEscalated,
23
- endEscalation
23
+ endEscalation,
24
+ blockInput,
25
+ unblockInput
24
26
  } = useOpenChat();
25
27
  const { addMessage, addMessages, clearMessages, messages } = useMessages();
26
28
  const clientRef = useRef(null);
@@ -117,6 +119,7 @@ const Chatbot = ({
117
119
  addMessage(message);
118
120
  if (["end_user"].includes(message.$userType)) {
119
121
  if (!hasEscalated) {
122
+ unblockInput?.();
120
123
  addMessage(typingMessage);
121
124
  }
122
125
  }
@@ -157,19 +160,28 @@ const Chatbot = ({
157
160
  const onChatConnectedHandler = async () => {
158
161
  setStatus("connected");
159
162
  console.log("connected");
160
- const messages2 = await clientRef.current?.fetchMessages();
161
- if (messages2) {
162
- addMessages(messages2);
163
- const hasEscalation = messages2.some(
164
- (msg) => msg.$userType === "user" || ["escalationAccepted", "escalationStarted"].includes(
165
- msg.event
166
- )
167
- );
168
- console.log(hasEscalation);
169
- if (hasEscalation) {
170
- setScalationStarted(true);
171
- startEscalation?.();
163
+ try {
164
+ if (!clientRef.current) {
165
+ console.error("Client not initialized on chat connected");
166
+ return;
172
167
  }
168
+ const messages2 = await clientRef.current?.fetchMessages();
169
+ console.log("Fetched messages on chat connected:", messages2);
170
+ if (messages2) {
171
+ addMessages(messages2);
172
+ const hasEscalation = messages2.some(
173
+ (msg) => msg.$userType === "user" || ["escalationAccepted", "escalationStarted"].includes(
174
+ msg.event
175
+ )
176
+ );
177
+ console.log(hasEscalation);
178
+ if (hasEscalation) {
179
+ setScalationStarted(true);
180
+ startEscalation?.();
181
+ }
182
+ }
183
+ } catch (error) {
184
+ console.error("Error fetching messages on chat connected:", error);
173
185
  }
174
186
  };
175
187
  const registerEventHandlers = () => {
@@ -279,6 +291,9 @@ const Chatbot = ({
279
291
  const onSendMessage = async (msg) => {
280
292
  console.log("Sending message:", msg);
281
293
  await clientRef.current?.sendTextMessage(msg);
294
+ if (!hasEscalated) {
295
+ blockInput?.();
296
+ }
282
297
  };
283
298
  const onEndChat = async () => {
284
299
  console.log("Ending chat");
@@ -11,6 +11,9 @@ interface OpenChatState {
11
11
  hasEscalated?: boolean;
12
12
  startEscalation?: () => void;
13
13
  endEscalation?: () => void;
14
+ isBlockedInput?: boolean;
15
+ blockInput?: () => void;
16
+ unblockInput?: () => void;
14
17
  }
15
18
  export declare const useOpenChat: import('zustand').UseBoundStore<import('zustand').StoreApi<OpenChatState>>;
16
19
  export {};
@@ -17,12 +17,16 @@ const useOpenChat = create((set, get) => ({
17
17
  hasOpenedOnce: false,
18
18
  isOpen: false,
19
19
  showThankyouMessage: false,
20
- hasEscalated: false
20
+ hasEscalated: false,
21
+ isBlockedInput: false
21
22
  }),
22
23
  displayThankyouMessage: () => set({ showThankyouMessage: true }),
23
24
  toggleThankyouMessage: () => set((state) => ({ showThankyouMessage: !state.showThankyouMessage })),
24
25
  startEscalation: () => set({ hasEscalated: true }),
25
- endEscalation: () => set({ hasEscalated: false })
26
+ endEscalation: () => set({ hasEscalated: false }),
27
+ isBlockedInput: false,
28
+ blockInput: () => set({ isBlockedInput: true }),
29
+ unblockInput: () => set({ isBlockedInput: false })
26
30
  }));
27
31
  export {
28
32
  useOpenChat
@@ -1,30 +1,30 @@
1
- import '../../../assets/NavigationMenu/AxosBank/MobileMenu/MobileMenu.css.css';const overlay = "_overlay_7ufer_1";
2
- const drawer = "_drawer_7ufer_9";
3
- const mobileNavRow = "_mobileNavRow_7ufer_29";
4
- const loginTrigger = "_loginTrigger_7ufer_35";
5
- const hamburger = "_hamburger_7ufer_51";
6
- const loginDrawerTitle = "_loginDrawerTitle_7ufer_73";
7
- const loginDrawerContent = "_loginDrawerContent_7ufer_79";
8
- const header = "_header_7ufer_85";
9
- const back = "_back_7ufer_96";
10
- const close = "_close_7ufer_104";
11
- const levelContainer = "_levelContainer_7ufer_115";
12
- const level = "_level_7ufer_115";
13
- const levelTitle = "_levelTitle_7ufer_131";
14
- const menu = "_menu_7ufer_136";
15
- const menuItem = "_menuItem_7ufer_152";
16
- const loginAccordion = "_loginAccordion_7ufer_168";
17
- const loginAccordionList = "_loginAccordionList_7ufer_172";
18
- const loginAccordionGroup = "_loginAccordionGroup_7ufer_178";
19
- const loginAccordionHeading = "_loginAccordionHeading_7ufer_215";
20
- const loginAccordionGroupList = "_loginAccordionGroupList_7ufer_225";
21
- const loginHeading = "_loginHeading_7ufer_269";
22
- const chevron = "_chevron_7ufer_279";
23
- const chevronIcon = "_chevronIcon_7ufer_284";
24
- const quickLinks = "_quickLinks_7ufer_295";
25
- const quickLink = "_quickLink_7ufer_295";
26
- const sr_only = "_sr_only_7ufer_319";
27
- const loginAccordionOverlay = "_loginAccordionOverlay_7ufer_344";
1
+ import '../../../assets/NavigationMenu/AxosBank/MobileMenu/MobileMenu.css.css';const overlay = "_overlay_rqqo3_1";
2
+ const drawer = "_drawer_rqqo3_17";
3
+ const mobileNavRow = "_mobileNavRow_rqqo3_57";
4
+ const loginTrigger = "_loginTrigger_rqqo3_69";
5
+ const hamburger = "_hamburger_rqqo3_101";
6
+ const loginDrawerTitle = "_loginDrawerTitle_rqqo3_145";
7
+ const loginDrawerContent = "_loginDrawerContent_rqqo3_157";
8
+ const header = "_header_rqqo3_169";
9
+ const back = "_back_rqqo3_191";
10
+ const close = "_close_rqqo3_207";
11
+ const levelContainer = "_levelContainer_rqqo3_229";
12
+ const level = "_level_rqqo3_229";
13
+ const levelTitle = "_levelTitle_rqqo3_261";
14
+ const menu = "_menu_rqqo3_271";
15
+ const menuItem = "_menuItem_rqqo3_303";
16
+ const loginAccordion = "_loginAccordion_rqqo3_335";
17
+ const loginAccordionList = "_loginAccordionList_rqqo3_343";
18
+ const loginAccordionGroup = "_loginAccordionGroup_rqqo3_355";
19
+ const loginAccordionHeading = "_loginAccordionHeading_rqqo3_429";
20
+ const loginAccordionGroupList = "_loginAccordionGroupList_rqqo3_449";
21
+ const loginHeading = "_loginHeading_rqqo3_537";
22
+ const chevron = "_chevron_rqqo3_557";
23
+ const chevronIcon = "_chevronIcon_rqqo3_567";
24
+ const quickLinks = "_quickLinks_rqqo3_589";
25
+ const quickLink = "_quickLink_rqqo3_589";
26
+ const sr_only = "_sr_only_rqqo3_637";
27
+ const loginAccordionOverlay = "_loginAccordionOverlay_rqqo3_687";
28
28
  const styles = {
29
29
  overlay,
30
30
  drawer,
@@ -1,9 +1,9 @@
1
1
  @keyframes _13n1jqku {
2
2
  0% {
3
- background-position: -200% 0;
3
+ background-position: 200% 0;
4
4
  }
5
5
  100% {
6
- background-position: 200% 0;
6
+ background-position: -200% 0;
7
7
  }
8
8
  }
9
9
  ._13n1jqk0 {
@@ -301,8 +301,13 @@ button:has(span:hover) ._13n1jqk6 {
301
301
  border-bottom-right-radius: 32px;
302
302
  }
303
303
  ._13n1jqkv {
304
- background: linear-gradient(90deg, var(--_1073cm819) 0%, rgba(255,255,255,0.8) 50%, var(--_1073cm819) 100%);
305
- background-size: 200% 100%;
304
+ background: linear-gradient(
305
+ 90deg,
306
+ var(--_1073cm819) 0%,
307
+ rgba(255,255,255,0.8) 50%,
308
+ var(--_1073cm819) 100%
309
+ );
310
+ background-size: 200% auto;
306
311
  background-clip: text;
307
312
  -webkit-background-clip: text;
308
313
  color: transparent;
@@ -1,353 +1,353 @@
1
- ._overlay_7ufer_1 {
2
- position: fixed;
3
- inset: 0;
4
- height: 100vh;
5
- background: rgba(0, 0, 0, 0.6);
6
- z-index: 10000;
7
- }
8
-
9
- ._drawer_7ufer_9 {
10
- background: #fff;
11
- border-radius: 0 0 0 1rem;
12
- box-shadow: -2px 0 10px rgba(0, 0, 0, 0.15);
13
- max-height: 100vh;
14
- max-width: 500px;
15
- overflow: hidden auto;
16
- position: fixed;
17
- right: 0px;
18
- top: 0;
19
- width: 85%;
20
- scrollbar-width: none;
21
- -ms-overflow-style: none;
22
- z-index: 10001;
23
- }
24
-
25
- ._drawer_7ufer_9::-webkit-scrollbar {
26
- display: none;
27
- }
28
-
29
- ._mobileNavRow_7ufer_29 {
30
- display: flex;
31
- align-items: center;
32
- gap: 16px;
33
- }
34
-
35
- ._loginTrigger_7ufer_35 {
36
- background: transparent;
37
- border: none;
38
- color: var(--_1073cm83);
39
- cursor: pointer;
40
- font-family: var(--header-font-family);
41
- font-size: 1rem;
42
- font-weight: 700;
43
- padding: 0.25rem 0;
44
- transition: opacity 0.2s ease;
45
- }
46
-
47
- ._loginTrigger_7ufer_35:hover {
48
- opacity: 0.85;
49
- }
50
-
51
- ._hamburger_7ufer_51 {
52
- background: transparent;
53
- border: none;
54
- cursor: pointer;
55
- transition: opacity 0.3s ease;
56
- position: relative;
57
- }
58
-
59
- ._hamburger_7ufer_51::before {
60
- content: "";
61
- position: absolute;
62
- left: -7px;
63
- bottom: 0;
64
- height: 28px;
65
- border-left: 2px solid #1f1f1f;
66
- top: -2px;
67
- }
68
-
69
- ._hamburger_7ufer_51:hover {
70
- opacity: 0.8;
71
- }
72
-
73
- ._loginDrawerTitle_7ufer_73 {
74
- font-weight: 700;
75
- font-size: 1rem;
76
- color: var(--_1073cm83);
77
- }
78
-
79
- ._loginDrawerContent_7ufer_79 {
80
- padding: 1rem 1.2rem 1.2rem;
81
- overflow: auto;
82
- flex: 1;
83
- }
84
-
85
- ._header_7ufer_85 {
86
- display: flex;
87
- align-items: center;
88
- background: #f4f4f4;
89
- justify-content: space-between;
90
- padding: 0.9rem 1.2rem 0.9rem 1rem;
91
- position: sticky;
92
- top: 0;
93
- z-index: 1;
94
- }
95
-
96
- ._back_7ufer_96 {
97
- color: var(--_1073cm83);
98
- font-size: 1rem;
99
- font-weight: 700;
100
- line-height: 1;
101
- padding: 0;
102
- }
103
-
104
- ._close_7ufer_104 {
105
- font-size: 1.3rem;
106
- }
107
-
108
- ._back_7ufer_96,
109
- ._close_7ufer_104 {
110
- background: none;
111
- border: none;
112
- cursor: pointer;
113
- }
114
-
115
- ._levelContainer_7ufer_115 {
116
- height: 100%;
117
- position: relative;
118
- }
119
-
120
- ._level_7ufer_115 {
121
- background: var(--_1073cm86);
122
- color: var(--_1073cm85);
123
- font-size: 0.9rem;
124
- padding: 14px 1.2rem;
125
- position: sticky;
126
- top: 54.78px;
127
- width: 100%;
128
- z-index: 1;
129
- }
130
-
131
- ._levelTitle_7ufer_131 {
132
- font: 700 0.9rem / 1.39 var(--main-font-family);
133
- letter-spacing: 0.4px;
134
- }
135
-
136
- ._menu_7ufer_136 {
137
- background-color: transparent;
138
- list-style: none;
139
- margin: 0;
140
- min-height: 100%;
141
- padding: 0 1.2rem;
142
- position: relative;
143
- }
144
-
145
- ._menu_7ufer_136 li {
146
- color: var(--_1073cm83);
147
- font-family: var(--header-font-family);
148
- font-weight: 500;
149
- border-top: 1px solid #e9e9e9;
150
- }
151
-
152
- ._menuItem_7ufer_152 {
153
- display: flex;
154
- align-items: center;
155
- background: none;
156
- border: none;
157
- color: inherit;
158
- cursor: pointer;
159
- font-size: 1rem;
160
- justify-content: space-between;
161
- padding: 0.75rem 0;
162
- text-align: left;
163
- text-decoration: none;
164
- transition: background 0.2s ease;
165
- width: 100%;
166
- }
167
-
168
- ._loginAccordion_7ufer_168 {
169
- padding: 0;
170
- }
171
-
172
- ._loginAccordionList_7ufer_172 {
173
- list-style: none;
174
- margin: 0;
175
- padding: 0;
176
- }
177
-
178
- ._loginAccordionGroup_7ufer_178 {
179
- padding-block: 4px;
180
- }
181
-
182
- ._loginAccordionGroup_7ufer_178 + ._loginAccordionGroup_7ufer_178 {
183
- margin-top: 2px;
184
- position: relative;
185
- }
186
-
187
- ._loginAccordionGroup_7ufer_178:nth-child(4):is(:last-child) {
188
- padding-top: 12px;
189
- margin-top: 12px;
190
- }
191
-
192
- ._loginAccordionGroup_7ufer_178:nth-child(4):is(:last-child)::before {
193
- content: "";
194
- background-color: #8f8f8f;
195
- height: 2px;
196
- opacity: 0.3;
197
- position: absolute;
198
- right: 8px;
199
- top: 0;
200
- width: 94%;
201
- }
202
-
203
- ._loginAccordionGroup_7ufer_178:nth-child(4):is(:last-child) > span {
204
- position: absolute;
205
- border: 0;
206
- clip: rect(0, 0, 0, 0);
207
- height: 1px;
208
- margin: -1px;
209
- overflow: hidden;
210
- padding: 0;
211
- white-space: nowrap;
212
- width: 1px;
213
- }
214
-
215
- ._loginAccordionHeading_7ufer_215 {
216
- display: block;
217
- font-family: var(--header-font-family);
218
- font-weight: 700;
219
- font-size: 18px;
220
- line-height: 1.39;
221
-
222
- padding: 0.35rem 0 0.2rem;
223
- }
224
-
225
- ._loginAccordionGroupList_7ufer_225 {
226
- list-style: none;
227
- margin: 0;
228
- padding: 0 0 0 8px;
229
- }
230
-
231
- ._loginAccordionList_7ufer_172 li {
232
- font-family: var(--header-font-family);
233
- font-weight: 500;
234
- }
235
-
236
- ._loginAccordionList_7ufer_172 li li {
237
- border-top: none;
238
- color: #1e629a;
239
- font-weight: 400;
240
- padding-block: 3px;
241
- font-family: var(--main-font-family);
242
- }
243
-
244
- ._loginAccordionList_7ufer_172 ._menuItem_7ufer_152 {
245
- display: inline;
246
- padding-block: 0px;
247
- }
248
-
249
- ._loginAccordionList_7ufer_172 ._menuItem_7ufer_152:hover {
250
- opacity: 0.7;
251
- }
252
-
253
- ._loginAccordion_7ufer_168 > ._menuItem_7ufer_152 {
254
- padding-block: 4px;
255
- position: relative;
256
- isolation: isolate;
257
- }
258
-
259
- ._loginAccordion_7ufer_168 > ._menuItem_7ufer_152::after {
260
- content: "return to menu";
261
- position: absolute;
262
- right: 36px;
263
- bottom: 50%;
264
- font-size: 12px;
265
- transform: translateY(50%);
266
- letter-spacing: 0.5px;
267
- }
268
-
269
- ._loginHeading_7ufer_269 {
270
- font-family: var(--header-font-family);
271
- font-size: 20px;
272
- font-weight: 700;
273
- line-height: 1;
274
- display: flex;
275
- align-items: center;
276
- gap: 8px;
277
- }
278
-
279
- ._chevron_7ufer_279 {
280
- font-size: 1.2rem;
281
- margin-left: auto;
282
- }
283
-
284
- ._chevronIcon_7ufer_284 {
285
- height: auto;
286
- margin-right: 10px;
287
- max-width: 8px;
288
- }
289
-
290
- body:has(._drawer_7ufer_9) {
291
- overflow-y: hidden;
292
- position: relative;
293
- }
294
-
295
- ._quickLinks_7ufer_295 {
296
- background-color: #e8f7ff;
297
- bottom: 0;
298
- box-shadow: 0 15px 10px -20px rgba(0, 0, 0, 0.45) inset;
299
- gap: 8px;
300
- margin-top: 9px;
301
- padding: 1rem;
302
- position: sticky;
303
- }
304
-
305
- ._quickLink_7ufer_295 {
306
- display: flex;
307
- align-items: center;
308
- color: var(--_1073cm83);
309
- flex-direction: column;
310
- flex: 1 1 0%;
311
- font-size: 0.8rem;
312
- font-weight: 700;
313
- gap: 8px;
314
- line-height: 1.5;
315
- text-decoration: none;
316
- text-transform: uppercase;
317
- }
318
-
319
- ._sr_only_7ufer_319 {
320
- position: absolute;
321
- border: 0;
322
- clip: rect(0, 0, 0, 0);
323
- height: 1px;
324
- margin: -1px;
325
- overflow: hidden;
326
- padding: 0;
327
- white-space: nowrap;
328
- width: 1px;
329
- }
330
-
331
- @media (max-width: 540px) {
332
- ._drawer_7ufer_9 {
333
- border-radius: 0;
334
- max-width: none;
335
- width: 100%;
336
- }
337
- ._menu_7ufer_136 li + li {
338
- margin-top: 3px;
339
- }
340
- ._menuItem_7ufer_152 {
341
- font-size: 0.9rem;
342
- padding: 0.65rem 0;
343
- }
344
- ._loginAccordionOverlay_7ufer_344::before {
345
- opacity: 0.1;
346
- }
347
- }
348
-
349
- @media (min-width: 541px) {
350
- ._drawer_7ufer_9:has(._loginDrawerContent_7ufer_79) {
351
- max-width: 345px;
352
- }
353
- }
1
+ ._overlay_rqqo3_1 {
2
+ position: fixed;
3
+ inset: 0;
4
+ height: 100vh;
5
+ background: rgba(0, 0, 0, 0.6);
6
+ z-index: 10000;
7
+ }
8
+
9
+ ._drawer_rqqo3_17 {
10
+ background: #fff;
11
+ border-radius: 0 0 0 1rem;
12
+ box-shadow: -2px 0 10px rgba(0, 0, 0, 0.15);
13
+ max-height: 100vh;
14
+ max-width: 500px;
15
+ overflow: hidden auto;
16
+ position: fixed;
17
+ right: 0px;
18
+ top: 0;
19
+ width: 85%;
20
+ scrollbar-width: none;
21
+ -ms-overflow-style: none;
22
+ z-index: 10001;
23
+ }
24
+
25
+ ._drawer_rqqo3_17::-webkit-scrollbar {
26
+ display: none;
27
+ }
28
+
29
+ ._mobileNavRow_rqqo3_57 {
30
+ display: flex;
31
+ align-items: center;
32
+ gap: 16px;
33
+ }
34
+
35
+ ._loginTrigger_rqqo3_69 {
36
+ background: transparent;
37
+ border: none;
38
+ color: var(--_1073cm83);
39
+ cursor: pointer;
40
+ font-family: var(--header-font-family);
41
+ font-size: 1rem;
42
+ font-weight: 700;
43
+ padding: 0.25rem 0;
44
+ transition: opacity 0.2s ease;
45
+ }
46
+
47
+ ._loginTrigger_rqqo3_69:hover {
48
+ opacity: 0.85;
49
+ }
50
+
51
+ ._hamburger_rqqo3_101 {
52
+ background: transparent;
53
+ border: none;
54
+ cursor: pointer;
55
+ transition: opacity 0.3s ease;
56
+ position: relative;
57
+ }
58
+
59
+ ._hamburger_rqqo3_101::before {
60
+ content: "";
61
+ position: absolute;
62
+ left: -7px;
63
+ bottom: 0;
64
+ height: 28px;
65
+ border-left: 2px solid #1f1f1f;
66
+ top: -2px;
67
+ }
68
+
69
+ ._hamburger_rqqo3_101:hover {
70
+ opacity: 0.8;
71
+ }
72
+
73
+ ._loginDrawerTitle_rqqo3_145 {
74
+ font-weight: 700;
75
+ font-size: 1rem;
76
+ color: var(--_1073cm83);
77
+ }
78
+
79
+ ._loginDrawerContent_rqqo3_157 {
80
+ padding: 1rem 1.2rem 1.2rem;
81
+ overflow: auto;
82
+ flex: 1;
83
+ }
84
+
85
+ ._header_rqqo3_169 {
86
+ display: flex;
87
+ align-items: center;
88
+ background: #f4f4f4;
89
+ justify-content: space-between;
90
+ padding: 0.9rem 1.2rem 0.9rem 1rem;
91
+ position: sticky;
92
+ top: 0;
93
+ z-index: 1;
94
+ }
95
+
96
+ ._back_rqqo3_191 {
97
+ color: var(--_1073cm83);
98
+ font-size: 1rem;
99
+ font-weight: 700;
100
+ line-height: 1;
101
+ padding: 0;
102
+ }
103
+
104
+ ._close_rqqo3_207 {
105
+ font-size: 1.3rem;
106
+ }
107
+
108
+ ._back_rqqo3_191,
109
+ ._close_rqqo3_207 {
110
+ background: none;
111
+ border: none;
112
+ cursor: pointer;
113
+ }
114
+
115
+ ._levelContainer_rqqo3_229 {
116
+ height: 100%;
117
+ position: relative;
118
+ }
119
+
120
+ ._level_rqqo3_229 {
121
+ background: var(--_1073cm86);
122
+ color: var(--_1073cm85);
123
+ font-size: 0.9rem;
124
+ padding: 14px 1.2rem;
125
+ position: sticky;
126
+ top: 54.78px;
127
+ width: 100%;
128
+ z-index: 1;
129
+ }
130
+
131
+ ._levelTitle_rqqo3_261 {
132
+ font: 700 0.9rem / 1.39 var(--main-font-family);
133
+ letter-spacing: 0.4px;
134
+ }
135
+
136
+ ._menu_rqqo3_271 {
137
+ background-color: transparent;
138
+ list-style: none;
139
+ margin: 0;
140
+ min-height: 100%;
141
+ padding: 0 1.2rem;
142
+ position: relative;
143
+ }
144
+
145
+ ._menu_rqqo3_271 li {
146
+ color: var(--_1073cm83);
147
+ font-family: var(--header-font-family);
148
+ font-weight: 500;
149
+ border-top: 1px solid #e9e9e9;
150
+ }
151
+
152
+ ._menuItem_rqqo3_303 {
153
+ display: flex;
154
+ align-items: center;
155
+ background: none;
156
+ border: none;
157
+ color: inherit;
158
+ cursor: pointer;
159
+ font-size: 1rem;
160
+ justify-content: space-between;
161
+ padding: 0.75rem 0;
162
+ text-align: left;
163
+ text-decoration: none;
164
+ transition: background 0.2s ease;
165
+ width: 100%;
166
+ }
167
+
168
+ ._loginAccordion_rqqo3_335 {
169
+ padding: 0;
170
+ }
171
+
172
+ ._loginAccordionList_rqqo3_343 {
173
+ list-style: none;
174
+ margin: 0;
175
+ padding: 0;
176
+ }
177
+
178
+ ._loginAccordionGroup_rqqo3_355 {
179
+ padding-block: 4px;
180
+ }
181
+
182
+ ._loginAccordionGroup_rqqo3_355 + ._loginAccordionGroup_rqqo3_355 {
183
+ margin-top: 2px;
184
+ position: relative;
185
+ }
186
+
187
+ ._loginAccordionGroup_rqqo3_355:nth-child(4):is(:last-child) {
188
+ padding-top: 12px;
189
+ margin-top: 12px;
190
+ }
191
+
192
+ ._loginAccordionGroup_rqqo3_355:nth-child(4):is(:last-child)::before {
193
+ content: "";
194
+ background-color: #8f8f8f;
195
+ height: 2px;
196
+ opacity: 0.3;
197
+ position: absolute;
198
+ right: 8px;
199
+ top: 0;
200
+ width: 94%;
201
+ }
202
+
203
+ ._loginAccordionGroup_rqqo3_355:nth-child(4):is(:last-child) > span {
204
+ position: absolute;
205
+ border: 0;
206
+ clip: rect(0, 0, 0, 0);
207
+ height: 1px;
208
+ margin: -1px;
209
+ overflow: hidden;
210
+ padding: 0;
211
+ white-space: nowrap;
212
+ width: 1px;
213
+ }
214
+
215
+ ._loginAccordionHeading_rqqo3_429 {
216
+ display: block;
217
+ font-family: var(--header-font-family);
218
+ font-weight: 700;
219
+ font-size: 18px;
220
+ line-height: 1.39;
221
+
222
+ padding: 0.35rem 0 0.2rem;
223
+ }
224
+
225
+ ._loginAccordionGroupList_rqqo3_449 {
226
+ list-style: none;
227
+ margin: 0;
228
+ padding: 0 0 0 8px;
229
+ }
230
+
231
+ ._loginAccordionList_rqqo3_343 li {
232
+ font-family: var(--header-font-family);
233
+ font-weight: 500;
234
+ }
235
+
236
+ ._loginAccordionList_rqqo3_343 li li {
237
+ border-top: none;
238
+ color: #1e629a;
239
+ font-weight: 400;
240
+ padding-block: 3px;
241
+ font-family: var(--main-font-family);
242
+ }
243
+
244
+ ._loginAccordionList_rqqo3_343 ._menuItem_rqqo3_303 {
245
+ display: inline;
246
+ padding-block: 0px;
247
+ }
248
+
249
+ ._loginAccordionList_rqqo3_343 ._menuItem_rqqo3_303:hover {
250
+ opacity: 0.7;
251
+ }
252
+
253
+ ._loginAccordion_rqqo3_335 > ._menuItem_rqqo3_303 {
254
+ padding-block: 4px;
255
+ position: relative;
256
+ isolation: isolate;
257
+ }
258
+
259
+ ._loginAccordion_rqqo3_335 > ._menuItem_rqqo3_303::after {
260
+ content: "return to menu";
261
+ position: absolute;
262
+ right: 36px;
263
+ bottom: 50%;
264
+ font-size: 12px;
265
+ transform: translateY(50%);
266
+ letter-spacing: 0.5px;
267
+ }
268
+
269
+ ._loginHeading_rqqo3_537 {
270
+ font-family: var(--header-font-family);
271
+ font-size: 20px;
272
+ font-weight: 700;
273
+ line-height: 1;
274
+ display: flex;
275
+ align-items: center;
276
+ gap: 8px;
277
+ }
278
+
279
+ ._chevron_rqqo3_557 {
280
+ font-size: 1.2rem;
281
+ margin-left: auto;
282
+ }
283
+
284
+ ._chevronIcon_rqqo3_567 {
285
+ height: auto;
286
+ margin-right: 10px;
287
+ max-width: 8px;
288
+ }
289
+
290
+ body:has(._drawer_rqqo3_17) {
291
+ overflow-y: hidden;
292
+ position: relative;
293
+ }
294
+
295
+ ._quickLinks_rqqo3_589 {
296
+ background-color: #e8f7ff;
297
+ bottom: 0;
298
+ box-shadow: 0 15px 10px -20px rgba(0, 0, 0, 0.45) inset;
299
+ gap: 8px;
300
+ margin-top: 9px;
301
+ padding: 1rem;
302
+ position: sticky;
303
+ }
304
+
305
+ ._quickLink_rqqo3_589 {
306
+ display: flex;
307
+ align-items: center;
308
+ color: var(--_1073cm83);
309
+ flex-direction: column;
310
+ flex: 1 1 0%;
311
+ font-size: 0.8rem;
312
+ font-weight: 700;
313
+ gap: 8px;
314
+ line-height: 1.5;
315
+ text-decoration: none;
316
+ text-transform: uppercase;
317
+ }
318
+
319
+ ._sr_only_rqqo3_637 {
320
+ position: absolute;
321
+ border: 0;
322
+ clip: rect(0, 0, 0, 0);
323
+ height: 1px;
324
+ margin: -1px;
325
+ overflow: hidden;
326
+ padding: 0;
327
+ white-space: nowrap;
328
+ width: 1px;
329
+ }
330
+
331
+ @media (max-width: 540px) {
332
+ ._drawer_rqqo3_17 {
333
+ border-radius: 0;
334
+ max-width: none;
335
+ width: 100%;
336
+ }
337
+ ._menu_rqqo3_271 li + li {
338
+ margin-top: 3px;
339
+ }
340
+ ._menuItem_rqqo3_303 {
341
+ font-size: 0.9rem;
342
+ padding: 0.65rem 0;
343
+ }
344
+ ._loginAccordionOverlay_rqqo3_687::before {
345
+ opacity: 0.1;
346
+ }
347
+ }
348
+
349
+ @media (min-width: 541px) {
350
+ ._drawer_rqqo3_17:has(._loginDrawerContent_rqqo3_157) {
351
+ max-width: 345px;
352
+ }
353
+ }
package/package.json CHANGED
@@ -1,136 +1,136 @@
1
- {
2
- "name": "@axos-web-dev/shared-components",
3
- "description": "Axos shared components library for web.",
4
- "version": "1.0.100-dev.70",
5
- "type": "module",
6
- "module": "dist/main.js",
7
- "types": "dist/main.d.ts",
8
- "files": [
9
- "dist"
10
- ],
11
- "sideEffects": [
12
- "dist/assets/**/*.css"
13
- ],
14
- "scripts": {
15
- "dev": "vite",
16
- "build": "tsc --p ./tsconfig.build.json && vite build",
17
- "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
18
- "preview": "vite preview",
19
- "prepublishOnly": "npm run build",
20
- "check-types": "tsc --pretty --noEmit",
21
- "check-format": "prettier --check .",
22
- "check-lint": "eslint . --ext ts --ext tsx --ext js",
23
- "format": "prettier --write .",
24
- "test-all": "npm run check-format && npm run check-lint && npm run check-types && npm run build",
25
- "prepare": "husky",
26
- "storybook": "storybook dev -p 6006",
27
- "build-storybook": "storybook build",
28
- "npm:link": "npm run build && npm link"
29
- },
30
- "dependencies": {
31
- "@headlessui/react": "^2.2.0",
32
- "@hookform/resolvers": "^3.10.0",
33
- "@next-safe-action/adapter-react-hook-form": "^2.0.0",
34
- "@react-input/mask": "^1.2.15",
35
- "@react-input/number-format": "^1.1.3",
36
- "@storybook/icons": "^1.3.0",
37
- "@storybook/preview-api": "^8.4.7",
38
- "@ts-stack/markdown": "^1.5.0",
39
- "@types/iframe-resizer": "3.5.13",
40
- "@ujet/websdk-headless": "^3.41.4",
41
- "@vanilla-extract/css": "^1.16.1",
42
- "@vanilla-extract/recipes": "^0.5.1",
43
- "antd": "^5.22.5",
44
- "clsx": "^2.1.1",
45
- "framer-motion": "^12.9.2",
46
- "iframe-resizer": "^3.6.6",
47
- "lodash": "^4.17.21",
48
- "moment": "^2.30.1",
49
- "next-safe-action": "^8.0.2",
50
- "react-date-picker": "^11.0.0",
51
- "react-date-range": "^2.0.1",
52
- "react-hook-form": "^7.54.2",
53
- "react-markdown": "^9.1.0",
54
- "react-popper": "^2.3.0",
55
- "react-slick": "^0.30.2",
56
- "react-use": "^17.6.0",
57
- "react-wrap-balancer": "^1.1.1",
58
- "remark-gfm": "^4.0.1",
59
- "rsuite": "^5.75.0",
60
- "slick-carousel": "^1.8.1",
61
- "typed-css-modules": "^0.9.1",
62
- "vite-plugin-svgr": "^4.3.0",
63
- "zod": "^3.24.1",
64
- "zustand": "^4.5.5"
65
- },
66
- "peerDependencies": {
67
- "@vanilla-extract/css-utils": "^0.1.3",
68
- "@vanilla-extract/recipes": "^0.5.1",
69
- "@vanilla-extract/vite-plugin": "^4.0.3",
70
- "next": "^14.1.4",
71
- "react": "^18.2.0",
72
- "react-date-range": "^2.0.1",
73
- "react-dom": "^18.2.0",
74
- "react-popper": "^2.3.0",
75
- "react-slick": "^0.30.2",
76
- "slick-carousel": "^1.8.1"
77
- },
78
- "devDependencies": {
79
- "@chromatic-com/storybook": "^1.9.0",
80
- "@rollup/plugin-alias": "^5.1.1",
81
- "@storybook/addon-essentials": "^8.4.7",
82
- "@storybook/addon-interactions": "^8.4.7",
83
- "@storybook/addon-links": "^8.4.7",
84
- "@storybook/addon-mdx-gfm": "^8.4.7",
85
- "@storybook/addon-onboarding": "^8.4.7",
86
- "@storybook/addon-themes": "^8.4.7",
87
- "@storybook/blocks": "^8.4.7",
88
- "@storybook/react": "^8.6.14",
89
- "@storybook/react-vite": "^8.4.7",
90
- "@storybook/test": "^8.6.14",
91
- "@svgr/core": "^8.1.0",
92
- "@svgr/plugin-prettier": "^8.1.0",
93
- "@svgr/plugin-svgo": "^8.1.0",
94
- "@types/lodash": "^4.17.17",
95
- "@types/node": "^20.19.0",
96
- "@types/react": "^18.3.23",
97
- "@types/react-date-range": "^1.4.9",
98
- "@types/react-datepicker": "^6.2.0",
99
- "@types/react-dom": "^18.3.7",
100
- "@types/react-slick": "^0.23.13",
101
- "@typescript-eslint/eslint-plugin": "^7.18.0",
102
- "@typescript-eslint/parser": "^7.18.0",
103
- "@vanilla-extract/css-utils": "^0.1.4",
104
- "@vanilla-extract/recipes": "^0.5.5",
105
- "@vanilla-extract/vite-plugin": "^4.0.18",
106
- "@vitejs/plugin-react-swc": "^3.7.2",
107
- "esbuild-vanilla-image-loader": "^0.1.3",
108
- "eslint": "^8.57.1",
109
- "eslint-plugin-react-hooks": "^4.6.2",
110
- "eslint-plugin-react-refresh": "^0.4.16",
111
- "eslint-plugin-storybook": "^0.8.0",
112
- "glob": "^10.4.5",
113
- "husky": "^9.1.7",
114
- "next": "^14.1.4",
115
- "prettier": "3.2.5",
116
- "react": "^18.3.1",
117
- "react-dom": "^18.3.1",
118
- "rollup-plugin-preserve-directives": "^0.4.0",
119
- "rollup-plugin-svg-import": "^3.0.0",
120
- "rollup-plugin-svgo": "^2.0.0",
121
- "storybook": "^8.4.7",
122
- "typescript": "^5.7.2",
123
- "typescript-plugin-css-modules": "^5.1.0",
124
- "vite": "^5.4.11",
125
- "vite-plugin-dts": "^3.9.1",
126
- "vite-plugin-lib-inject-css": "^2.1.1",
127
- "vite-plugin-setting-css-module": "^1.1.4",
128
- "vite-tsconfig-paths": "^4.3.2"
129
- },
130
- "main": "index.js",
131
- "directories": {
132
- "lib": "lib"
133
- },
134
- "author": "axos-web-dev",
135
- "license": "ISC"
136
- }
1
+ {
2
+ "name": "@axos-web-dev/shared-components",
3
+ "description": "Axos shared components library for web.",
4
+ "version": "1.0.100-dev.70-slow-msg",
5
+ "type": "module",
6
+ "module": "dist/main.js",
7
+ "types": "dist/main.d.ts",
8
+ "files": [
9
+ "dist"
10
+ ],
11
+ "sideEffects": [
12
+ "dist/assets/**/*.css"
13
+ ],
14
+ "scripts": {
15
+ "dev": "vite",
16
+ "build": "tsc --p ./tsconfig.build.json && vite build",
17
+ "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
18
+ "preview": "vite preview",
19
+ "prepublishOnly": "npm run build",
20
+ "check-types": "tsc --pretty --noEmit",
21
+ "check-format": "prettier --check .",
22
+ "check-lint": "eslint . --ext ts --ext tsx --ext js",
23
+ "format": "prettier --write .",
24
+ "test-all": "npm run check-format && npm run check-lint && npm run check-types && npm run build",
25
+ "prepare": "husky",
26
+ "storybook": "storybook dev -p 6006",
27
+ "build-storybook": "storybook build",
28
+ "npm:link": "npm run build && npm link"
29
+ },
30
+ "dependencies": {
31
+ "@headlessui/react": "^2.2.0",
32
+ "@hookform/resolvers": "^3.10.0",
33
+ "@next-safe-action/adapter-react-hook-form": "^2.0.0",
34
+ "@react-input/mask": "^1.2.15",
35
+ "@react-input/number-format": "^1.1.3",
36
+ "@storybook/icons": "^1.3.0",
37
+ "@storybook/preview-api": "^8.4.7",
38
+ "@ts-stack/markdown": "^1.5.0",
39
+ "@types/iframe-resizer": "3.5.13",
40
+ "@ujet/websdk-headless": "^3.41.4",
41
+ "@vanilla-extract/css": "^1.16.1",
42
+ "@vanilla-extract/recipes": "^0.5.1",
43
+ "antd": "^5.22.5",
44
+ "clsx": "^2.1.1",
45
+ "framer-motion": "^12.9.2",
46
+ "iframe-resizer": "^3.6.6",
47
+ "lodash": "^4.17.21",
48
+ "moment": "^2.30.1",
49
+ "next-safe-action": "^8.0.2",
50
+ "react-date-picker": "^11.0.0",
51
+ "react-date-range": "^2.0.1",
52
+ "react-hook-form": "^7.54.2",
53
+ "react-markdown": "^9.1.0",
54
+ "react-popper": "^2.3.0",
55
+ "react-slick": "^0.30.2",
56
+ "react-use": "^17.6.0",
57
+ "react-wrap-balancer": "^1.1.1",
58
+ "remark-gfm": "^4.0.1",
59
+ "rsuite": "^5.75.0",
60
+ "slick-carousel": "^1.8.1",
61
+ "typed-css-modules": "^0.9.1",
62
+ "vite-plugin-svgr": "^4.3.0",
63
+ "zod": "^3.24.1",
64
+ "zustand": "^4.5.5"
65
+ },
66
+ "peerDependencies": {
67
+ "@vanilla-extract/css-utils": "^0.1.3",
68
+ "@vanilla-extract/recipes": "^0.5.1",
69
+ "@vanilla-extract/vite-plugin": "^4.0.3",
70
+ "next": "^14.1.4",
71
+ "react": "^18.2.0",
72
+ "react-date-range": "^2.0.1",
73
+ "react-dom": "^18.2.0",
74
+ "react-popper": "^2.3.0",
75
+ "react-slick": "^0.30.2",
76
+ "slick-carousel": "^1.8.1"
77
+ },
78
+ "devDependencies": {
79
+ "@chromatic-com/storybook": "^1.9.0",
80
+ "@rollup/plugin-alias": "^5.1.1",
81
+ "@storybook/addon-essentials": "^8.4.7",
82
+ "@storybook/addon-interactions": "^8.4.7",
83
+ "@storybook/addon-links": "^8.4.7",
84
+ "@storybook/addon-mdx-gfm": "^8.4.7",
85
+ "@storybook/addon-onboarding": "^8.4.7",
86
+ "@storybook/addon-themes": "^8.4.7",
87
+ "@storybook/blocks": "^8.4.7",
88
+ "@storybook/react": "^8.6.14",
89
+ "@storybook/react-vite": "^8.4.7",
90
+ "@storybook/test": "^8.6.14",
91
+ "@svgr/core": "^8.1.0",
92
+ "@svgr/plugin-prettier": "^8.1.0",
93
+ "@svgr/plugin-svgo": "^8.1.0",
94
+ "@types/lodash": "^4.17.17",
95
+ "@types/node": "^20.19.0",
96
+ "@types/react": "^18.3.23",
97
+ "@types/react-date-range": "^1.4.9",
98
+ "@types/react-datepicker": "^6.2.0",
99
+ "@types/react-dom": "^18.3.7",
100
+ "@types/react-slick": "^0.23.13",
101
+ "@typescript-eslint/eslint-plugin": "^7.18.0",
102
+ "@typescript-eslint/parser": "^7.18.0",
103
+ "@vanilla-extract/css-utils": "^0.1.4",
104
+ "@vanilla-extract/recipes": "^0.5.5",
105
+ "@vanilla-extract/vite-plugin": "^4.0.18",
106
+ "@vitejs/plugin-react-swc": "^3.7.2",
107
+ "esbuild-vanilla-image-loader": "^0.1.3",
108
+ "eslint": "^8.57.1",
109
+ "eslint-plugin-react-hooks": "^4.6.2",
110
+ "eslint-plugin-react-refresh": "^0.4.16",
111
+ "eslint-plugin-storybook": "^0.8.0",
112
+ "glob": "^10.4.5",
113
+ "husky": "^9.1.7",
114
+ "next": "^14.1.4",
115
+ "prettier": "3.2.5",
116
+ "react": "^18.3.1",
117
+ "react-dom": "^18.3.1",
118
+ "rollup-plugin-preserve-directives": "^0.4.0",
119
+ "rollup-plugin-svg-import": "^3.0.0",
120
+ "rollup-plugin-svgo": "^2.0.0",
121
+ "storybook": "^8.4.7",
122
+ "typescript": "^5.7.2",
123
+ "typescript-plugin-css-modules": "^5.1.0",
124
+ "vite": "^5.4.11",
125
+ "vite-plugin-dts": "^3.9.1",
126
+ "vite-plugin-lib-inject-css": "^2.1.1",
127
+ "vite-plugin-setting-css-module": "^1.1.4",
128
+ "vite-tsconfig-paths": "^4.3.2"
129
+ },
130
+ "main": "index.js",
131
+ "directories": {
132
+ "lib": "lib"
133
+ },
134
+ "author": "axos-web-dev",
135
+ "license": "ISC"
136
+ }