ab-nextjs-components 0.1.12 → 0.1.14
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.
- package/CHANGELOG.md +64 -0
- package/README.md +52 -0
- package/ab-app-bar/index.tsx +210 -0
- package/ab-app-bar/styles.module.css +158 -0
- package/ab-avatar/index.tsx +2 -1
- package/ab-avatar/styles.module.css +32 -0
- package/ab-balloon/index.tsx +134 -23
- package/ab-balloon/styles.module.css +84 -7
- package/ab-bottom-drawer/index.tsx +71 -0
- package/ab-bottom-drawer/styles.module.css +66 -0
- package/ab-brand/index.tsx +1 -1
- package/ab-breadcrumbs/index.tsx +92 -0
- package/ab-breadcrumbs/styles.module.css +54 -0
- package/ab-button/helpers.ts +6 -1
- package/ab-button/index.tsx +23 -4
- package/ab-button/styles.module.css +70 -0
- package/ab-card/index.tsx +89 -0
- package/ab-card/styles.module.css +68 -0
- package/ab-carousel/styles.module.css +1 -1
- package/ab-chip/index.tsx +16 -4
- package/ab-chip/styles.module.css +12 -1
- package/ab-collapsible/index.tsx +1 -1
- package/ab-color/index.tsx +1 -0
- package/ab-color/styles.module.css +32 -0
- package/ab-confirm-drawer/index.tsx +97 -0
- package/ab-confirm-drawer/styles.module.css +41 -0
- package/ab-demo-box/index.tsx +1 -0
- package/ab-demo-box/styles.module.css +32 -0
- package/ab-demo-code/index.tsx +1 -0
- package/ab-demo-code/styles.module.css +32 -0
- package/ab-drawer/index.tsx +307 -0
- package/ab-drawer/styles.module.css +127 -0
- package/ab-drawer/use-ab-drawer.ts +89 -0
- package/ab-drawer-list/index.tsx +118 -0
- package/ab-drawer-list/styles.module.css +65 -0
- package/ab-flow-diagram/styles.module.css +2 -2
- package/ab-icon/builtin.ts +19 -1
- package/ab-icon/helpers.ts +37 -0
- package/ab-icon/index.tsx +14 -8
- package/ab-icon/registrar.tsx +68 -0
- package/ab-icon-button/index.tsx +19 -3
- package/ab-icon-button/styles.module.css +1 -1
- package/ab-image/index.tsx +1 -0
- package/ab-image/styles.module.css +32 -0
- package/ab-info/index.tsx +2 -1
- package/ab-info/styles.module.css +32 -0
- package/ab-input/index.tsx +1 -0
- package/ab-input/styles.module.css +1 -0
- package/ab-install-snippet/index.tsx +51 -29
- package/ab-install-snippet/styles.module.css +50 -4
- package/ab-kbd/index.tsx +65 -0
- package/ab-kbd/styles.module.css +55 -0
- package/ab-key-feature/index.tsx +2 -1
- package/ab-key-feature/styles.module.css +32 -0
- package/ab-like-button/index.tsx +1 -1
- package/ab-link/index.tsx +112 -0
- package/ab-link/locale.ts +53 -0
- package/ab-list/index.tsx +107 -0
- package/ab-list/styles.module.css +82 -0
- package/ab-locale-switcher/index.tsx +59 -10
- package/ab-locale-switcher/styles.module.css +15 -4
- package/ab-main-headline/index.tsx +1 -0
- package/ab-main-headline/styles.module.css +32 -0
- package/ab-menu/index.tsx +6 -5
- package/ab-menu/styles.module.css +32 -0
- package/ab-name/index.tsx +1 -0
- package/ab-name/styles.module.css +32 -0
- package/ab-navbar/index.tsx +54 -46
- package/ab-navbar/styles.module.css +102 -28
- package/ab-navbar/view.tsx +166 -0
- package/ab-package-card/index.tsx +141 -0
- package/ab-package-card/styles.module.css +81 -0
- package/ab-page-paginator/index.tsx +1 -0
- package/ab-page-paginator/styles.module.css +32 -0
- package/ab-page-switcher/index.tsx +1 -0
- package/ab-page-switcher/styles.module.css +32 -0
- package/ab-preview/index.tsx +1 -0
- package/ab-preview/styles.module.css +32 -0
- package/ab-price/index.tsx +1 -0
- package/ab-price/styles.module.css +32 -0
- package/ab-price-tag/index.tsx +1 -0
- package/ab-price-tag/styles.module.css +32 -0
- package/ab-product/index.tsx +1 -0
- package/ab-product/styles.module.css +32 -0
- package/ab-product-item/index.tsx +1 -0
- package/ab-product-item/styles.module.css +32 -0
- package/ab-search-result/index.tsx +1 -0
- package/ab-search-result/styles.module.css +32 -0
- package/ab-search-trigger/index.tsx +157 -0
- package/ab-search-trigger/styles.module.css +96 -0
- package/ab-sidebar/index.tsx +91 -49
- package/ab-sidebar/styles.module.css +179 -31
- package/ab-sidebar/view.tsx +192 -0
- package/ab-switch-back/index.tsx +2 -1
- package/ab-switch-back/styles.module.css +32 -0
- package/ab-tab/index.tsx +2 -1
- package/ab-tab/styles.module.css +32 -0
- package/ab-tabs/index.tsx +1 -0
- package/ab-tabs/styles.module.css +32 -0
- package/ab-test-hello/index.tsx +1 -0
- package/ab-test-hello/styles.module.css +32 -0
- package/ab-text/index.tsx +1 -0
- package/ab-text/styles.module.css +32 -0
- package/ab-theme-toggle/index.tsx +21 -6
- package/ab-theme-toggle/styles.module.css +18 -3
- package/ab-toc/index.tsx +131 -0
- package/ab-toc/styles.module.css +66 -0
- package/ab-version-switcher/index.tsx +143 -0
- package/ab-version-switcher/styles.module.css +76 -0
- package/css/chrome-mq.css +32 -0
- package/css/doodle.css +32 -0
- package/css/logo.css +32 -0
- package/css/spinner.css +32 -0
- package/css/toast.css +32 -0
- package/index.ts +45 -0
- package/package.json +42 -10
- package/server/ab-avatar/index.tsx +2 -1
- package/server/ab-avatar/styles.module.css +32 -0
- package/server/ab-badge/index.tsx +1 -0
- package/server/ab-badge/styles.module.css +32 -0
- package/server/ab-brand/index.tsx +1 -1
- package/server/ab-button/index.tsx +6 -2
- package/server/ab-button/styles.module.css +39 -0
- package/server/ab-icon/index.tsx +13 -8
- package/server/ab-key-feature/index.tsx +2 -1
- package/server/ab-key-feature/styles.module.css +32 -0
- package/server/ab-name/index.tsx +1 -0
- package/server/ab-name/styles.module.css +32 -0
- package/server/ab-nav-link/index.tsx +2 -1
- package/server/ab-nav-link/styles.module.css +32 -0
- package/server/ab-navbar/index.tsx +44 -45
- package/server/ab-polygon/index.tsx +1 -0
- package/server/ab-polygon/styles.module.css +32 -0
- package/server/ab-sidebar/index.tsx +44 -49
- package/server/ab-switch-back/index.tsx +2 -1
- package/server/ab-switch-back/styles.module.css +32 -0
- package/server/ab-test-hello/index.tsx +1 -0
- package/server/ab-test-hello/styles.module.css +32 -0
- package/server/ab-text/index.tsx +1 -0
- package/server/ab-text/styles.module.css +32 -0
- package/server/index.ts +1 -0
- package/styles.css +32 -0
- package/types/index.d.ts +54 -0
- package/server/ab-navbar/styles.module.css +0 -35
- package/server/ab-sidebar/styles.module.css +0 -41
|
@@ -150,3 +150,73 @@
|
|
|
150
150
|
white-space: nowrap; /* 🚫 */
|
|
151
151
|
border: 0; /* 🧹 */
|
|
152
152
|
}
|
|
153
|
+
|
|
154
|
+
/* 🔗 0.1.13 (Joseph #7): link mode. The theme paints `button[data-type]` and `a[role="button"][data-type]`,
|
|
155
|
+
* but a real link (no role=button: it navigates) matched neither, so it rendered at 20px with no padding.
|
|
156
|
+
* These mirror the theme's box rules for <a>, using the same --ab-button-* overrides. */
|
|
157
|
+
a.abButton[data-type="contained"],
|
|
158
|
+
a.abButton[data-type="text"] {
|
|
159
|
+
padding: var(--ab-button-padding, 6px 12px); /* 📦 */
|
|
160
|
+
border-radius: 8px; /* 🔲 */
|
|
161
|
+
font-size: 18px; /* 🔤 */
|
|
162
|
+
line-height: 32px; /* 📏 40px tall */
|
|
163
|
+
}
|
|
164
|
+
a.abButton[data-type="contained"] {
|
|
165
|
+
background: var(--ab-button-background-color, var(--primary-container-color)); /* 🎨 */
|
|
166
|
+
color: var(--ab-button-text-color, var(--on-primary-container-color)); /* 🖋️ */
|
|
167
|
+
}
|
|
168
|
+
a.abButton[data-type="filled"] {
|
|
169
|
+
background: var(--ab-button-background-color, var(--md-sys-color-primary)); /* 🥉 */
|
|
170
|
+
color: var(--ab-button-text-color, var(--md-sys-color-on-primary)); /* 🖋️ */
|
|
171
|
+
padding: var(--ab-button-padding, 6px 16px); /* 📦 */
|
|
172
|
+
border-radius: var(--ab-button-radius, 999px); /* 💊 */
|
|
173
|
+
font-size: 18px; /* 🔤 */
|
|
174
|
+
line-height: 32px; /* 📏 */
|
|
175
|
+
}
|
|
176
|
+
a.abButton[data-type="outlined"] {
|
|
177
|
+
border: 2px solid var(--ab-button-outline-color, var(--outline-color)); /* ➖ */
|
|
178
|
+
border-radius: 8px; /* 🔲 */
|
|
179
|
+
padding: 8px 16px; /* 📦 */
|
|
180
|
+
font-size: 18px; /* 🔤 */
|
|
181
|
+
line-height: 32px; /* 📏 */
|
|
182
|
+
}
|
|
183
|
+
a.abButton.abButtonRounded { border-radius: 9999px; } /* 💊 */
|
|
184
|
+
|
|
185
|
+
/* ===== 🔷 0.1.14 (P16, Home fidelity spec §4 CTAs): shape="rounded" · size="md" · type="secondary" =====
|
|
186
|
+
* Doubled class (0,3,0+) beats the theme's `button[data-type="filled"]` (0,1,1) and its :hover (0,3,1 → we use 0,5,0). */
|
|
187
|
+
.abButton.abButton[data-shape="rounded"] {
|
|
188
|
+
gap: 6px; /* 🧱 icon ↔ label */
|
|
189
|
+
border-radius: var(--ab-radius-button, 10px); /* 🔷 */
|
|
190
|
+
padding: 0 var(--ab-button-padding-inline, 16px); /* 📦 */
|
|
191
|
+
font-size: 14px; font-weight: 650; line-height: 1; white-space: nowrap; /* 🔤 */
|
|
192
|
+
overflow: visible; /* 🌗 the primary shadow must show */
|
|
193
|
+
}
|
|
194
|
+
.abButton.abButton[data-size="md"] { height: var(--ab-button-height, 40px); box-sizing: border-box; } /* 📏 */
|
|
195
|
+
.abButton.abButton[data-shape="rounded"] .abButtonSlot { width: 18px; height: 18px; } /* 🖼️ 18px icons */
|
|
196
|
+
.abButton.abButton[data-shape="rounded"] .abButtonSlot svg { width: 100%; height: 100%; }
|
|
197
|
+
/* 🥉 primary (filled) */
|
|
198
|
+
.abButton.abButton[data-shape="rounded"][data-type="filled"] {
|
|
199
|
+
background: var(--ab-color-btn, #8b6340); color: var(--ab-color-btn-text, #fff); /* 🎨 AA (theme 0.3.5) */
|
|
200
|
+
border: 0; box-shadow: var(--ab-shadow-button, 0 1px 0 rgb(255 255 255 / 0.2) inset, 0 4px 12px rgb(139 99 64 / 0.25)); /* ✨ */
|
|
201
|
+
}
|
|
202
|
+
.abButton.abButton[data-shape="rounded"][data-type="filled"]:not(:disabled, [aria-disabled="true"]):hover {
|
|
203
|
+
background: color-mix(in srgb, var(--ab-color-btn, #8b6340) 90%, #000); /* 🖱️ */
|
|
204
|
+
}
|
|
205
|
+
/* ⚪ secondary */
|
|
206
|
+
.abButton.abButton[data-type="secondary"] {
|
|
207
|
+
border: 1px solid var(--ab-color-border, rgb(92 64 48 / 0.13)); background: var(--ab-color-card, #fff); color: var(--ab-color-text, #211a16); /* 🎨 */
|
|
208
|
+
box-sizing: border-box;
|
|
209
|
+
}
|
|
210
|
+
.abButton.abButton[data-type="secondary"]:not(:disabled, [aria-disabled="true"]):hover {
|
|
211
|
+
background: linear-gradient(var(--ab-color-hover, rgb(166 124 82 / 0.08)), var(--ab-color-hover, rgb(166 124 82 / 0.08))), var(--ab-color-card, #fff); /* 🖱️ tint over the card */
|
|
212
|
+
}
|
|
213
|
+
.abButton.abButton[data-shape="rounded"]:not(:disabled, [aria-disabled="true"]):active { transform: translateY(1px); } /* 👇 */
|
|
214
|
+
.abButton.abButton[data-shape="rounded"]:focus-visible { outline: 2px solid var(--ab-color-accent, #a67c52); outline-offset: 2px; } /* ♿ */
|
|
215
|
+
/* 📱 touch widths: 44px, 14.5px (mock .M .btn; the app sets flex: 1) */
|
|
216
|
+
@media (max-width: 767px) {
|
|
217
|
+
.abButton.abButton[data-size="md"] { height: var(--ab-button-height-touch, 44px); }
|
|
218
|
+
.abButton.abButton[data-shape="rounded"][data-size="md"] { font-size: 14.5px; }
|
|
219
|
+
}
|
|
220
|
+
@media (prefers-reduced-motion: reduce) {
|
|
221
|
+
.abButton.abButton[data-shape="rounded"]:active { transform: none; } /* ♿ no nudge */
|
|
222
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @license MIT
|
|
3
|
+
* ~~~~~~~~~~~~
|
|
4
|
+
* ab-nextjs-components
|
|
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-components
|
|
27
|
+
* @name: AbCard (G45)
|
|
28
|
+
* @file: ab-card/index.tsx
|
|
29
|
+
* @type: React Component (server-safe)
|
|
30
|
+
* @authors: Abraham Ukachi <abrahamukachi@gmail.com>
|
|
31
|
+
*
|
|
32
|
+
* Example usage:
|
|
33
|
+
* <AbCard href="/docs/hooks" title="Hooks" description="State, media queries and more." />
|
|
34
|
+
*/
|
|
35
|
+
|
|
36
|
+
/*
|
|
37
|
+
* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
38
|
+
* MOTTO: We'll always do more 😜!!!
|
|
39
|
+
* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
40
|
+
*/
|
|
41
|
+
|
|
42
|
+
// ⚛️ React
|
|
43
|
+
import type { ComponentType, ReactElement, ReactNode } from 'react';
|
|
44
|
+
// 🧵 classes
|
|
45
|
+
import clsx from 'clsx';
|
|
46
|
+
// 🔗 G42 link
|
|
47
|
+
import Link from '../ab-link';
|
|
48
|
+
// 🎬 hover colours + transform timing from the package (reduced motion → no transition)
|
|
49
|
+
import 'ab-nextjs-animations/motion/styles.css';
|
|
50
|
+
// 🎨 styles
|
|
51
|
+
import styles from './styles.module.css';
|
|
52
|
+
|
|
53
|
+
/** ⚙️ props */
|
|
54
|
+
export interface AbCardProps {
|
|
55
|
+
title: ReactNode; // 🏷️ also the link text (one link per card)
|
|
56
|
+
href?: string; // 🔗 the whole card is clickable via the title link's overlay
|
|
57
|
+
description?: ReactNode; // 📝
|
|
58
|
+
eyebrow?: ReactNode; // 🔝 small label above the title
|
|
59
|
+
media?: ReactNode; // 🖼️ icon / image slot
|
|
60
|
+
footer?: ReactNode; // 🔚 meta row (must not contain other links: one link per card)
|
|
61
|
+
headingLevel?: 2 | 3 | 4; // ♿ default 3
|
|
62
|
+
className?: string; // 🏷️
|
|
63
|
+
as?: 'article' | 'div' | 'li'; // 🧱 default article
|
|
64
|
+
id?: string; // 🆔 0.1.13: e.g. an in-page anchor target
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* 🃏 AbCard (G45): ONE link (the title) stretched over the card, so screen readers hear one link, not a
|
|
69
|
+
* nested block of them. Hover lift is 2px, laptop and up only, and none under prefers-reduced-motion.
|
|
70
|
+
*/
|
|
71
|
+
const AbCard = ({ title, href, description, eyebrow, media, footer, headingLevel = 3, className, as = 'article', id }: AbCardProps): ReactElement => {
|
|
72
|
+
const H = `h${headingLevel}` as unknown as ComponentType<{ className?: string; children?: ReactNode }>; // ♿
|
|
73
|
+
const Root = as as unknown as ComponentType<Record<string, unknown>>; // 🧱
|
|
74
|
+
return (
|
|
75
|
+
<Root id={id} className={clsx('AbCard', styles.abCard, 'ab-motion-interactive', className)} data-ab-part="card" data-linked={href ? 'true' : 'false'}>
|
|
76
|
+
{media && <div className={styles.abCardMedia} aria-hidden="true">{media}</div>}
|
|
77
|
+
{eyebrow && <p className={styles.abCardEyebrow}>{eyebrow}</p>}
|
|
78
|
+
<H className={styles.abCardTitle}>
|
|
79
|
+
{href ? <Link href={href} className={styles.abCardLink}>{title}</Link> : title}
|
|
80
|
+
</H>
|
|
81
|
+
{description && <p className={styles.abCardDescription}>{description}</p>}
|
|
82
|
+
{footer && <div className={styles.abCardFooter}>{footer}</div>}
|
|
83
|
+
</Root>
|
|
84
|
+
);
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
// 📦 exports
|
|
88
|
+
export default AbCard;
|
|
89
|
+
export { AbCard };
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @license MIT
|
|
3
|
+
* ~~~~~~~~~~~~
|
|
4
|
+
* ab-nextjs-components
|
|
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-components
|
|
27
|
+
* @name: AbCard - Styles (G45)
|
|
28
|
+
* @file: ab-card/styles.module.css
|
|
29
|
+
* @type: CSS Module
|
|
30
|
+
* @authors: Abraham Ukachi <abrahamukachi@gmail.com>
|
|
31
|
+
*/
|
|
32
|
+
|
|
33
|
+
/*
|
|
34
|
+
* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
35
|
+
* MOTTO: We'll always do more 😜!!!
|
|
36
|
+
* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
37
|
+
*/
|
|
38
|
+
|
|
39
|
+
/* 🃏 card */
|
|
40
|
+
.abCard {
|
|
41
|
+
position: relative; /* 📍 overlay anchor */
|
|
42
|
+
display: flex; /* 📐 */
|
|
43
|
+
flex-direction: column; /* ⬇️ */
|
|
44
|
+
gap: 8px; /* ↕️ */
|
|
45
|
+
padding: 20px; /* 📦 */
|
|
46
|
+
border-radius: var(--ab-pane-radius, 16px); /* 🟢 theme 0.3.4 */
|
|
47
|
+
background: var(--ab-color-surface-container-low, rgb(0 0 0 / 0.03)); /* 🎨 */
|
|
48
|
+
color: var(--ab-color-on-surface, inherit); /* 🖋️ */
|
|
49
|
+
box-sizing: border-box; /* 📦 */
|
|
50
|
+
}
|
|
51
|
+
.abCardMedia { display: flex; color: var(--ab-color-primary, inherit); } /* 🖼️ */
|
|
52
|
+
.abCardEyebrow { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.75; } /* 🔝 */
|
|
53
|
+
.abCardTitle { margin: 0; font-size: 18px; font-weight: 600; line-height: 24px; } /* 🏷️ */
|
|
54
|
+
.abCardDescription { margin: 0; font-size: 14px; line-height: 20px; color: var(--ab-color-on-surface-variant, inherit); } /* 📝 */
|
|
55
|
+
.abCardFooter { margin-top: auto; display: flex; gap: 8px; align-items: center; font-size: 12px; } /* 🔚 */
|
|
56
|
+
/* 🔗 single link stretched over the card */
|
|
57
|
+
.abCardLink { color: inherit; text-decoration: none; } /* 🔗 */
|
|
58
|
+
.abCardLink::after { content: ''; position: absolute; inset: 0; border-radius: inherit; } /* 🧲 whole card clickable */
|
|
59
|
+
.abCard[data-linked='true']:hover { background: var(--ab-color-surface-container, rgb(0 0 0 / 0.06)); } /* 🖱️ */
|
|
60
|
+
.abCard:focus-within:has(.abCardLink:focus-visible) {
|
|
61
|
+
outline: var(--ab-focus-ring-width, 2px) solid var(--ab-color-accent, var(--ab-color-primary, #8f4c38)); /* ♿ ring on the card */
|
|
62
|
+
outline-offset: var(--ab-focus-ring-offset, 2px); /* ♿ */
|
|
63
|
+
}
|
|
64
|
+
.abCardLink:focus-visible { outline: none; } /* ♿ the card shows the ring */
|
|
65
|
+
/* 🎈 2px lift: laptop+ with a real pointer, and only when motion is OK (gap-review: no motion when reduced) */
|
|
66
|
+
@media (min-width: 1024px) and (hover: hover) and (prefers-reduced-motion: no-preference) {
|
|
67
|
+
.abCard[data-linked='true']:hover { transform: translateY(-2px); } /* 🎈 */
|
|
68
|
+
}
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
/* 🎨 hover / 🤏 press motion: .ab-motion-interactive + .ab-motion-press (ab-nextjs-animations) */
|
|
102
102
|
}
|
|
103
103
|
.nav:hover {
|
|
104
|
-
background-color: color-mix(in srgb, currentColor 8%, transparent); /* 🌫️ */
|
|
104
|
+
background-color: var(--ab-color-hover, color-mix(in srgb, currentColor 8%, transparent)); /* 🌫️ */
|
|
105
105
|
}
|
|
106
106
|
.nav[data-variant='filled'] {
|
|
107
107
|
border-color: transparent;
|
package/ab-chip/index.tsx
CHANGED
|
@@ -48,6 +48,8 @@ import styles from './styles.module.css';
|
|
|
48
48
|
|
|
49
49
|
// 🎨 dot colours
|
|
50
50
|
export type AbChipDot = 'sage' | 'bronze';
|
|
51
|
+
// 🎨 0.1.14 (P16): Home chip tones · 'accent' = --tint bg + --accent-text · 'sage' = the `beta` chip
|
|
52
|
+
export type AbChipTone = 'neutral' | 'accent' | 'sage';
|
|
51
53
|
|
|
52
54
|
// ⚙️ props
|
|
53
55
|
export interface AbChipProps {
|
|
@@ -57,14 +59,24 @@ export interface AbChipProps {
|
|
|
57
59
|
as?: 'span' | 'li'; // 🧱 'li' inside a <ul> for lists of chips
|
|
58
60
|
className?: string; // 🏷️
|
|
59
61
|
style?: CSSProperties; // 🎨
|
|
62
|
+
size?: 'md' | 'sm'; // 📏 0.1.14 (P16): 'sm' = the 20px Home chip (version, count, New)
|
|
63
|
+
shape?: 'pill' | 'rounded'; // 🔷 0.1.14: 'rounded' = 6px radius (default pill)
|
|
64
|
+
mono?: boolean; // ⌨️ 0.1.14: Roboto Mono 11/600 (versions, package names)
|
|
65
|
+
tone?: AbChipTone; // 🎨 0.1.14 (default 'neutral' = the legacy outline chip)
|
|
60
66
|
}
|
|
61
67
|
|
|
62
68
|
/** 🏷️ Static chip: plain text, never interactive (use AbButton for actions). */
|
|
63
|
-
export function AbChip({ children, dot, icon, as: Tag = 'span', className, style }: AbChipProps): ReactElement {
|
|
64
|
-
const
|
|
69
|
+
export function AbChip({ children, dot, icon, as: Tag = 'span', className, style, size = 'md', shape = 'pill', mono = false, tone = 'neutral' }: AbChipProps): ReactElement {
|
|
70
|
+
const dotTone = dot === true ? 'bronze' : dot || undefined; // 🎨 resolve dot colour
|
|
65
71
|
return (
|
|
66
|
-
<Tag
|
|
67
|
-
{
|
|
72
|
+
<Tag
|
|
73
|
+
className={clsx('AbChip', styles.chip, mono && styles.mono, className)} style={style} data-ab-part="chip"
|
|
74
|
+
data-size={size === 'sm' ? 'sm' : undefined} // 📏 P16
|
|
75
|
+
data-shape={shape === 'rounded' ? 'rounded' : undefined} // 🔷
|
|
76
|
+
data-tone={tone === 'neutral' ? undefined : tone} // 🎨
|
|
77
|
+
data-mono={mono ? 'true' : undefined} // ⌨️
|
|
78
|
+
>
|
|
79
|
+
{dotTone ? <span className={styles.dot} data-tone={dotTone} aria-hidden="true" /> : null /* 🟢 decorative */}
|
|
68
80
|
{icon ? <span className={styles.icon} aria-hidden="true">{icon}</span> : null /* 🖼️ decorative */}
|
|
69
81
|
<span>{children}</span>
|
|
70
82
|
</Tag>
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
gap: 0.375rem; /* 🧱 */
|
|
44
44
|
padding: 0.25rem 0.75rem; /* 🧱 */
|
|
45
45
|
border-radius: 9999px; /* 💊 */
|
|
46
|
-
border: 1px solid var(--ab-color-outline-variant, rgb(0 0 0 / 0.12)); /* 🖊️ */
|
|
46
|
+
border: 1px solid var(--ab-color-border, var(--ab-color-outline-variant, rgb(0 0 0 / 0.12))); /* 🖊️ */
|
|
47
47
|
background: var(--ab-color-surface-container, transparent); /* 🎨 */
|
|
48
48
|
color: var(--ab-color-on-surface, currentColor); /* 🎨 */
|
|
49
49
|
font-size: 0.875rem; /* 🔡 */
|
|
@@ -85,3 +85,14 @@
|
|
|
85
85
|
width: 1em; /* 📏 */
|
|
86
86
|
height: 1em; /* 📏 */
|
|
87
87
|
}
|
|
88
|
+
|
|
89
|
+
/* ===== 🏠 0.1.14 (P16, Home spec §2/§4): size="sm" · shape="rounded" · mono · tone ===== */
|
|
90
|
+
.chip[data-size='sm'] {
|
|
91
|
+
height: var(--ab-chip-height, 20px); box-sizing: border-box; /* 📏 */
|
|
92
|
+
padding: 0 var(--ab-chip-padding-inline, 7px); gap: 4px; /* 📦 */
|
|
93
|
+
border: 0; font-size: 11px; font-weight: 600; line-height: 1; /* 🔤 mock .chip */
|
|
94
|
+
}
|
|
95
|
+
.chip[data-shape='rounded'] { border-radius: var(--ab-radius-chip, 6px); } /* 🔷 */
|
|
96
|
+
.chip[data-mono='true'] { font-family: var(--ab-font-code, 'Roboto Mono', ui-monospace, monospace); } /* ⌨️ */
|
|
97
|
+
.chip[data-tone='accent'] { background: var(--ab-color-tint, #f4e7db); color: var(--ab-color-accent-text, #88603d); border-color: transparent; } /* 🥉 */
|
|
98
|
+
.chip[data-tone='sage'] { background: rgb(119 141 121 / 0.12); color: var(--ab-color-sage-accent, #566a58); border-color: transparent; } /* 🌿 beta ♿ AA (John): fallback = theme 0.3.5 light value */
|
package/ab-collapsible/index.tsx
CHANGED
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
|
|
42
42
|
import type { CSSProperties, ReactElement, ReactNode } from 'react';
|
|
43
43
|
import { useState } from 'react';
|
|
44
|
-
import Link from 'next/link
|
|
44
|
+
import Link from '../ab-link'; // 🔗 G42: injectable via AbLinkProvider (default next/link)
|
|
45
45
|
import clsx from 'clsx';
|
|
46
46
|
import styles from './styles.module.css';
|
|
47
47
|
import { AB_MOTION } from 'ab-nextjs-animations/motion'; // 🎬 transition class names (ab-nextjs-animations >= 0.2.4)
|
package/ab-color/index.tsx
CHANGED
|
@@ -1,3 +1,35 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @license MIT
|
|
3
|
+
* ~~~~~~~~~~~~
|
|
4
|
+
* ab-nextjs-components
|
|
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-components
|
|
27
|
+
* @name: styles.module.css
|
|
28
|
+
* @file: ab-color/styles.module.css
|
|
29
|
+
* @type: CSS Stylesheet
|
|
30
|
+
* @authors: Abraham Ukachi <abrahamukachi@gmail.com>
|
|
31
|
+
*/
|
|
32
|
+
|
|
1
33
|
.abColor {
|
|
2
34
|
display: inline-flex;
|
|
3
35
|
flex-direction: column;
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @license MIT
|
|
3
|
+
* ~~~~~~~~~~~~
|
|
4
|
+
* ab-nextjs-components
|
|
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-components
|
|
27
|
+
* @name: AbConfirmDrawer (G53 preset)
|
|
28
|
+
* @file: ab-confirm-drawer/index.tsx
|
|
29
|
+
* @type: Client component
|
|
30
|
+
* @authors: Abraham Ukachi <abrahamukachi@gmail.com>
|
|
31
|
+
*
|
|
32
|
+
* Example usage:
|
|
33
|
+
* 1+|> <AbConfirmDrawer scope="main" open={d.open} onClose={d.close} title="Discard changes?"
|
|
34
|
+
* -|> message="Your edits will be lost." confirmLabel="Discard" tone="danger" onConfirm={discard} />
|
|
35
|
+
*/
|
|
36
|
+
|
|
37
|
+
/*
|
|
38
|
+
* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
39
|
+
* MOTTO: We'll always do more 😜!!!
|
|
40
|
+
* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
41
|
+
*/
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
'use client';
|
|
45
|
+
|
|
46
|
+
// ⚛️ React
|
|
47
|
+
import type { ReactElement, ReactNode } from 'react';
|
|
48
|
+
// 🧵 classes
|
|
49
|
+
import clsx from 'clsx';
|
|
50
|
+
// 🗄️ the drawer
|
|
51
|
+
import AbDrawer, { type AbDrawerProps } from '../ab-drawer';
|
|
52
|
+
// 🔘 the house buttons
|
|
53
|
+
import AbButton from '../ab-button';
|
|
54
|
+
// 🎨 styles
|
|
55
|
+
import styles from './styles.module.css';
|
|
56
|
+
|
|
57
|
+
/** ⚙️ props: every AbDrawer prop (minus children / footer), plus the decision */
|
|
58
|
+
export interface AbConfirmDrawerProps extends Omit<AbDrawerProps, 'children' | 'footer'> {
|
|
59
|
+
message?: ReactNode; // 📝 what happens if you confirm
|
|
60
|
+
confirmLabel?: string; // ✅ default "Confirm"
|
|
61
|
+
cancelLabel?: string; // ❌ default "Cancel"
|
|
62
|
+
onConfirm: () => void; // ✅ the drawer closes after it (unless `closeOnConfirm={false}`)
|
|
63
|
+
onCancel?: () => void; // ❌ default: just close
|
|
64
|
+
tone?: 'default' | 'danger'; // 🎨 `danger` = destructive confirm
|
|
65
|
+
busy?: boolean; // ⏳ disables both buttons + spinner on confirm
|
|
66
|
+
closeOnConfirm?: boolean; // 🚪 default true
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* ❓ AbConfirmDrawer — a yes / no decision that belongs to a region (e.g. "Discard changes?" inside main).
|
|
71
|
+
* Defaults to `side="bottom"`; Escape / scrim / close = cancel. For an app-wide blocking decision use a
|
|
72
|
+
* centred dialog instead (layout-rule guide, "Drawer, menu or dialog?").
|
|
73
|
+
*/
|
|
74
|
+
const AbConfirmDrawer = ({ message, confirmLabel = 'Confirm', cancelLabel = 'Cancel', onConfirm, onCancel, tone = 'default', busy = false, closeOnConfirm = true, onClose, className, side = 'bottom', ...drawer }: AbConfirmDrawerProps): ReactElement => {
|
|
75
|
+
const cancel = () => { onCancel?.(); onClose(); }; // ❌ then 🚪
|
|
76
|
+
const confirm = () => { onConfirm(); if (closeOnConfirm) onClose(); }; // ✅ then 🚪
|
|
77
|
+
return (
|
|
78
|
+
<AbDrawer
|
|
79
|
+
{...drawer}
|
|
80
|
+
side={side}
|
|
81
|
+
onClose={cancel} // ⎋ Escape / scrim / ✕ all mean "no"
|
|
82
|
+
className={clsx('AbConfirmDrawer', className)}
|
|
83
|
+
footer={
|
|
84
|
+
<>
|
|
85
|
+
<AbButton type="text" label={cancelLabel} onClick={cancel} disabled={busy} />
|
|
86
|
+
<AbButton type="filled" label={confirmLabel} onClick={confirm} isLoading={busy} disabled={busy} className={tone === 'danger' ? styles.abConfirmDanger : undefined} />
|
|
87
|
+
</>
|
|
88
|
+
}
|
|
89
|
+
>
|
|
90
|
+
{message != null && <div className={styles.abConfirmMessage} data-ab-part="confirm-message">{message}</div>}
|
|
91
|
+
</AbDrawer>
|
|
92
|
+
);
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
// 📦 exports
|
|
96
|
+
export default AbConfirmDrawer;
|
|
97
|
+
export { AbConfirmDrawer };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @license MIT
|
|
3
|
+
* ~~~~~~~~~~~~
|
|
4
|
+
* ab-nextjs-components
|
|
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-components
|
|
27
|
+
* @name: AbConfirmDrawer styles
|
|
28
|
+
* @file: ab-confirm-drawer/styles.module.css
|
|
29
|
+
* @type: CSS module
|
|
30
|
+
* @authors: Abraham Ukachi <abrahamukachi@gmail.com>
|
|
31
|
+
*/
|
|
32
|
+
|
|
33
|
+
/*
|
|
34
|
+
* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
35
|
+
* MOTTO: We'll always do more 😜!!!
|
|
36
|
+
* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
37
|
+
*/
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
.abConfirmMessage { margin: 0; line-height: 1.5; } /* 📝 */
|
|
41
|
+
.abConfirmDanger { --ab-button-background-color: var(--ab-color-error, #b3261e); --ab-button-text-color: var(--ab-color-on-error, #fff); } /* 🚨 destructive */
|
package/ab-demo-box/index.tsx
CHANGED
|
@@ -1,3 +1,35 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @license MIT
|
|
3
|
+
* ~~~~~~~~~~~~
|
|
4
|
+
* ab-nextjs-components
|
|
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-components
|
|
27
|
+
* @name: styles.module.css
|
|
28
|
+
* @file: ab-demo-box/styles.module.css
|
|
29
|
+
* @type: CSS Stylesheet
|
|
30
|
+
* @authors: Abraham Ukachi <abrahamukachi@gmail.com>
|
|
31
|
+
*/
|
|
32
|
+
|
|
1
33
|
.abDemoBox {
|
|
2
34
|
position: relative;
|
|
3
35
|
display: flex;
|
package/ab-demo-code/index.tsx
CHANGED
|
@@ -1,3 +1,35 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @license MIT
|
|
3
|
+
* ~~~~~~~~~~~~
|
|
4
|
+
* ab-nextjs-components
|
|
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-components
|
|
27
|
+
* @name: styles.module.css
|
|
28
|
+
* @file: ab-demo-code/styles.module.css
|
|
29
|
+
* @type: CSS Stylesheet
|
|
30
|
+
* @authors: Abraham Ukachi <abrahamukachi@gmail.com>
|
|
31
|
+
*/
|
|
32
|
+
|
|
1
33
|
.abDemoCode {
|
|
2
34
|
position: relative;
|
|
3
35
|
border-radius: 0.75rem;
|