ab-nextjs-core 0.1.0 → 0.1.2

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.
@@ -0,0 +1,155 @@
1
+ /*
2
+ * @license MIT
3
+ * ~~~~~~~~~~~~
4
+ * ab-nextjs-core
5
+ * ~~~~~~~~~~~~
6
+ * Copyright (c) 2026 Abraham Ukachi. The abElements Project.
7
+ *
8
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
9
+ * of this software and associated documentation files (the 'Software'), to deal
10
+ * in the Software without restriction, including without limitation the rights
11
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
+ * copies of the Software, and to permit persons to whom the Software is
13
+ * furnished to do so, subject to the following conditions:
14
+ *
15
+ * The above copyright notice and this permission notice shall be included in all
16
+ * copies or substantial portions of the Software.
17
+ *
18
+ * THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24
+ * SOFTWARE.
25
+ *
26
+ * @project: ab-nextjs-core
27
+ * @name: AB Aside Layout (server) - Component Stylesheet (plain CSS, Tailwind-independent)
28
+ * @file: server/ab-aside-layout/styles.module.css
29
+ * @type: CSS Module
30
+ * @authors: Abraham Ukachi <abraham.ukachi@laplateforme.io>
31
+ */
32
+
33
+ /*
34
+ * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
35
+ * MOTTO: We'll always do more 😜!!!
36
+ * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
37
+ */
38
+
39
+
40
+ /* ===== AB ASIDE LAYOUT STYLES ===== */
41
+
42
+ .abAsideLayout {
43
+ display: flex;
44
+ flex-direction: column;
45
+ width: 100%;
46
+ height: 100%;
47
+ z-index: 10;
48
+ background-color: var(--color-background, var(--surface, #ffffff));
49
+ }
50
+
51
+ @media (min-width: 1536px) {
52
+ .abAsideLayout {
53
+ margin-left: 0.75rem;
54
+ border-radius: 1.5rem;
55
+ }
56
+ }
57
+
58
+ :global(.dark) .abAsideLayout,
59
+ :global([data-theme="dark"]) .abAsideLayout {
60
+ background-color: var(--color-dark-background, var(--surface, #0a0a0a));
61
+ }
62
+
63
+ @media (max-width: 767px) {
64
+ .abAsideLayout__divider { visibility: hidden; }
65
+ }
66
+
67
+ @media (min-width: 1536px) {
68
+ .abAsideLayout__divider { visibility: hidden; }
69
+ }
70
+
71
+ .abAsideLayout__headerWrapper {
72
+ position: relative;
73
+ display: flex;
74
+ flex-direction: column;
75
+ width: 100%;
76
+ height: auto;
77
+ z-index: 20;
78
+ pointer-events: none;
79
+ }
80
+
81
+ .abAsideLayout__contentWrapper {
82
+ position: relative;
83
+ display: flex;
84
+ flex-direction: column;
85
+ width: 100%;
86
+ height: auto;
87
+ flex-grow: 1;
88
+ justify-content: space-between;
89
+ z-index: 10;
90
+ overflow: auto;
91
+ overflow-x: hidden;
92
+ }
93
+
94
+ .abAsideLayout__footerWrapper {
95
+ position: relative;
96
+ display: flex;
97
+ flex-direction: column;
98
+ width: 100%;
99
+ height: auto;
100
+ z-index: 20;
101
+ pointer-events: none;
102
+ }
103
+
104
+ .abAsideLayout__footerWrapper::before {
105
+ content: "";
106
+ position: absolute;
107
+ inset: 0;
108
+ width: 100%;
109
+ height: 100%;
110
+ z-index: -1;
111
+ transform: translateY(-100%);
112
+ background-image: linear-gradient(to bottom, transparent, var(--color-background, var(--surface, #ffffff)));
113
+ }
114
+
115
+ :global(.dark) .abAsideLayout__footerWrapper::before,
116
+ :global([data-theme="dark"]) .abAsideLayout__footerWrapper::before {
117
+ background-image: linear-gradient(to bottom, transparent, var(--color-dark-background, var(--surface, #0a0a0a)));
118
+ }
119
+
120
+ .abAsideLayout__backdrop {
121
+ position: absolute;
122
+ inset: 0;
123
+ width: 100%;
124
+ height: 100%;
125
+ z-index: 40;
126
+ backdrop-filter: blur(4px);
127
+ }
128
+
129
+ .abAsideLayout__menus,
130
+ .abAsideLayout__dialogs,
131
+ .abAsideLayout__toasts {
132
+ position: absolute;
133
+ inset: 0;
134
+ width: 100%;
135
+ height: 100%;
136
+ z-index: 50;
137
+ }
138
+
139
+ .abAsideLayout__toasts {
140
+ animation: abCoreFadeIn 300ms ease-in-out;
141
+ }
142
+
143
+ .abAsideLayout__canvas {
144
+ position: absolute;
145
+ inset: 0;
146
+ width: 100%;
147
+ height: 100%;
148
+ pointer-events: none;
149
+ z-index: 50;
150
+ }
151
+
152
+ @keyframes abCoreFadeIn {
153
+ from { opacity: 0; }
154
+ to { opacity: 1; }
155
+ }
@@ -0,0 +1,119 @@
1
+ /*
2
+ * @license MIT
3
+ * ~~~~~~~~~~~~
4
+ * ab-nextjs-core
5
+ * ~~~~~~~~~~~~
6
+ * Copyright (c) 2026 Abraham Ukachi. The abElements Project.
7
+ *
8
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
9
+ * of this software and associated documentation files (the 'Software'), to deal
10
+ * in the Software without restriction, including without limitation the rights
11
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
+ * copies of the Software, and to permit persons to whom the Software is
13
+ * furnished to do so, subject to the following conditions:
14
+ *
15
+ * The above copyright notice and this permission notice shall be included in all
16
+ * copies or substantial portions of the Software.
17
+ *
18
+ * THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24
+ * SOFTWARE.
25
+ *
26
+ * @project: ab-nextjs-core
27
+ * @authors: Abraham Ukachi <abraham.ukachi@laplateforme.io>
28
+ */
29
+
30
+ /*
31
+ * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
32
+ * MOTTO: We'll always do more 😜!!!
33
+ * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
34
+ */
35
+
36
+ import type { ReactElement, ReactNode } from 'react';
37
+ import clsx from 'clsx';
38
+ import AbLinearProgress from '../../ab-linear-progress';
39
+ import styles from './styles.module.css';
40
+
41
+ export interface AbMainLayoutProps {
42
+ orientation: 'vertical' | 'horizontal';
43
+ className?: string;
44
+ hidden?: boolean;
45
+ pageName?: string;
46
+ screenName?: string;
47
+ header?: ReactNode;
48
+ content?: ReactNode;
49
+ footer?: ReactNode;
50
+ children?: ReactNode;
51
+ menus?: ReactNode;
52
+ }
53
+
54
+ /**
55
+ * Ab Main Layout — Core Server Component (from LYD LydMainLayout).
56
+ */
57
+ const AbMainLayout = ({
58
+ orientation,
59
+ className,
60
+ hidden,
61
+ pageName,
62
+ screenName,
63
+ header,
64
+ content,
65
+ footer,
66
+ children,
67
+ menus,
68
+ }: AbMainLayoutProps): ReactElement => {
69
+ return (
70
+ <main
71
+ className={clsx(
72
+ ['AbMainLayout', 'group-mainLayout', styles.abMainLayout, className],
73
+ { 'has-screen-name': !!screenName },
74
+ )}
75
+ style={{ maxHeight: screenName ? 'initial' : undefined }}
76
+ hidden={hidden}
77
+ data-page-name={pageName}
78
+ data-screen-name={screenName}
79
+ >
80
+ <div className={clsx(['HeaderWrapper', styles.abMainLayout__headerWrapper])}>
81
+ {header}
82
+ </div>
83
+
84
+ <div
85
+ className={clsx([
86
+ 'ContentWrapper',
87
+ styles.abMainLayout__contentWrapper,
88
+ orientation === 'horizontal' && 'md:!flex-row',
89
+ ])}
90
+ data-orientation={orientation ? orientation.toString() : undefined}
91
+ >
92
+ {content ?? children}
93
+ </div>
94
+
95
+ <div className={clsx(['FooterWrapper', styles.abMainLayout__footerWrapper])}>
96
+ {footer}
97
+ </div>
98
+
99
+ <div className={clsx(['Backdrop', styles.abMainLayout__backdrop])} hidden />
100
+ <div className={clsx(['Menus', styles.abMainLayout__menus])} hidden>
101
+ {menus}
102
+ </div>
103
+ <div className={clsx(['Dialogs', styles.abMainLayout__dialogs])} hidden />
104
+ <div className={clsx(['Toasts', styles.abMainLayout__toasts])} hidden />
105
+
106
+ <AbLinearProgress
107
+ className="absolute top-0 left-0 right-0 z-50 !w-1/2 place-self-center !my-1 3xl:!my-2 !mx-auto !h-0.5 lg:!h-1 3xl:!h-1.5"
108
+ color="secondary"
109
+ hidden={true}
110
+ isIndeterminate={true}
111
+ progress={25}
112
+ />
113
+
114
+ <canvas className={clsx(['Canvas', styles.abMainLayout__canvas])} />
115
+ </main>
116
+ );
117
+ };
118
+
119
+ export default AbMainLayout;
@@ -0,0 +1,167 @@
1
+ /*
2
+ * @license MIT
3
+ * ~~~~~~~~~~~~
4
+ * ab-nextjs-core
5
+ * ~~~~~~~~~~~~
6
+ * Copyright (c) 2026 Abraham Ukachi. The abElements Project.
7
+ *
8
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
9
+ * of this software and associated documentation files (the 'Software'), to deal
10
+ * in the Software without restriction, including without limitation the rights
11
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
+ * copies of the Software, and to permit persons to whom the Software is
13
+ * furnished to do so, subject to the following conditions:
14
+ *
15
+ * The above copyright notice and this permission notice shall be included in all
16
+ * copies or substantial portions of the Software.
17
+ *
18
+ * THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24
+ * SOFTWARE.
25
+ *
26
+ * @project: ab-nextjs-core
27
+ * @name: AB Main Layout - Component Stylesheet (plain CSS, Tailwind-independent)
28
+ * @file: server/ab-main-layout/styles.module.css
29
+ * @type: CSS Module
30
+ * @authors: Abraham Ukachi <abraham.ukachi@laplateforme.io>
31
+ */
32
+
33
+ /*
34
+ * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
35
+ * MOTTO: We'll always do more 😜!!!
36
+ * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
37
+ */
38
+
39
+
40
+ /* ===== AB MAIN LAYOUT STYLES ===== */
41
+
42
+ .abMainLayout {
43
+ position: relative;
44
+ display: flex;
45
+ flex-direction: column;
46
+ width: 100%;
47
+ height: 100%;
48
+ overflow: hidden;
49
+ z-index: 20;
50
+ background-color: var(--color-background, var(--surface, #ffffff));
51
+ }
52
+
53
+ @media (max-width: 639px) {
54
+ .abMainLayout { max-height: calc(100vh - 60px); }
55
+ }
56
+
57
+ @media (max-width: 767px) {
58
+ .abMainLayout { max-height: calc(100vh - 64px); }
59
+ }
60
+
61
+ @media (min-width: 1536px) {
62
+ .abMainLayout { border-radius: 1.5rem; }
63
+ }
64
+
65
+ :global(.dark) .abMainLayout,
66
+ :global([data-theme="dark"]) .abMainLayout {
67
+ background-color: var(--color-dark-background, var(--surface, #0a0a0a));
68
+ }
69
+
70
+ .abMainLayout__headerWrapper {
71
+ position: relative;
72
+ display: flex;
73
+ flex-direction: column;
74
+ width: 100%;
75
+ height: auto;
76
+ z-index: 20;
77
+ pointer-events: none;
78
+ }
79
+
80
+ .abMainLayout__contentWrapper {
81
+ position: relative;
82
+ display: flex;
83
+ flex-direction: column;
84
+ width: 100%;
85
+ height: fit-content;
86
+ flex-grow: 1;
87
+ flex: 1 1 0%;
88
+ justify-content: space-between;
89
+ z-index: 10;
90
+ overflow: auto;
91
+ overflow-x: hidden;
92
+ }
93
+
94
+ .abMainLayout__footerWrapper {
95
+ position: relative;
96
+ display: flex;
97
+ flex-direction: column;
98
+ width: 100%;
99
+ height: auto;
100
+ z-index: 20;
101
+ pointer-events: none;
102
+ }
103
+
104
+ .abMainLayout__footerWrapper::before {
105
+ content: "";
106
+ position: absolute;
107
+ inset: 0;
108
+ width: 100%;
109
+ height: 100%;
110
+ z-index: -1;
111
+ transform: translateY(-100%);
112
+ background-image: linear-gradient(to bottom, transparent, var(--color-background, var(--surface, #ffffff)));
113
+ }
114
+
115
+ :global(.dark) .abMainLayout__footerWrapper::before,
116
+ :global([data-theme="dark"]) .abMainLayout__footerWrapper::before {
117
+ background-image: linear-gradient(to bottom, transparent, var(--color-dark-background, var(--surface, #0a0a0a)));
118
+ }
119
+
120
+ .abMainLayout__backdrop {
121
+ position: absolute;
122
+ inset: 0;
123
+ width: 100%;
124
+ height: 100%;
125
+ z-index: 40;
126
+ backdrop-filter: blur(12px);
127
+ background-color: rgb(0 0 0 / 0.1);
128
+ }
129
+
130
+ :global(.dark) .abMainLayout__backdrop,
131
+ :global([data-theme="dark"]) .abMainLayout__backdrop {
132
+ background-color: rgb(0 0 0 / 0.5);
133
+ }
134
+
135
+ .abMainLayout__menus {
136
+ position: absolute;
137
+ inset: 0;
138
+ width: 100%;
139
+ height: 100%;
140
+ z-index: 50;
141
+ padding-bottom: 0;
142
+ }
143
+
144
+ .abMainLayout__dialogs,
145
+ .abMainLayout__toasts {
146
+ position: absolute;
147
+ inset: 0;
148
+ width: 100%;
149
+ height: 100%;
150
+ z-index: 50;
151
+ }
152
+
153
+ .abMainLayout__toasts { animation: abCoreFadeIn 300ms ease-in-out; }
154
+
155
+ .abMainLayout__canvas {
156
+ position: absolute;
157
+ inset: 0;
158
+ width: 100%;
159
+ height: 100%;
160
+ pointer-events: none;
161
+ z-index: 50;
162
+ }
163
+
164
+ @keyframes abCoreFadeIn {
165
+ from { opacity: 0; }
166
+ to { opacity: 1; }
167
+ }
@@ -0,0 +1,107 @@
1
+ /*
2
+ * @license MIT
3
+ * ~~~~~~~~~~~~
4
+ * ab-nextjs-core
5
+ * ~~~~~~~~~~~~
6
+ * Copyright (c) 2026 Abraham Ukachi. The abElements Project.
7
+ *
8
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
9
+ * of this software and associated documentation files (the 'Software'), to deal
10
+ * in the Software without restriction, including without limitation the rights
11
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
+ * copies of the Software, and to permit persons to whom the Software is
13
+ * furnished to do so, subject to the following conditions:
14
+ *
15
+ * The above copyright notice and this permission notice shall be included in all
16
+ * copies or substantial portions of the Software.
17
+ *
18
+ * THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24
+ * SOFTWARE.
25
+ *
26
+ * @project: ab-nextjs-core
27
+ * @authors: Abraham Ukachi <abraham.ukachi@laplateforme.io>
28
+ */
29
+
30
+ /*
31
+ * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
32
+ * MOTTO: We'll always do more 😜!!!
33
+ * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
34
+ */
35
+
36
+ import type { ReactElement, ReactNode } from 'react';
37
+ import clsx from 'clsx';
38
+ import AbLinearProgress from '../../ab-linear-progress';
39
+ import styles from './styles.module.css';
40
+
41
+ export interface AbScreenLayoutProps {
42
+ orientation: 'vertical' | 'horizontal';
43
+ className?: string;
44
+ hidden?: boolean;
45
+ screenName?: string;
46
+ header?: ReactNode;
47
+ content?: ReactNode;
48
+ footer?: ReactNode;
49
+ children?: ReactNode;
50
+ menus?: ReactNode;
51
+ }
52
+
53
+ /**
54
+ * Ab Screen Layout — Core Server Component (from LYD LydScreenLayout).
55
+ * No NetworkProvider / LydName — portals keep #backdrop/menus/dialogs/toasts ids.
56
+ */
57
+ const AbScreenLayout = ({
58
+ orientation,
59
+ className,
60
+ hidden,
61
+ screenName,
62
+ header,
63
+ content,
64
+ footer,
65
+ children,
66
+ menus,
67
+ }: AbScreenLayoutProps): ReactElement => {
68
+ return (
69
+ <div
70
+ className={clsx(['AbScreenLayout', styles.abScreenLayout, className])}
71
+ hidden={hidden}
72
+ data-screen-name={screenName}
73
+ data-orientation={orientation ?? ''}
74
+ >
75
+ <div className={clsx(['HeaderWrapper', styles.abScreenLayout__headerWrapper])}>
76
+ {header}
77
+ </div>
78
+
79
+ <div className={clsx(['ContentWrapper', styles.abScreenLayout__contentWrapper])}>
80
+ {content ?? children}
81
+ </div>
82
+
83
+ <div className={clsx(['FooterWrapper', styles.abScreenLayout__footerWrapper])}>
84
+ {footer}
85
+ </div>
86
+
87
+ <div id="backdrop" className={clsx(['Backdrop', styles.abScreenLayout__backdrop])} hidden />
88
+ <div id="menus" className={clsx(['Menus', styles.abScreenLayout__menus])} hidden>
89
+ {menus}
90
+ </div>
91
+ <div id="dialogs" className={clsx(['Dialogs', styles.abScreenLayout__dialogs])} hidden />
92
+ <div id="toasts" className={clsx(['Toasts', styles.abScreenLayout__toasts])} hidden />
93
+
94
+ <AbLinearProgress
95
+ className="absolute top-0 left-0 right-0 z-50 !h-0.5 lg:!h-1"
96
+ color="secondary"
97
+ hidden={true}
98
+ isIndeterminate={true}
99
+ progress={25}
100
+ />
101
+
102
+ <canvas className={clsx(['Canvas', styles.abScreenLayout__canvas])} />
103
+ </div>
104
+ );
105
+ };
106
+
107
+ export default AbScreenLayout;
@@ -0,0 +1,134 @@
1
+ /*
2
+ * @license MIT
3
+ * ~~~~~~~~~~~~
4
+ * ab-nextjs-core
5
+ * ~~~~~~~~~~~~
6
+ * Copyright (c) 2026 Abraham Ukachi. The abElements Project.
7
+ *
8
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
9
+ * of this software and associated documentation files (the 'Software'), to deal
10
+ * in the Software without restriction, including without limitation the rights
11
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
+ * copies of the Software, and to permit persons to whom the Software is
13
+ * furnished to do so, subject to the following conditions:
14
+ *
15
+ * The above copyright notice and this permission notice shall be included in all
16
+ * copies or substantial portions of the Software.
17
+ *
18
+ * THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24
+ * SOFTWARE.
25
+ *
26
+ * @project: ab-nextjs-core
27
+ * @name: AB Screen Layout - Component Stylesheet (plain CSS, Tailwind-independent)
28
+ * @file: server/ab-screen-layout/styles.module.css
29
+ * @type: CSS Module
30
+ * @authors: Abraham Ukachi <abraham.ukachi@laplateforme.io>
31
+ */
32
+
33
+ /*
34
+ * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
35
+ * MOTTO: We'll always do more 😜!!!
36
+ * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
37
+ */
38
+
39
+
40
+ /* ===== AB SCREEN LAYOUT STYLES ===== */
41
+
42
+ .abScreenLayout {
43
+ position: relative;
44
+ display: flex;
45
+ flex-direction: column;
46
+ width: 100%;
47
+ height: 100%;
48
+ }
49
+
50
+ .abScreenLayout__headerWrapper {
51
+ position: absolute;
52
+ top: 0;
53
+ left: 0;
54
+ right: 0;
55
+ display: flex;
56
+ flex-direction: column;
57
+ width: 100%;
58
+ height: auto;
59
+ z-index: 20;
60
+ pointer-events: none;
61
+ }
62
+
63
+ .abScreenLayout__contentWrapper {
64
+ position: relative;
65
+ display: flex;
66
+ flex-direction: column;
67
+ width: 100%;
68
+ height: 100%;
69
+ justify-content: space-between;
70
+ z-index: 10;
71
+ }
72
+
73
+ @media (min-width: 768px) {
74
+ .abScreenLayout__contentWrapper { flex-direction: row; }
75
+ }
76
+
77
+ @media (min-width: 1536px) {
78
+ .abScreenLayout__contentWrapper > *:nth-child(1) {
79
+ margin: 1.5rem;
80
+ border-radius: 1.5rem;
81
+ max-height: calc(100vh - 3rem);
82
+ }
83
+ }
84
+
85
+ .abScreenLayout__footerWrapper {
86
+ position: absolute;
87
+ bottom: 0;
88
+ left: 0;
89
+ right: 0;
90
+ display: flex;
91
+ flex-direction: column;
92
+ width: 100%;
93
+ height: auto;
94
+ z-index: 20;
95
+ pointer-events: none;
96
+ }
97
+
98
+ .abScreenLayout__backdrop {
99
+ position: absolute;
100
+ inset: 0;
101
+ display: flex;
102
+ flex-direction: column;
103
+ align-items: center;
104
+ width: 100%;
105
+ height: 100%;
106
+ z-index: 40;
107
+ backdrop-filter: blur(4px);
108
+ }
109
+
110
+ .abScreenLayout__menus,
111
+ .abScreenLayout__dialogs,
112
+ .abScreenLayout__toasts {
113
+ position: absolute;
114
+ inset: 0;
115
+ width: 100%;
116
+ height: 100%;
117
+ z-index: 50;
118
+ }
119
+
120
+ .abScreenLayout__toasts { animation: abCoreFadeIn 300ms ease-in-out; }
121
+
122
+ .abScreenLayout__canvas {
123
+ position: absolute;
124
+ inset: 0;
125
+ width: 100%;
126
+ height: 100%;
127
+ pointer-events: none;
128
+ z-index: 50;
129
+ }
130
+
131
+ @keyframes abCoreFadeIn {
132
+ from { opacity: 0; }
133
+ to { opacity: 1; }
134
+ }
package/types/css.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ declare module '*.module.css' {
2
+ const classes: { readonly [key: string]: string };
3
+ export default classes;
4
+ }
@@ -0,0 +1,14 @@
1
+ export type CoreCatalogEntry = {
2
+ name: string;
3
+ file: string;
4
+ kind: 'server' | 'client';
5
+ status: string;
6
+ };
7
+
8
+ export declare const supportedCore: Array<CoreCatalogEntry>;
9
+
10
+ declare const abCore: {
11
+ supportedCore: Array<CoreCatalogEntry>;
12
+ };
13
+
14
+ export default abCore;