ab-nextjs-components 0.1.11 → 0.1.13

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 (122) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/README.md +30 -0
  3. package/ab-app-bar/index.tsx +181 -0
  4. package/ab-app-bar/styles.module.css +119 -0
  5. package/ab-avatar/index.tsx +2 -1
  6. package/ab-avatar/styles.module.css +32 -0
  7. package/ab-balloon/index.tsx +134 -23
  8. package/ab-balloon/styles.module.css +84 -7
  9. package/ab-brand/index.tsx +1 -1
  10. package/ab-button/helpers.ts +3 -1
  11. package/ab-button/index.tsx +17 -3
  12. package/ab-button/styles.module.css +42 -0
  13. package/ab-card/index.tsx +89 -0
  14. package/ab-card/styles.module.css +68 -0
  15. package/ab-collapsible/index.tsx +1 -1
  16. package/ab-color/index.tsx +1 -0
  17. package/ab-color/styles.module.css +32 -0
  18. package/ab-demo-box/index.tsx +1 -0
  19. package/ab-demo-box/styles.module.css +32 -0
  20. package/ab-demo-code/index.tsx +1 -0
  21. package/ab-demo-code/styles.module.css +32 -0
  22. package/ab-icon/builtin.ts +15 -1
  23. package/ab-icon/helpers.ts +37 -0
  24. package/ab-icon/index.tsx +14 -8
  25. package/ab-icon/registrar.tsx +68 -0
  26. package/ab-icon-button/index.tsx +8 -3
  27. package/ab-image/index.tsx +1 -0
  28. package/ab-image/styles.module.css +32 -0
  29. package/ab-info/index.tsx +2 -1
  30. package/ab-info/styles.module.css +32 -0
  31. package/ab-input/index.tsx +1 -0
  32. package/ab-input/styles.module.css +1 -0
  33. package/ab-install-snippet/styles.module.css +32 -8
  34. package/ab-kbd/index.tsx +65 -0
  35. package/ab-kbd/styles.module.css +55 -0
  36. package/ab-key-feature/index.tsx +2 -1
  37. package/ab-key-feature/styles.module.css +32 -0
  38. package/ab-like-button/index.tsx +1 -1
  39. package/ab-link/index.tsx +112 -0
  40. package/ab-link/locale.ts +53 -0
  41. package/ab-locale-switcher/index.tsx +17 -0
  42. package/ab-locale-switcher/styles.module.css +11 -0
  43. package/ab-main-headline/index.tsx +1 -0
  44. package/ab-main-headline/styles.module.css +32 -0
  45. package/ab-menu/index.tsx +6 -5
  46. package/ab-menu/styles.module.css +32 -0
  47. package/ab-name/index.tsx +1 -0
  48. package/ab-name/styles.module.css +32 -0
  49. package/ab-navbar/index.tsx +54 -46
  50. package/ab-navbar/styles.module.css +84 -28
  51. package/ab-navbar/view.tsx +163 -0
  52. package/ab-package-card/index.tsx +94 -0
  53. package/ab-package-card/styles.module.css +41 -0
  54. package/ab-page-paginator/index.tsx +1 -0
  55. package/ab-page-paginator/styles.module.css +32 -0
  56. package/ab-page-switcher/index.tsx +1 -0
  57. package/ab-page-switcher/styles.module.css +32 -0
  58. package/ab-preview/index.tsx +1 -0
  59. package/ab-preview/styles.module.css +32 -0
  60. package/ab-price/index.tsx +1 -0
  61. package/ab-price/styles.module.css +32 -0
  62. package/ab-price-tag/index.tsx +1 -0
  63. package/ab-price-tag/styles.module.css +32 -0
  64. package/ab-product/index.tsx +1 -0
  65. package/ab-product/styles.module.css +32 -0
  66. package/ab-product-item/index.tsx +1 -0
  67. package/ab-product-item/styles.module.css +32 -0
  68. package/ab-search-result/index.tsx +1 -0
  69. package/ab-search-result/styles.module.css +32 -0
  70. package/ab-search-trigger/index.tsx +142 -0
  71. package/ab-search-trigger/styles.module.css +70 -0
  72. package/ab-sidebar/index.tsx +88 -49
  73. package/ab-sidebar/styles.module.css +136 -31
  74. package/ab-sidebar/view.tsx +182 -0
  75. package/ab-switch-back/index.tsx +2 -1
  76. package/ab-switch-back/styles.module.css +32 -0
  77. package/ab-tab/index.tsx +2 -1
  78. package/ab-tab/styles.module.css +32 -0
  79. package/ab-tabs/index.tsx +1 -0
  80. package/ab-tabs/styles.module.css +32 -0
  81. package/ab-test-hello/index.tsx +1 -0
  82. package/ab-test-hello/styles.module.css +32 -0
  83. package/ab-text/index.tsx +1 -0
  84. package/ab-text/styles.module.css +32 -0
  85. package/ab-toc/index.tsx +124 -0
  86. package/ab-toc/styles.module.css +54 -0
  87. package/css/chrome-mq.css +32 -0
  88. package/css/doodle.css +32 -0
  89. package/css/logo.css +32 -0
  90. package/css/spinner.css +32 -0
  91. package/css/toast.css +32 -0
  92. package/index.ts +18 -0
  93. package/package.json +27 -10
  94. package/server/ab-avatar/index.tsx +2 -1
  95. package/server/ab-avatar/styles.module.css +32 -0
  96. package/server/ab-badge/index.tsx +1 -0
  97. package/server/ab-badge/styles.module.css +32 -0
  98. package/server/ab-brand/index.tsx +1 -1
  99. package/server/ab-button/index.tsx +1 -1
  100. package/server/ab-button/styles.module.css +11 -0
  101. package/server/ab-icon/index.tsx +13 -8
  102. package/server/ab-key-feature/index.tsx +2 -1
  103. package/server/ab-key-feature/styles.module.css +32 -0
  104. package/server/ab-name/index.tsx +1 -0
  105. package/server/ab-name/styles.module.css +32 -0
  106. package/server/ab-nav-link/index.tsx +2 -1
  107. package/server/ab-nav-link/styles.module.css +32 -0
  108. package/server/ab-navbar/index.tsx +44 -45
  109. package/server/ab-polygon/index.tsx +1 -0
  110. package/server/ab-polygon/styles.module.css +32 -0
  111. package/server/ab-sidebar/index.tsx +44 -49
  112. package/server/ab-switch-back/index.tsx +2 -1
  113. package/server/ab-switch-back/styles.module.css +32 -0
  114. package/server/ab-test-hello/index.tsx +1 -0
  115. package/server/ab-test-hello/styles.module.css +32 -0
  116. package/server/ab-text/index.tsx +1 -0
  117. package/server/ab-text/styles.module.css +32 -0
  118. package/server/index.ts +1 -0
  119. package/styles.css +32 -0
  120. package/types/index.d.ts +35 -0
  121. package/server/ab-navbar/styles.module.css +0 -35
  122. package/server/ab-sidebar/styles.module.css +0 -41
package/css/doodle.css 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: doodle.css
28
+ * @file: css/doodle.css
29
+ * @type: CSS Stylesheet
30
+ * @authors: Abraham Ukachi <abrahamukachi@gmail.com>
31
+ */
32
+
1
33
  /*
2
34
  * ab-nextjs-components — chrome styles moved out of ab-nextjs-theme
3
35
  * Copyright (c) 2026 Abraham Ukachi. MIT.
package/css/logo.css 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: logo.css
28
+ * @file: css/logo.css
29
+ * @type: CSS Stylesheet
30
+ * @authors: Abraham Ukachi <abrahamukachi@gmail.com>
31
+ */
32
+
1
33
  /*
2
34
  * ab-nextjs-components — chrome styles moved out of ab-nextjs-theme
3
35
  * Copyright (c) 2026 Abraham Ukachi. MIT.
package/css/spinner.css 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: spinner.css
28
+ * @file: css/spinner.css
29
+ * @type: CSS Stylesheet
30
+ * @authors: Abraham Ukachi <abrahamukachi@gmail.com>
31
+ */
32
+
1
33
  /*
2
34
  * ab-nextjs-components — chrome styles moved out of ab-nextjs-theme
3
35
  * Copyright (c) 2026 Abraham Ukachi. MIT.
package/css/toast.css 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: toast.css
28
+ * @file: css/toast.css
29
+ * @type: CSS Stylesheet
30
+ * @authors: Abraham Ukachi <abrahamukachi@gmail.com>
31
+ */
32
+
1
33
  /*
2
34
  * ab-nextjs-components — chrome styles moved out of ab-nextjs-theme
3
35
  * Copyright (c) 2026 Abraham Ukachi. MIT.
package/index.ts CHANGED
@@ -116,6 +116,20 @@ const supportedComponents: Array<ComponentCatalogEntry> = [
116
116
  { name: 'AbLocaleSwitcher', file: 'ab-locale-switcher/index.tsx', kind: 'client', status: 'Done' },
117
117
  // 🆕 Welcome v6 (AbFlowDiagram)
118
118
  { name: 'AbFlowDiagram', file: 'ab-flow-diagram/index.tsx', kind: 'server', status: 'Done' },
119
+ // 🆕 0.1.13 docs shell (AbLink)
120
+ { name: 'AbLink', file: 'ab-link/index.tsx', kind: 'client', status: 'Done' },
121
+ // 🆕 0.1.13 docs shell (AbKbd) — server-safe, no hooks
122
+ { name: 'AbKbd', file: 'ab-kbd/index.tsx', kind: 'server', status: 'Done' },
123
+ // 🆕 0.1.13 docs shell (AbSearchTrigger)
124
+ { name: 'AbSearchTrigger', file: 'ab-search-trigger/index.tsx', kind: 'client', status: 'Done' },
125
+ // 🆕 0.1.13 docs shell (AbAppBar)
126
+ { name: 'AbAppBar', file: 'ab-app-bar/index.tsx', kind: 'client', status: 'Done' },
127
+ // 🆕 0.1.13 docs shell (AbCard) — server-safe, no hooks
128
+ { name: 'AbCard', file: 'ab-card/index.tsx', kind: 'server', status: 'Done' },
129
+ // 🆕 0.1.13 docs shell (AbPackageCard) — server-safe, no hooks
130
+ { name: 'AbPackageCard', file: 'ab-package-card/index.tsx', kind: 'server', status: 'Done' },
131
+ // 🆕 0.1.13 docs shell (AbToc) — server-safe, no hooks
132
+ { name: 'AbToc', file: 'ab-toc/index.tsx', kind: 'server', status: 'Done' },
119
133
  ]
120
134
 
121
135
  const abComponents = { supportedComponents }
@@ -124,6 +138,7 @@ export { supportedComponents }
124
138
  export default abComponents
125
139
 
126
140
  export { default as AbIcon } from './ab-icon/index.tsx'
141
+ export { AbIconRegistrar } from './ab-icon/registrar.tsx' // 🗂️ server-safe icon registration (0.1.13)
127
142
  export { default as AbLogo } from './ab-logo/index.tsx'
128
143
  // 📶 progress bar
129
144
  export { default as AbLinearProgress } from './ab-linear-progress/index.tsx'
@@ -151,6 +166,9 @@ export { default as AbBrand } from './ab-brand/index.tsx'
151
166
  export { default as AbName } from './ab-name/index.tsx'
152
167
  export { default as AbNavbar } from './ab-navbar/index.tsx'
153
168
  export { default as AbSidebar } from './ab-sidebar/index.tsx'
169
+ // 📑 0.1.13 (Joseph): AbToc + the panes main-scroller helpers (also at `ab-nextjs-components/ab-toc`)
170
+ export { default as AbToc, getAbMainScroller, AB_MAIN_SCROLLER_SELECTOR } from './ab-toc/index.tsx'
171
+ export type { AbTocItem, AbTocProps } from './ab-toc/index.tsx'
154
172
  export { default as AbText } from './ab-text/index.tsx'
155
173
  export { default as AbTestHello } from './ab-test-hello/index.tsx'
156
174
  export { default as AbKeyFeature } from './ab-key-feature/index.tsx'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ab-nextjs-components",
3
- "version": "0.1.11",
3
+ "version": "0.1.13",
4
4
  "description": "🚀 A lightweight collection of server & client React components created by Abraham Ukachi, and optimized for Next.js applications 😎.",
5
5
  "type": "module",
6
6
  "main": "index.ts",
@@ -36,14 +36,14 @@
36
36
  "author": {
37
37
  "name": "Abraham Ukachi",
38
38
  "url": "https://github.com/abraham-ukachi",
39
- "email": "abraham.ukachi@laplateforme.io"
39
+ "email": "abrahamukachi@gmail.com"
40
40
  },
41
41
  "license": "MIT",
42
42
  "peerDependencies": {
43
43
  "ab-nextjs-animations": "^0.2.4",
44
- "ab-nextjs-hooks": "^0.1.6",
45
- "ab-nextjs-icons": "^0.2.3",
46
- "ab-nextjs-theme": "^0.3.1",
44
+ "ab-nextjs-hooks": "^0.1.7",
45
+ "ab-nextjs-icons": "^0.2.4",
46
+ "ab-nextjs-theme": "^0.3.4",
47
47
  "clsx": "^2",
48
48
  "next": "^16.3.4",
49
49
  "react": "^19",
@@ -54,9 +54,9 @@
54
54
  "@types/node": "^20",
55
55
  "@types/react": "^19",
56
56
  "ab-nextjs-animations": "^0.2.4",
57
- "ab-nextjs-hooks": "^0.1.6",
58
- "ab-nextjs-icons": "^0.2.3",
59
- "ab-nextjs-theme": "^0.3.1",
57
+ "ab-nextjs-hooks": "^0.1.7",
58
+ "ab-nextjs-icons": "^0.2.4",
59
+ "ab-nextjs-theme": "^0.3.4",
60
60
  "clsx": "^2.1.1",
61
61
  "esbuild": "^0.28.2",
62
62
  "eslint": "^9.39.0",
@@ -123,7 +123,14 @@
123
123
  "ab-logo/ab-logo.svg",
124
124
  "styles.css",
125
125
  "css",
126
- "assets"
126
+ "assets",
127
+ "ab-link",
128
+ "ab-kbd",
129
+ "ab-search-trigger",
130
+ "ab-app-bar",
131
+ "ab-card",
132
+ "ab-package-card",
133
+ "ab-toc"
127
134
  ],
128
135
  "exports": {
129
136
  ".": {
@@ -132,6 +139,7 @@
132
139
  },
133
140
  "./package.json": "./package.json",
134
141
  "./ab-icon": "./ab-icon/index.tsx",
142
+ "./ab-icon/registrar": "./ab-icon/registrar.tsx",
135
143
  "./ab-logo": "./ab-logo/index.tsx",
136
144
  "./ab-linear-progress": "./ab-linear-progress/index.tsx",
137
145
  "./ab-splash": "./ab-splash/index.tsx",
@@ -204,7 +212,16 @@
204
212
  "./server/ab-switch-back": "./server/ab-switch-back/index.tsx",
205
213
  "./styles.css": "./styles.css",
206
214
  "./css/*": "./css/*",
207
- "./assets/*": "./assets/*"
215
+ "./assets/*": "./assets/*",
216
+ "./ab-link": "./ab-link/index.tsx",
217
+ "./ab-kbd": "./ab-kbd/index.tsx",
218
+ "./ab-search-trigger": "./ab-search-trigger/index.tsx",
219
+ "./ab-app-bar": "./ab-app-bar/index.tsx",
220
+ "./ab-card": "./ab-card/index.tsx",
221
+ "./ab-package-card": "./ab-package-card/index.tsx",
222
+ "./ab-toc": "./ab-toc/index.tsx",
223
+ "./ab-sidebar/view": "./ab-sidebar/view.tsx",
224
+ "./ab-navbar/view": "./ab-navbar/view.tsx"
208
225
  },
209
226
  "peerDependenciesMeta": {
210
227
  "ab-nextjs-theme": {
@@ -8,11 +8,12 @@
8
8
  * @project: ab-nextjs-components
9
9
  * @name: AbAvatar - Server (port of server/lyd-avatar)
10
10
  * @file: server/ab-avatar/index.tsx
11
+ * @authors: Abraham Ukachi <abrahamukachi@gmail.com>
11
12
  */
12
13
 
13
14
  import type { ReactElement } from 'react';
14
15
  import Image from 'next/image';
15
- import Link from 'next/link';
16
+ import Link from '../../ab-link'; // 🔗 G42: injectable via AbLinkProvider (default next/link)
16
17
  import clsx from 'clsx';
17
18
  import styles from './styles.module.css';
18
19
 
@@ -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: server/ab-avatar/styles.module.css
29
+ * @type: CSS Stylesheet
30
+ * @authors: Abraham Ukachi <abrahamukachi@gmail.com>
31
+ */
32
+
1
33
  /* AbAvatar — plain CSS (no Tailwind apply) */
2
34
  .abAvatar {
3
35
  display: flex;
@@ -8,6 +8,7 @@
8
8
  * @project: ab-nextjs-components
9
9
  * @name: AbBadge - Server (port of server/lyd-badge)
10
10
  * @file: server/ab-badge/index.tsx
11
+ * @authors: Abraham Ukachi <abrahamukachi@gmail.com>
11
12
  */
12
13
 
13
14
  import type { CSSProperties, ReactElement } from 'react';
@@ -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: server/ab-badge/styles.module.css
29
+ * @type: CSS Stylesheet
30
+ * @authors: Abraham Ukachi <abrahamukachi@gmail.com>
31
+ */
32
+
1
33
  /* AbBadge — server, plain CSS */
2
34
  .abBadge {
3
35
  position: absolute;
@@ -38,7 +38,7 @@
38
38
 
39
39
 
40
40
  import type { CSSProperties, ReactElement } from 'react';
41
- import Link from 'next/link';
41
+ import Link from '../../ab-link'; // 🔗 G42: injectable via AbLinkProvider (default next/link)
42
42
  import Image from 'next/image';
43
43
  import clsx from 'clsx';
44
44
  import styles from './styles.module.css';
@@ -94,7 +94,7 @@ const AbButton = ({
94
94
  const srReason = getAbButtonSrReason({ disabled, disabledReason });
95
95
 
96
96
  // 🏷️ classes
97
- const classNames = clsx('AbButton', styles.abButton, className, rounded && styles.abButtonRounded, mode === 'native' && styles.isDisabled);
97
+ const classNames = clsx('AbButton', styles.abButton, className, rounded && styles.abButtonRounded, type === 'filled' && styles.isFilled /* 🥉 */, mode === 'native' && styles.isDisabled);
98
98
 
99
99
  // 🗂️ data attributes
100
100
  const dataAttrs = {
@@ -62,6 +62,17 @@
62
62
 
63
63
  .isContained {}
64
64
 
65
+ /* 🥉 Filled (0.1.12): solid bronze fallback for apps on ab-nextjs-theme < 0.3.3.
66
+ * Theme ≥ 0.3.3 ships `button[data-type="filled"]` (higher specificity), which
67
+ * adds the hover / focus / disabled state layers on top of this 🎨 */
68
+ .isFilled {
69
+ --material-icon-color: var(--ab-button-text-color, var(--md-sys-color-on-primary, #fff)); /* 🎨 icon = label */
70
+
71
+ background: var(--ab-button-background-color, var(--md-sys-color-primary, rgb(133 83 24)));
72
+ color: var(--ab-button-text-color, var(--md-sys-color-on-primary, #fff));
73
+ font-weight: bold;
74
+ }
75
+
65
76
  .isDisabled {
66
77
  pointer-events: none;
67
78
  opacity: 0.6;
@@ -37,19 +37,19 @@
37
37
  */
38
38
 
39
39
  // ⚛️ types
40
- import type { CSSProperties, ReactElement } from 'react';
40
+ import { useId, type CSSProperties, type ReactElement } from 'react';
41
41
  // 🧵 classes
42
42
  import clsx from 'clsx';
43
43
  // 🗺️ full icon map: fine here, server components ship no JS to the browser
44
44
  import { getAbIconSvg } from 'ab-nextjs-icons/ab-icons';
45
45
  // 🧮 shared helpers (same rules as the client twin)
46
- import { getAbIconStroke, getRegisteredAbIcon, pickAbIconMarkup, toAbIconSize, type AbIconSvgData, type AbIconVariant, type AbIconWeight } from '../../ab-icon/helpers';
46
+ import { scopeAbIconIds, warnAbIconMissing, getAbIconStroke, getRegisteredAbIcon, pickAbIconMarkup, toAbIconSize, type AbIconSvgData, type AbIconVariant, type AbIconWeight } from '../../ab-icon/helpers';
47
47
  // 🎨 styles (server copy)
48
48
  import styles from './styles.module.css';
49
49
 
50
50
  // ⚙️ props
51
51
  export interface AbIconProps {
52
- name: string; // 🗂️ AbIcons name (snake_case); Material ligature fallback if unknown
52
+ name: string; // 🗂️ AbIcons name (snake_case); AbIcons name (registered / svg / map); unknown = Material ligature fallback + dev warning
53
53
  variant?: AbIconVariant; // 🎚️ outlined (default) | filled
54
54
  filled?: boolean; // 🕰️ legacy alias for variant="filled"
55
55
  weight?: AbIconWeight | number; // 📏 100–700 (outlined), default 200
@@ -61,12 +61,14 @@ export interface AbIconProps {
61
61
  style?: CSSProperties; // 🎨
62
62
  }
63
63
 
64
- /** 🔣 AbIcons SVG icon (server / RSC): `svg` prop → registry → full AbIcons map → Material ligature. */
64
+ /** 🔣 AbIcons SVG icon (server / RSC): `svg` prop → registry → full AbIcons map → Material ligature fallback + dev warning. */
65
65
  const AbIcon = ({ name, variant, filled = false, weight, size, label, title, svg, className, style }: AbIconProps): ReactElement => {
66
66
  // 🎚️ variant for lookup
67
67
  const want: AbIconVariant = variant ?? (filled ? 'filled' : 'outlined');
68
68
  // 🔍 explicit → registered → whole map (weight is applied by CSS, so ask for the raw markup)
69
69
  const markup = pickAbIconMarkup(svg ?? getRegisteredAbIcon(name), want) ?? getAbIconSvg(name, want);
70
+ // 🆔 one id per rendered instance (Joseph: a hidden twin's mask broke the active Home)
71
+ const uid = useId();
70
72
  // 🎚️ legacy `filled` → variant
71
73
  const v: AbIconVariant = variant ?? (filled ? 'filled' : 'outlined');
72
74
  // 🏷️ accessible name: `label` (new) or `title` (legacy)
@@ -87,18 +89,21 @@ const AbIcon = ({ name, variant, filled = false, weight, size, label, title, svg
87
89
  title={title} // 💬 legacy tooltip only
88
90
  {...a11y} // ♿
89
91
  // 🔒 trusted, package-generated static markup (never user input)
90
- dangerouslySetInnerHTML={{ __html: markup }}
92
+ dangerouslySetInnerHTML={{ __html: scopeAbIconIds(markup, uid) }}
91
93
  />
92
94
  );
93
95
  }
94
96
 
95
- // 🕰️ fallback: Material Symbols ligature (pre-G2 behaviour) for names not in AbIcons
97
+ // 🕰️ 0.1.13 (James review): NON-breaking fallback for unregistered names. A patch must not blank icons,
98
+ // so an unknown name still renders the pre-G2 Material Symbols ligature (needs the app's font), and
99
+ // warns once in development so the missing registration gets fixed before the app drops the font.
100
+ warnAbIconMissing(name);
96
101
  return (
97
102
  <span
98
- className={clsx('material-symbols-rounded', 'icon', styles.abIconFont, className)} // 🏷️
103
+ className={clsx('AbIcon', 'material-symbols-rounded', 'icon', styles.abIconFont, className)} // 🏷️ legacy font class
99
104
  style={{ ...style, fontSize: toAbIconSize(size) }} // 📏
100
- data-filled={v === 'filled' ? 'true' : 'false'} // 🎚️
101
105
  data-icon={name} // 🗂️
106
+ data-filled={v === 'filled' ? 'true' : 'false'} // 🎚️
102
107
  data-ab-icon-fallback="font" // 🔎 easy to audit
103
108
  title={title} // 💬
104
109
  {...a11y} // ♿
@@ -8,11 +8,12 @@
8
8
  * @project: ab-nextjs-components
9
9
  * @name: AbKeyFeature - Server (port of lyd-key-feature)
10
10
  * @file: server/ab-key-feature/index.tsx
11
+ * @authors: Abraham Ukachi <abrahamukachi@gmail.com>
11
12
  */
12
13
 
13
14
 
14
15
  import type { ReactElement } from 'react';
15
- import Link from 'next/link';
16
+ import Link from '../../ab-link'; // 🔗 G42: injectable via AbLinkProvider (default next/link)
16
17
  import clsx from 'clsx';
17
18
  import styles from './styles.module.css';
18
19
 
@@ -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: server/ab-key-feature/styles.module.css
29
+ * @type: CSS Stylesheet
30
+ * @authors: Abraham Ukachi <abrahamukachi@gmail.com>
31
+ */
32
+
1
33
  .abKeyFeature {
2
34
  display: flex;
3
35
  flex-direction: column;
@@ -8,6 +8,7 @@
8
8
  * @project: ab-nextjs-components
9
9
  * @name: AbName - Server (port of lyd-name)
10
10
  * @file: server/ab-name/index.tsx
11
+ * @authors: Abraham Ukachi <abrahamukachi@gmail.com>
11
12
  */
12
13
 
13
14
 
@@ -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: server/ab-name/styles.module.css
29
+ * @type: CSS Stylesheet
30
+ * @authors: Abraham Ukachi <abrahamukachi@gmail.com>
31
+ */
32
+
1
33
  .abName {
2
34
  display: inline-flex;
3
35
  align-items: baseline;
@@ -8,10 +8,11 @@
8
8
  * @project: ab-nextjs-components
9
9
  * @name: AbNavLink - Server (port of lyd-nav-link)
10
10
  * @file: server/ab-nav-link/index.tsx
11
+ * @authors: Abraham Ukachi <abrahamukachi@gmail.com>
11
12
  */
12
13
 
13
14
  import type { ReactElement } from 'react';
14
- import Link from 'next/link';
15
+ import Link from '../../ab-link'; // 🔗 G42: injectable via AbLinkProvider (default next/link)
15
16
  import clsx from 'clsx';
16
17
  import styles from './styles.module.css';
17
18
 
@@ -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: server/ab-nav-link/styles.module.css
29
+ * @type: CSS Stylesheet
30
+ * @authors: Abraham Ukachi <abrahamukachi@gmail.com>
31
+ */
32
+
1
33
  .abNavLink {
2
34
  display: inline-flex;
3
35
  align-items: center;