sixseconds-modules 2.0.4 → 3.0.5

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 (65) hide show
  1. package/dist/components/common/Avatar.d.ts +10 -0
  2. package/dist/components/common/Badge.d.ts +9 -0
  3. package/dist/components/common/Btn.d.ts +10 -0
  4. package/dist/components/common/Dialog.d.ts +17 -0
  5. package/dist/components/common/Dropdown.d.ts +10 -0
  6. package/dist/components/common/IconBtn.d.ts +7 -0
  7. package/dist/components/common/Input.d.ts +9 -0
  8. package/dist/components/common/icons.d.ts +7 -0
  9. package/dist/components/common/index.d.ts +8 -0
  10. package/dist/components/dialogs/{changePasswrod.d.ts → ChangePasswordDialog.d.ts} +2 -2
  11. package/dist/components/dialogs/{dangerDialog.d.ts → DangerDialog.d.ts} +1 -1
  12. package/dist/components/dialogs/{viewProfile.d.ts → ViewProfileDialog.d.ts} +2 -2
  13. package/dist/components/dialogs/index.d.ts +3 -2
  14. package/dist/components/elements/BackArrow.d.ts +8 -0
  15. package/dist/components/elements/FormikErrorMsg.d.ts +6 -0
  16. package/dist/components/elements/Warning.d.ts +6 -0
  17. package/dist/components/elements/index.d.ts +3 -4
  18. package/dist/components/features/PreviousLoginBanner.d.ts +9 -0
  19. package/dist/components/features/index.d.ts +1 -1
  20. package/dist/components/header/AppMenus.d.ts +17 -0
  21. package/dist/components/header/Header.d.ts +8 -0
  22. package/dist/components/header/Language.d.ts +11 -0
  23. package/dist/components/header/Logo.d.ts +6 -0
  24. package/dist/components/header/MainMenu.d.ts +8 -0
  25. package/dist/components/header/Notification.d.ts +12 -0
  26. package/dist/components/header/UserProfile.d.ts +11 -0
  27. package/dist/components/header/index.d.ts +3 -13
  28. package/dist/components/header/types.d.ts +82 -0
  29. package/dist/components/index.d.ts +5 -5
  30. package/dist/hooks/index.d.ts +2 -0
  31. package/dist/hooks/useClickAway.d.ts +7 -0
  32. package/dist/hooks/useMediaQuery.d.ts +3 -0
  33. package/dist/index.cjs.js +956 -15071
  34. package/dist/index.cjs.js.map +1 -1
  35. package/dist/index.d.ts +6 -6
  36. package/dist/index.es.js +915 -15030
  37. package/dist/index.es.js.map +1 -1
  38. package/dist/main.d.ts +0 -1
  39. package/package.json +20 -26
  40. package/README.md +0 -1
  41. package/dist/components/buttons/button.d.ts +0 -12
  42. package/dist/components/buttons/buttonStyled.d.ts +0 -2
  43. package/dist/components/buttons/index.d.ts +0 -1
  44. package/dist/components/change-password/changePasswordStyled.d.ts +0 -2
  45. package/dist/components/change-password/index.d.ts +0 -8
  46. package/dist/components/dialogs/styles.d.ts +0 -3
  47. package/dist/components/elements/backArrow.d.ts +0 -7
  48. package/dist/components/elements/formikMsg.d.ts +0 -6
  49. package/dist/components/elements/logo.d.ts +0 -6
  50. package/dist/components/elements/warning.d.ts +0 -5
  51. package/dist/components/features/previousLoginBanner.d.ts +0 -8
  52. package/dist/components/header/appMenus.d.ts +0 -12
  53. package/dist/components/header/dropDownMenu.d.ts +0 -9
  54. package/dist/components/header/language.d.ts +0 -13
  55. package/dist/components/header/notification.d.ts +0 -10
  56. package/dist/components/header/subheaderStyled.d.ts +0 -2
  57. package/dist/components/header/type.d.ts +0 -93
  58. package/dist/components/header/userProfile.d.ts +0 -12
  59. package/dist/components/inputFields/index.d.ts +0 -1
  60. package/dist/components/inputFields/labeledInput.d.ts +0 -17
  61. package/dist/providers/index.d.ts +0 -2
  62. package/dist/providers/mui.d.ts +0 -6
  63. package/dist/providers/shadowIsland.d.ts +0 -19
  64. package/dist/styles.css +0 -461
  65. package/dist/vite.svg +0 -1
package/dist/styles.css DELETED
@@ -1,461 +0,0 @@
1
- @import url("https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap");
2
-
3
- /* ==========================================================================
4
- Style isolation — keep the header looking the same in every host app.
5
-
6
- Two layers work together (see providers/shadowIsland.tsx):
7
- 1. `:host` — the Shadow DOM boundary reset. Inherited properties
8
- (font, color, line-height, letter-spacing, text-align, …) are the
9
- only things that cross a shadow boundary, so we neutralise them once
10
- here and re-establish our own baseline. Host author rules cannot
11
- reach past the boundary at all.
12
- 2. `:where(.sixseconds-header-root …)` — a small, zero-specificity baseline
13
- (box-sizing, replaced-element sizing) that replaces the host normalize the
14
- boundary blocks, without ever overriding the component's own styles.
15
-
16
- Inside the shadow tree the boundary already blocks the host's author CSS, so
17
- NO aggressive `all: revert` is used here — that would strip the very baseline
18
- the header needs (the host's global normalize no longer reaches inside the
19
- boundary), which is what made replaced elements render at their intrinsic
20
- size. Instead we provide our own small baseline below, written with `:where()`
21
- so it has ZERO specificity and can never override the component's own Emotion
22
- styles (a plain `.sixseconds-header-root svg {}` would be (0,1,1) and would
23
- clobber MUI icon sizing).
24
- ========================================================================== */
25
- :host {
26
- /* `!important` is load-bearing: for NORMAL declarations the outer (document)
27
- tree wins the shadow cascade, so a host page rule that happens to match our
28
- host element (e.g. `div { font-family: … }`) would otherwise beat this reset
29
- and re-leak inherited props across the boundary. `!important` makes the inner
30
- (shadow) tree win. `all` intentionally leaves `direction`/`unicode-bidi` and
31
- custom properties untouched, so RTL context still inherits (the header has
32
- `[dir='rtl']` handling) — this is desired. Our isolated MUI theme does not
33
- enable CSS variables, so no `--mui-*` host var is consumed inside the tree. */
34
- all: initial !important;
35
- box-sizing: border-box !important;
36
- display: block !important;
37
- font-family: "Inter", sans-serif !important;
38
- color: #1a1c1e !important;
39
- line-height: 1.5 !important;
40
- text-align: start !important;
41
- -webkit-font-smoothing: antialiased !important;
42
- }
43
-
44
- /* Baseline for the isolated tree — replaces what the host's normalize used to
45
- provide. `:where()` keeps specificity at 0 so Emotion/MUI always win; these
46
- rules only fill in defaults nothing else sets. */
47
- :where(.sixseconds-header-root),
48
- :where(.sixseconds-header-root *),
49
- :where(.sixseconds-header-root *::before),
50
- :where(.sixseconds-header-root *::after) {
51
- box-sizing: border-box;
52
- }
53
-
54
- :where(.sixseconds-header-root img),
55
- :where(.sixseconds-header-root svg),
56
- :where(.sixseconds-header-root video),
57
- :where(.sixseconds-header-root canvas) {
58
- max-width: 100%;
59
- }
60
-
61
- :where(.sixseconds-header-root img),
62
- :where(.sixseconds-header-root svg),
63
- :where(.sixseconds-header-root video) {
64
- height: auto;
65
- }
66
-
67
- .sixseconds-header-root blockquote,
68
- .sixseconds-header-root dl,
69
- .sixseconds-header-root dd,
70
- .sixseconds-header-root h1,
71
- .sixseconds-header-root h2,
72
- .sixseconds-header-root h3,
73
- .sixseconds-header-root h4,
74
- .sixseconds-header-root h5,
75
- .sixseconds-header-root h6,
76
- .sixseconds-header-root hr,
77
- .sixseconds-header-root figure,
78
- .sixseconds-header-root p,
79
- .sixseconds-header-root pre,
80
- .sixseconds-header-root span,
81
- .sixseconds-header-root a,
82
- .sixseconds-header-root div,
83
- .sixseconds-header-root li,
84
- .sixseconds-header-root button {
85
- font-family: "Inter", sans-serif !important;
86
- }
87
-
88
- .sixseconds-header-main-list-menu {
89
- display: flex;
90
- }
91
-
92
- .sixseconds-header-main-list-menu li {
93
- padding: 0.5rem 0.5rem;
94
- }
95
-
96
- .sixseconds-header-main-list-menu li a {
97
- padding: 0 0.25rem;
98
- font-weight: 500;
99
- font-size: 12px;
100
- }
101
-
102
- .sixseconds-header-main-list-menu .sixseconds-header-menu-item {
103
- position: relative;
104
- padding: 0 16px;
105
- display: flex;
106
- align-items: center;
107
- height: 100%;
108
- }
109
-
110
- .sixseconds-header-main-list-menu .sixseconds-header-menu-link {
111
- text-decoration: none;
112
- color: #2a2a2a;
113
- /* Closer to 6seconds */
114
- font-weight: 500;
115
- font-size: 15px;
116
- padding: 8px 4px;
117
- transition: color 0.2s ease;
118
- font-family: "Inter", sans-serif;
119
- display: flex;
120
- align-items: center;
121
- gap: 4px;
122
- }
123
-
124
- .sixseconds-header-main-list-menu .sixseconds-header-menu-link:hover {
125
- color: #0073b1;
126
- }
127
-
128
- /* Submenu (Dropdown) */
129
- .sixseconds-header-main-list-menu .sixseconds-header-submenu-data {
130
- position: absolute;
131
- top: 150%;
132
- left: 0;
133
- background: white;
134
- border: 1px solid #e2e8f0;
135
- border-top: 3px solid #0073b1;
136
- box-shadow:
137
- 0px 12px 48px rgba(0, 0, 0, 0.12),
138
- 0 4px 16px rgba(0, 0, 0, 0.08);
139
- /* Even more premium shadow */
140
- display: block;
141
- opacity: 0;
142
- visibility: hidden;
143
- transform: translateY(12px);
144
- width: 200px;
145
- z-index: 1000;
146
- border-radius: 4px;
147
- /* More angular per 6seconds style */
148
- padding: 8px 0;
149
- transition:
150
- opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1),
151
- transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
152
- visibility 0.25s;
153
- }
154
-
155
- .sixseconds-header-main-list-menu .sixseconds-header-submenu-data li {
156
- list-style: none;
157
- padding: 0;
158
- }
159
-
160
- .sixseconds-header-main-list-menu .sixseconds-header-submenu-link {
161
- display: block;
162
- padding: 12px 28px;
163
- text-decoration: none;
164
- color: #2a2a2a;
165
- /* Darker grey */
166
- font-weight: 400;
167
- font-size: 14.5px;
168
- line-height: 1.4;
169
- white-space: normal;
170
- transition: all 0.2s ease;
171
- }
172
-
173
- .sixseconds-header-main-list-menu .sixseconds-header-submenu-link:hover {
174
- background: #f0f7fb;
175
- color: #0073b1;
176
- padding-left: 32px;
177
- /* Slight nudge */
178
- }
179
-
180
- /* Caret rotation on hover */
181
- .sixseconds-header-main-list-menu .sixseconds-header-menu-item:hover .sixseconds-header-desktop-caret {
182
- transform: rotate(180deg);
183
- }
184
-
185
- /* Show dropdown on hover */
186
- .sixseconds-header-main-list-menu .sixseconds-header-menu-item:hover .sixseconds-header-submenu-data {
187
- opacity: 1;
188
- visibility: visible;
189
- transform: translateY(0);
190
- }
191
-
192
- .sixseconds-header-small-device-menu {
193
- display: none;
194
- width: 100%;
195
- left: 0;
196
- top: 64px;
197
- background-color: #fff;
198
- position: fixed;
199
- overflow-y: auto;
200
- height: 95vh;
201
- box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
202
- }
203
-
204
- .sixseconds-header-small-device-menu a.sixseconds-header-bg-main-menu {
205
- display: block;
206
- text-decoration: none;
207
- }
208
-
209
- .sixseconds-header-submenu-child li {
210
- padding: 0.5rem 0;
211
- }
212
-
213
- .sixseconds-header-submenu-child li a {
214
- text-decoration: none;
215
- }
216
-
217
- .sixseconds-header-layout-mobile-menu {
218
- padding-bottom: 12px;
219
- padding-inline: 0;
220
- height: 95vh;
221
- overflow-y: auto;
222
- padding-top: 8px;
223
- }
224
-
225
- .sixseconds-header-small-device-menu a {
226
- background-color: transparent;
227
- font-size: 16px;
228
- /* Slightly larger */
229
- font-weight: 600;
230
- /* Bolder for parent items */
231
- color: #1a1c1e;
232
- margin-bottom: 4px;
233
- padding: 16px 20px;
234
- border-bottom: 1px solid #f1f3f4;
235
- display: flex;
236
- align-items: center;
237
- justify-content: space-between;
238
- }
239
-
240
- .sixseconds-header-small-device-menu .sixseconds-header-submenu-child {
241
- padding-left: 0px;
242
- min-width: 100%;
243
- max-width: 100%;
244
- margin-top: 0;
245
- background-color: #fbfbfc;
246
- /* Slightly different background for sub-items */
247
- color: #1a1c1e;
248
- }
249
-
250
- .sixseconds-header-small-device-menu ul li .sixseconds-header-submenu-child-link {
251
- padding: 12px 32px;
252
- /* Indent more */
253
- font-weight: 400;
254
- /* Regular weight for sub-links */
255
- font-size: 14px;
256
- }
257
-
258
- .sixseconds-header-small-device-menu ul li a {
259
- background-color: transparent;
260
- color: #4a4d50;
261
- }
262
-
263
- .sixseconds-header-small-device-menu ul {
264
- padding-left: 15px;
265
- }
266
-
267
- .sixseconds-header-desktop-menu {
268
- display: flex;
269
- }
270
-
271
- .sixseconds-header-button-hamburger {
272
- display: none;
273
- position: absolute;
274
- right: 20px;
275
- top: 18px;
276
- z-index: 9;
277
- }
278
-
279
- .sixseconds-header-root .tox-editor-header {
280
- background-color: transparent;
281
- }
282
-
283
- .sixseconds-header-hamburger-icon-btn {
284
- padding: 8px;
285
- color: #5f6368;
286
- }
287
-
288
- .sixseconds-header-desktop-menu .sixseconds-header-menu-item .sixseconds-header-menu-link {
289
- font-size: 14px;
290
- font-weight: 500;
291
- }
292
-
293
- .sixseconds-header-small-device-menu {
294
- padding-inline: 20px;
295
- }
296
-
297
- @media screen and (max-width: 600px) and (min-width: 320px) {
298
- .sixseconds-header-notification-icon-error .MuiBadge-badge {
299
- font-size: 10px;
300
- padding: 0 4px;
301
- min-width: 16px;
302
- right: 5px;
303
- background-color: #d32f2f;
304
- }
305
-
306
- .sixseconds-header-submenu nav {
307
- padding: 0 !important;
308
- }
309
-
310
- .sixseconds-header-root .MuiPagination-root.MuiPagination-outlined {
311
- display: flex;
312
- justify-content: center;
313
- margin-left: 0;
314
- }
315
-
316
- .sixseconds-header-toggle-btn-menu {
317
- position: absolute;
318
- right: 20px;
319
- top: 12px;
320
- z-index: 99;
321
- }
322
-
323
- .sixseconds-header-right-icons {
324
- padding-right: 25px;
325
- }
326
-
327
- .sixseconds-header-button-hamburger {
328
- display: block;
329
- }
330
-
331
- .sixseconds-header-desktop-menu {
332
- display: none;
333
- }
334
-
335
- .sixseconds-header-small-device-menu {
336
- display: block;
337
- width: 100%;
338
- position: fixed;
339
- left: 0;
340
- background: #fff;
341
- top: 64px;
342
- }
343
-
344
- .main.sixseconds-header-login-page .sixseconds-header-login-body {
345
- width: 90% !important;
346
- }
347
-
348
- .sixseconds-header-submenu {
349
- width: 100%;
350
- max-width: 100% !important;
351
- }
352
-
353
- .sixseconds-header-sidebar {
354
- width: 280px !important;
355
- background-color: #f9fafb;
356
- z-index: 99;
357
- border-right: 1px solid #e0e0e0;
358
- }
359
-
360
- .sixseconds-header-sidemenu {
361
- width: 280px;
362
- background-color: #f9fafb;
363
- }
364
-
365
- .sixseconds-header-logo {
366
- opacity: 1;
367
- }
368
-
369
- .sixseconds-header-profile .sixseconds-header-menu {
370
- min-width: 280px;
371
- width: 100% !important;
372
- }
373
- }
374
-
375
- @media screen and (max-width: 1024px) and (min-width: 600px) {
376
- .sixseconds-header-toggle-btn-menu {
377
- position: absolute;
378
- right: 20px;
379
- top: 12px;
380
- }
381
-
382
- .sixseconds-header-right-icons {
383
- padding-right: 25px;
384
- }
385
-
386
- .sixseconds-header-button-hamburger {
387
- display: block;
388
- }
389
-
390
- .sixseconds-header-desktop-menu {
391
- display: none;
392
- }
393
-
394
- .sixseconds-header-small-device-menu {
395
- display: block;
396
- }
397
-
398
- .main.sixseconds-header-login-page .sixseconds-header-login-body {
399
- width: 450px !important;
400
- }
401
-
402
- .sixseconds-header-banner {
403
- margin-left: 0 !important;
404
- }
405
-
406
- .sixseconds-header-submenu {
407
- width: 100%;
408
- max-width: 100% !important;
409
- }
410
-
411
- .sixseconds-header-sidebar {
412
- width: 280px !important;
413
- background-color: #f9fafb;
414
- z-index: 99;
415
- }
416
-
417
- .sixseconds-header-sidemenu {
418
- width: 280px;
419
- background-color: #f9fafb;
420
- }
421
-
422
- .sixseconds-header-logo {
423
- opacity: 1;
424
- }
425
-
426
- .sixseconds-header-profile .sixseconds-header-menu {
427
- min-width: 280px;
428
- width: 100% !important;
429
- }
430
- }
431
-
432
- @media screen and (max-width: 1380px) and (min-width: 1024px) {
433
- .sixseconds-header-right-icons {
434
- padding-right: 25px;
435
- }
436
-
437
- .sixseconds-header-button-hamburger {
438
- display: block;
439
- }
440
-
441
- .sixseconds-header-desktop-menu {
442
- display: none;
443
- }
444
-
445
- .sixseconds-header-small-device-menu {
446
- display: block;
447
- width: 100%;
448
- position: fixed;
449
- left: 0;
450
- background: #fff;
451
- top: 64px;
452
- }
453
-
454
- .sixseconds-header-button-hamburger {
455
- display: block;
456
- }
457
-
458
- .sixseconds-header-right-icons {
459
- padding-right: 25px;
460
- }
461
- }
package/dist/vite.svg DELETED
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>