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.
Files changed (145) hide show
  1. package/CHANGELOG.md +64 -0
  2. package/README.md +52 -0
  3. package/ab-app-bar/index.tsx +210 -0
  4. package/ab-app-bar/styles.module.css +158 -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-bottom-drawer/index.tsx +71 -0
  10. package/ab-bottom-drawer/styles.module.css +66 -0
  11. package/ab-brand/index.tsx +1 -1
  12. package/ab-breadcrumbs/index.tsx +92 -0
  13. package/ab-breadcrumbs/styles.module.css +54 -0
  14. package/ab-button/helpers.ts +6 -1
  15. package/ab-button/index.tsx +23 -4
  16. package/ab-button/styles.module.css +70 -0
  17. package/ab-card/index.tsx +89 -0
  18. package/ab-card/styles.module.css +68 -0
  19. package/ab-carousel/styles.module.css +1 -1
  20. package/ab-chip/index.tsx +16 -4
  21. package/ab-chip/styles.module.css +12 -1
  22. package/ab-collapsible/index.tsx +1 -1
  23. package/ab-color/index.tsx +1 -0
  24. package/ab-color/styles.module.css +32 -0
  25. package/ab-confirm-drawer/index.tsx +97 -0
  26. package/ab-confirm-drawer/styles.module.css +41 -0
  27. package/ab-demo-box/index.tsx +1 -0
  28. package/ab-demo-box/styles.module.css +32 -0
  29. package/ab-demo-code/index.tsx +1 -0
  30. package/ab-demo-code/styles.module.css +32 -0
  31. package/ab-drawer/index.tsx +307 -0
  32. package/ab-drawer/styles.module.css +127 -0
  33. package/ab-drawer/use-ab-drawer.ts +89 -0
  34. package/ab-drawer-list/index.tsx +118 -0
  35. package/ab-drawer-list/styles.module.css +65 -0
  36. package/ab-flow-diagram/styles.module.css +2 -2
  37. package/ab-icon/builtin.ts +19 -1
  38. package/ab-icon/helpers.ts +37 -0
  39. package/ab-icon/index.tsx +14 -8
  40. package/ab-icon/registrar.tsx +68 -0
  41. package/ab-icon-button/index.tsx +19 -3
  42. package/ab-icon-button/styles.module.css +1 -1
  43. package/ab-image/index.tsx +1 -0
  44. package/ab-image/styles.module.css +32 -0
  45. package/ab-info/index.tsx +2 -1
  46. package/ab-info/styles.module.css +32 -0
  47. package/ab-input/index.tsx +1 -0
  48. package/ab-input/styles.module.css +1 -0
  49. package/ab-install-snippet/index.tsx +51 -29
  50. package/ab-install-snippet/styles.module.css +50 -4
  51. package/ab-kbd/index.tsx +65 -0
  52. package/ab-kbd/styles.module.css +55 -0
  53. package/ab-key-feature/index.tsx +2 -1
  54. package/ab-key-feature/styles.module.css +32 -0
  55. package/ab-like-button/index.tsx +1 -1
  56. package/ab-link/index.tsx +112 -0
  57. package/ab-link/locale.ts +53 -0
  58. package/ab-list/index.tsx +107 -0
  59. package/ab-list/styles.module.css +82 -0
  60. package/ab-locale-switcher/index.tsx +59 -10
  61. package/ab-locale-switcher/styles.module.css +15 -4
  62. package/ab-main-headline/index.tsx +1 -0
  63. package/ab-main-headline/styles.module.css +32 -0
  64. package/ab-menu/index.tsx +6 -5
  65. package/ab-menu/styles.module.css +32 -0
  66. package/ab-name/index.tsx +1 -0
  67. package/ab-name/styles.module.css +32 -0
  68. package/ab-navbar/index.tsx +54 -46
  69. package/ab-navbar/styles.module.css +102 -28
  70. package/ab-navbar/view.tsx +166 -0
  71. package/ab-package-card/index.tsx +141 -0
  72. package/ab-package-card/styles.module.css +81 -0
  73. package/ab-page-paginator/index.tsx +1 -0
  74. package/ab-page-paginator/styles.module.css +32 -0
  75. package/ab-page-switcher/index.tsx +1 -0
  76. package/ab-page-switcher/styles.module.css +32 -0
  77. package/ab-preview/index.tsx +1 -0
  78. package/ab-preview/styles.module.css +32 -0
  79. package/ab-price/index.tsx +1 -0
  80. package/ab-price/styles.module.css +32 -0
  81. package/ab-price-tag/index.tsx +1 -0
  82. package/ab-price-tag/styles.module.css +32 -0
  83. package/ab-product/index.tsx +1 -0
  84. package/ab-product/styles.module.css +32 -0
  85. package/ab-product-item/index.tsx +1 -0
  86. package/ab-product-item/styles.module.css +32 -0
  87. package/ab-search-result/index.tsx +1 -0
  88. package/ab-search-result/styles.module.css +32 -0
  89. package/ab-search-trigger/index.tsx +157 -0
  90. package/ab-search-trigger/styles.module.css +96 -0
  91. package/ab-sidebar/index.tsx +91 -49
  92. package/ab-sidebar/styles.module.css +179 -31
  93. package/ab-sidebar/view.tsx +192 -0
  94. package/ab-switch-back/index.tsx +2 -1
  95. package/ab-switch-back/styles.module.css +32 -0
  96. package/ab-tab/index.tsx +2 -1
  97. package/ab-tab/styles.module.css +32 -0
  98. package/ab-tabs/index.tsx +1 -0
  99. package/ab-tabs/styles.module.css +32 -0
  100. package/ab-test-hello/index.tsx +1 -0
  101. package/ab-test-hello/styles.module.css +32 -0
  102. package/ab-text/index.tsx +1 -0
  103. package/ab-text/styles.module.css +32 -0
  104. package/ab-theme-toggle/index.tsx +21 -6
  105. package/ab-theme-toggle/styles.module.css +18 -3
  106. package/ab-toc/index.tsx +131 -0
  107. package/ab-toc/styles.module.css +66 -0
  108. package/ab-version-switcher/index.tsx +143 -0
  109. package/ab-version-switcher/styles.module.css +76 -0
  110. package/css/chrome-mq.css +32 -0
  111. package/css/doodle.css +32 -0
  112. package/css/logo.css +32 -0
  113. package/css/spinner.css +32 -0
  114. package/css/toast.css +32 -0
  115. package/index.ts +45 -0
  116. package/package.json +42 -10
  117. package/server/ab-avatar/index.tsx +2 -1
  118. package/server/ab-avatar/styles.module.css +32 -0
  119. package/server/ab-badge/index.tsx +1 -0
  120. package/server/ab-badge/styles.module.css +32 -0
  121. package/server/ab-brand/index.tsx +1 -1
  122. package/server/ab-button/index.tsx +6 -2
  123. package/server/ab-button/styles.module.css +39 -0
  124. package/server/ab-icon/index.tsx +13 -8
  125. package/server/ab-key-feature/index.tsx +2 -1
  126. package/server/ab-key-feature/styles.module.css +32 -0
  127. package/server/ab-name/index.tsx +1 -0
  128. package/server/ab-name/styles.module.css +32 -0
  129. package/server/ab-nav-link/index.tsx +2 -1
  130. package/server/ab-nav-link/styles.module.css +32 -0
  131. package/server/ab-navbar/index.tsx +44 -45
  132. package/server/ab-polygon/index.tsx +1 -0
  133. package/server/ab-polygon/styles.module.css +32 -0
  134. package/server/ab-sidebar/index.tsx +44 -49
  135. package/server/ab-switch-back/index.tsx +2 -1
  136. package/server/ab-switch-back/styles.module.css +32 -0
  137. package/server/ab-test-hello/index.tsx +1 -0
  138. package/server/ab-test-hello/styles.module.css +32 -0
  139. package/server/ab-text/index.tsx +1 -0
  140. package/server/ab-text/styles.module.css +32 -0
  141. package/server/index.ts +1 -0
  142. package/styles.css +32 -0
  143. package/types/index.d.ts +54 -0
  144. package/server/ab-navbar/styles.module.css +0 -35
  145. package/server/ab-sidebar/styles.module.css +0 -41
@@ -42,9 +42,12 @@
42
42
  gap: 0.5rem; /* ๐Ÿงฑ */
43
43
  padding: 0.75rem; /* ๐Ÿงฑ */
44
44
  border-radius: 0.875rem; /* ๐Ÿ”ฒ */
45
- border: 1px solid var(--ab-color-outline-variant, rgb(0 0 0 / 0.12)); /* ๐Ÿ–Š๏ธ */
45
+ border: 1px solid var(--ab-color-border, var(--ab-color-outline-variant, rgb(0 0 0 / 0.12))); /* ๐Ÿ–Š๏ธ */
46
46
  background: var(--ab-color-surface-container, transparent); /* ๐ŸŽจ */
47
47
  max-width: 100%; /* ๐Ÿ“ */
48
+ min-width: 0; /* ๐Ÿšซ overflow in narrow columns (0.1.13) */
49
+ box-sizing: border-box; /* ๐Ÿ“ฆ the 1px border stays inside 100% */
50
+ grid-template-columns: minmax(0, 1fr); /* ๐Ÿšซ the nowrap command can't widen the card */
48
51
  }
49
52
 
50
53
  /* ๐Ÿ—‚๏ธ tabs row */
@@ -81,7 +84,7 @@
81
84
  font-weight: 600; /* ๐Ÿ’ช */
82
85
  }
83
86
  .tab:focus-visible {
84
- outline: 2px solid var(--ab-focus-ring, var(--ab-color-primary, #A67C52)); /* ๐Ÿ’ */
87
+ outline: 2px solid var(--ab-color-accent, var(--ab-focus-ring, var(--ab-color-primary, #A67C52))); /* ๐Ÿ’ */
85
88
  outline-offset: 2px; /* โ†”๏ธ */
86
89
  }
87
90
 
@@ -91,20 +94,26 @@
91
94
  align-items: center; /* โ†•๏ธ */
92
95
  gap: 0.5rem; /* ๐Ÿงฑ */
93
96
  min-width: 0; /* ๐Ÿšซ overflow */
97
+ /* ๐Ÿ’ป 0.1.13 (Joseph #13): the command sits on the theme 0.3.4 code surface (dark in both themes) */
98
+ padding: 0.375rem 0.375rem 0.375rem 0.75rem; /* ๐Ÿงฑ */
99
+ border-radius: 0.625rem; /* ๐Ÿ”ฒ */
100
+ background: var(--ab-color-code-surface, rgb(35 28 23)); /* ๐Ÿ’ป */
101
+ color: var(--ab-color-on-code-surface, rgb(240 223 215)); /* ๐Ÿ–‹๏ธ โ‰ฅ 4.5:1 */
94
102
  }
95
103
  .prompt {
96
104
  opacity: 0.5; /* ๐ŸŒซ๏ธ */
97
- font-family: var(--ab-font-mono, ui-monospace, monospace); /* ๐Ÿ”ค */
105
+ font-family: var(--ab-font-code, var(--ab-font-mono, ui-monospace, monospace)); /* โŒจ๏ธ code font (Roboto Mono via theme 0.3.4) */
98
106
  }
99
107
  .code {
100
108
  flex: 1; /* โ†”๏ธ */
101
109
  overflow-x: auto; /* ๐Ÿ“œ long commands scroll */
102
110
  white-space: nowrap; /* ๐Ÿšซ wrap */
103
- font-family: var(--ab-font-mono, ui-monospace, monospace); /* ๐Ÿ”ค */
111
+ font-family: var(--ab-font-code, var(--ab-font-mono, ui-monospace, monospace)); /* โŒจ๏ธ code font (Roboto Mono via theme 0.3.4) */
104
112
  font-size: 0.875rem; /* ๐Ÿ”ก */
105
113
  }
106
114
  .copy {
107
115
  flex: none; /* ๐Ÿšซ squash */
116
+ color: inherit; /* ๐Ÿ–‹๏ธ on-code-surface */
108
117
  }
109
118
 
110
119
  /* ๐Ÿ™ˆ visually hidden */
@@ -112,3 +121,40 @@
112
121
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; /* ๐Ÿ“ */
113
122
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; /* โœ‚๏ธ */
114
123
  }
124
+
125
+ /* ๐Ÿšซ JS off (0.1.13, gap-review): the command shows the pnpm default; copying needs JS, so hide the button */
126
+ @media (scripting: none) {
127
+ .copy { display: none; } /* ๐Ÿ™ˆ */
128
+ }
129
+
130
+ /* ===== ๐Ÿ’ป 0.1.14 (P12, Home spec ยง4 install block): variant="terminal" (dark in both themes) ===== */
131
+ .root.terminal {
132
+ display: block; gap: 0; padding: 0; overflow: hidden; /* ๐Ÿงน no outer card */
133
+ border: 1px solid rgb(255 232 210 / 0.06); border-radius: var(--ab-radius-code, 12px); /* ๐Ÿ”ฒ */
134
+ background: var(--ab-color-code, #231a14); color: var(--ab-color-code-text, #ede0d4); /* ๐Ÿ’ป dark: #110b07 / #e8dacc */
135
+ box-shadow: 0 10px 30px rgb(33 26 22 / 0.14); /* ๐ŸŒ— */
136
+ }
137
+ .termHead {
138
+ display: flex; align-items: center; padding: 6px 8px 0 10px; /* ๐Ÿ“ฆ tabs ยท grow ยท copy */
139
+ border-bottom: 1px solid rgb(255 232 210 / 0.08); /* โž– */
140
+ }
141
+ .terminal .tabs { gap: 2px; } /* ๐Ÿ—‚๏ธ */
142
+ .terminal .tab, .terminal .tab:hover {
143
+ min-height: 0; padding: 6px 8px 8px; border-radius: 0; background: none; /* ๐Ÿงน no pills */
144
+ font-size: 12px; font-weight: 600; line-height: 17px; color: rgb(237 224 212 / 0.55); /* ๐Ÿ”ค */
145
+ }
146
+ .terminal .tab:hover { color: rgb(237 224 212 / 0.8); } /* ๐Ÿ–ฑ๏ธ */
147
+ .terminal .tab[aria-selected='true'], .terminal .tab[aria-selected='true']:hover {
148
+ background: none; color: #e7c8a5; box-shadow: inset 0 -2px 0 #c29a6f; /* โœ… underline */
149
+ }
150
+ .terminal .tab:focus-visible { outline-color: #c29a6f; outline-offset: -2px; } /* โ™ฟ inside the block */
151
+ .termGrow { flex: 1; } /* โ†”๏ธ */
152
+ .terminal .copy.copy { margin: 0; padding: 4px 4px 6px; border-radius: 6px; color: rgb(237 224 212 / 0.7); } /* ๐Ÿ“‹ always visible; mock .cp 4/4/6 โ†’ a 26px (โ‰ฅ 24px) target */
153
+ .terminal .panel { display: block; padding: 14px 16px 16px; border-radius: 0; background: none; color: inherit; overflow-x: auto; } /* ๐Ÿ“œ scrolls, never clips */
154
+ .terminal .prompt { opacity: 1; color: #8e7a69; margin-inline-end: 0.6em; font-size: 13.5px; } /* ๐Ÿ’ฒ */
155
+ .terminal .code { display: inline; overflow: visible; font-size: 13.5px; line-height: 1.4; white-space: pre; } /* โŒจ๏ธ Roboto Mono 13.5/1.4 */
156
+ .termPkg { color: #e7c8a5; } /* ๐Ÿ“ฆ */
157
+ @media (max-width: 767px) {
158
+ .terminal .panel { padding: 12px 14px 13px; } /* ๐Ÿ“ฑ */
159
+ .terminal .prompt, .terminal .code { font-size: 13px; }
160
+ }
@@ -0,0 +1,65 @@
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: AbKbd (G44)
28
+ * @file: ab-kbd/index.tsx
29
+ * @type: React Component (server-safe)
30
+ * @authors: Abraham Ukachi <abrahamukachi@gmail.com>
31
+ *
32
+ * Example usage:
33
+ * <AbKbd keys={['โŒ˜', 'K']} />
34
+ */
35
+
36
+ /*
37
+ * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
38
+ * MOTTO: We'll always do more ๐Ÿ˜œ!!!
39
+ * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
40
+ */
41
+
42
+ // โš›๏ธ React
43
+ import type { ReactElement, ReactNode } from 'react';
44
+ // ๐Ÿงต classes
45
+ import clsx from 'clsx';
46
+ // ๐ŸŽจ styles
47
+ import styles from './styles.module.css';
48
+
49
+ /** โš™๏ธ props */
50
+ export interface AbKbdProps {
51
+ keys?: string[]; // โŒจ๏ธ e.g. ['โŒ˜', 'K'] โ†’ one <kbd> per key, nested in an outer <kbd>
52
+ children?: ReactNode; // โœ๏ธ or plain content
53
+ className?: string; // ๐Ÿท๏ธ
54
+ }
55
+
56
+ /** โŒจ๏ธ AbKbd: a keyboard hint (`<kbd>`), no hooks, so it renders on the server too. */
57
+ const AbKbd = ({ keys, children, className }: AbKbdProps): ReactElement => (
58
+ <kbd className={clsx('AbKbd', styles.abKbd, className)} data-ab-part="kbd">
59
+ {keys ? keys.map((k, i) => <kbd key={`${k}-${i}`} className={styles.abKbdKey}>{k}</kbd>) : children}
60
+ </kbd>
61
+ );
62
+
63
+ // ๐Ÿ“ฆ exports
64
+ export default AbKbd;
65
+ export { AbKbd };
@@ -0,0 +1,55 @@
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: AbKbd - Styles (G44)
28
+ * @file: ab-kbd/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
+ /* โŒจ๏ธ outer hint */
40
+ .abKbd {
41
+ display: inline-flex; /* ๐Ÿ“ */
42
+ gap: 2px; /* โ†”๏ธ */
43
+ font: 500 12px/1 var(--ab-font-code, var(--ab-font-mono, ui-monospace, monospace)); /* ๐Ÿ”ค theme 0.3.4 code font */
44
+ color: var(--ab-color-on-surface-variant, inherit); /* ๐Ÿ–‹๏ธ */
45
+ }
46
+ /* ๐Ÿ”‘ one key */
47
+ .abKbdKey {
48
+ min-width: 20px; /* ๐Ÿ“ */
49
+ padding: 3px 5px; /* ๐Ÿ“ฆ */
50
+ border: 1px solid var(--ab-color-border, var(--ab-color-outline-variant, rgb(0 0 0 / 0.15))); /* ๐Ÿ–ผ๏ธ */
51
+ border-radius: 6px; /* ๐ŸŸข */
52
+ box-sizing: border-box; /* ๐Ÿ“ฆ */
53
+ text-align: center; /* โ†”๏ธ */
54
+ font: inherit; /* ๐Ÿ”ค */
55
+ }
@@ -8,12 +8,13 @@
8
8
  * @project: ab-nextjs-components
9
9
  * @name: AbKeyFeature - Client (port of lyd-key-feature)
10
10
  * @file: ab-key-feature/index.tsx
11
+ * @authors: Abraham Ukachi <abrahamukachi@gmail.com>
11
12
  */
12
13
 
13
14
  'use client';
14
15
 
15
16
  import type { ReactElement } from 'react';
16
- import Link from 'next/link';
17
+ import Link from '../ab-link'; // ๐Ÿ”— G42: injectable via AbLinkProvider (default next/link)
17
18
  import clsx from 'clsx';
18
19
  import styles from './styles.module.css';
19
20
 
@@ -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-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;
@@ -40,7 +40,7 @@
40
40
  'use client';
41
41
 
42
42
  import type { CSSProperties, MouseEvent, ReactElement } from 'react';
43
- import Link from 'next/link';
43
+ import Link from '../ab-link'; // ๐Ÿ”— G42: injectable via AbLinkProvider (default next/link)
44
44
  import clsx from 'clsx';
45
45
  import styles from './styles.module.css';
46
46
  import { AB_MOTION } from 'ab-nextjs-animations/motion'; // ๐ŸŽฌ transition class names (ab-nextjs-animations >= 0.2.4)
@@ -0,0 +1,112 @@
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: AbLink + AbLinkProvider (G42)
28
+ * @file: ab-link/index.tsx
29
+ * @type: Component (client) โ€” injectable link
30
+ * @authors: Abraham Ukachi <abrahamukachi@gmail.com>
31
+ *
32
+ * Example usage:
33
+ * 1+|> import { Link } from 'ab-nextjs-i18n/navigation'
34
+ * -|> <AbLinkProvider component={Link}><AbSidebar sections={โ€ฆ} /></AbLinkProvider>
35
+ */
36
+
37
+ /*
38
+ * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
39
+ * MOTTO: We'll always do more ๐Ÿ˜œ!!!
40
+ * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
41
+ */
42
+
43
+ 'use client';
44
+
45
+ // โš›๏ธ React
46
+ import { createContext, createElement, useContext, type ComponentProps, type ComponentType, type ReactElement, type ReactNode } from 'react';
47
+ // ๐ŸŒ pure, server-safe locale helper (0.1.13)
48
+ import { stripAbLocalePrefix } from './locale';
49
+ export { stripAbLocalePrefix };
50
+ // ๐Ÿ”— the default link (the ONLY next/link import in the package, see __tests__/ab-link.test.tsx)
51
+ import NextLink from 'next/link';
52
+
53
+ /** ๐Ÿ”— Any Link-like component: takes next/link's props (`href`, `prefetch`, `replace`, โ€ฆ). */
54
+ export type AbLinkComponent = ComponentType<ComponentProps<typeof NextLink>>;
55
+ /** ๐ŸŽ›๏ธ AbLink props = next/link props. */
56
+ export type AbLinkProps = ComponentProps<typeof NextLink>;
57
+
58
+ // ๐Ÿง  context: null = use next/link
59
+ const AbLinkContext = createContext<AbLinkComponent | null>(null);
60
+ // ๐ŸŒ 0.1.13 (Joseph #10): the app's locale codes, so active states can ignore the `/fr` prefix
61
+ const AbLocalesContext = createContext<readonly string[]>([]);
62
+
63
+
64
+ /** ๐Ÿช useAbLocales โ€” the locale codes given to the nearest {@link AbLinkProvider} (default none). */
65
+ export function useAbLocales(): readonly string[] {
66
+ return useContext(AbLocalesContext); // ๐ŸŒ
67
+ }
68
+
69
+ /** ๐Ÿงฉ 0.1.13 (Joseph #9): the STRUCTURAL shape a provided link needs: an `href` (any type, e.g. next-intl's
70
+ * `string | { pathname, query }`) and children. next/link, next-intl's Link, ab-nextjs-i18n's Link all fit. */
71
+ export interface AbLinkLikeProps {
72
+ href?: unknown; // ๐Ÿ”—
73
+ children?: ReactNode; // ๐Ÿง’
74
+ }
75
+
76
+ /** โš™๏ธ Props of {@link AbLinkProvider}: generic over the link's own props, so no cast is needed. */
77
+ export interface AbLinkProviderProps<P extends AbLinkLikeProps = ComponentProps<typeof NextLink>> {
78
+ /** ๐Ÿ”— the link every Ab component renders, e.g. ab-nextjs-i18n's locale-aware `Link`. */
79
+ component: ComponentType<P>;
80
+ /** ๐ŸŒ 0.1.13: locale codes (e.g. `routing.locales`), stripped from the pathname for active states. */
81
+ locales?: readonly string[];
82
+ children?: ReactNode;
83
+ }
84
+
85
+ /**
86
+ * ๐Ÿ”Œ AbLinkProvider โ€” swaps the link used by every Ab component (sidebar, navbar, menu, tab, app bar, cards, โ€ฆ).
87
+ * Wrap the app (or one layout) once:
88
+ * <AbLinkProvider component={Link}>โ€ฆ</AbLinkProvider> // Link from 'ab-nextjs-i18n/navigation'
89
+ */
90
+ export function AbLinkProvider<P extends AbLinkLikeProps>({ component, locales, children }: AbLinkProviderProps<P>): ReactElement {
91
+ // ๐Ÿง  Ab components always pass next/link-compatible props (href string, className, aria-*, onClick, โ€ฆ)
92
+ const link = <AbLinkContext.Provider value={component as unknown as AbLinkComponent}>{children}</AbLinkContext.Provider>;
93
+ return locales ? <AbLocalesContext.Provider value={locales}>{link}</AbLocalesContext.Provider> : link; // ๐ŸŒ
94
+ }
95
+
96
+ /** ๐Ÿช useAbLink โ€” the link component in effect (the provider's, or next/link). */
97
+ export function useAbLink(): AbLinkComponent {
98
+ return useContext(AbLinkContext) ?? (NextLink as AbLinkComponent); // ๐Ÿ”—
99
+ }
100
+
101
+ /**
102
+ * ๐Ÿ”— AbLink โ€” renders the provided link component (default next/link). Server twins can render it too:
103
+ * it's a client component, so it reads the provider from the client tree above it.
104
+ */
105
+ export function AbLink(props: AbLinkProps): ReactElement {
106
+ // ๐Ÿ”Œ the context value is a stable component reference (not created during render), so createElement
107
+ // keeps the react-hooks/static-components rule happy without changing behaviour
108
+ return createElement(useAbLink(), props); // โžก๏ธ same props, same ref (React 19 ref-as-prop)
109
+ }
110
+
111
+ // ๐Ÿ“ฆ exports
112
+ export default AbLink;
@@ -0,0 +1,53 @@
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: stripAbLocalePrefix (0.1.13)
28
+ * @file: ab-link/locale.ts
29
+ * @type: Server-safe helper
30
+ * @authors: Abraham Ukachi <abrahamukachi@gmail.com>
31
+ *
32
+ * Example usage:
33
+ * 1+|> stripAbLocalePrefix('/fr/docs', ['en', 'fr']) // โ†’ '/docs'
34
+ */
35
+
36
+ /*
37
+ * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
38
+ * MOTTO: We'll always do more ๐Ÿ˜œ!!!
39
+ * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
40
+ */
41
+
42
+ // ๐ŸŒ 0.1.13 (Joseph #10): no 'use client', so server twins can import it too
43
+
44
+ /**
45
+ * ๐ŸŒ stripAbLocalePrefix โ€” `/fr/docs/core` โ†’ `/docs/core` when `fr` is one of `locales`; `/fr` โ†’ `/`.
46
+ * Only exact locale segments are removed (`/fresh` stays), so it is safe for any path.
47
+ */
48
+ export function stripAbLocalePrefix(pathname: string, locales: readonly string[] = []): string {
49
+ const seg = /^\/([^/?#]+)/.exec(pathname)?.[1]; // ๐Ÿ” first segment
50
+ if (!seg || !locales.some((l) => l.toLowerCase() === seg.toLowerCase())) return pathname; // ๐Ÿ™… not a locale
51
+ const rest = pathname.slice(seg.length + 1); // โœ‚๏ธ
52
+ return rest === '' || rest[0] !== '/' ? `/${rest.replace(/^\/?/, '')}` : rest; // ๐Ÿงญ keep a leading slash
53
+ }
@@ -0,0 +1,107 @@
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: AbList + AbListItem (P13)
28
+ * @file: ab-list/index.tsx
29
+ * @type: Server-safe component
30
+ * @authors: Abraham Ukachi <abrahamukachi@gmail.com>
31
+ *
32
+ * Example usage:
33
+ * 1+|> <AbList><AbListItem href="/guides/install" media={<AbIcon name="rocket_launch" />} title="Install AbElements" meta="Getting started" trailing="chevron" /></AbList>
34
+ */
35
+
36
+ /*
37
+ * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
38
+ * MOTTO: We'll always do more ๐Ÿ˜œ!!!
39
+ * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
40
+ */
41
+
42
+
43
+ // โš›๏ธ React
44
+ import type { ReactElement, ReactNode } from 'react';
45
+ // ๐Ÿงต classes
46
+ import clsx from 'clsx';
47
+ // ๐Ÿ”— the app's link
48
+ import Link from '../ab-link';
49
+ // ๐Ÿ”ฃ the default chevron
50
+ import AbIcon from '../ab-icon';
51
+ // ๐ŸŽจ styles
52
+ import styles from './styles.module.css';
53
+
54
+ /** โš™๏ธ AbList props */
55
+ export interface AbListProps {
56
+ children: ReactNode; // ๐Ÿ“‹ AbListItem rows
57
+ label?: string; // โ™ฟ optional list name
58
+ className?: string; // ๐Ÿท๏ธ
59
+ }
60
+
61
+ /** โš™๏ธ AbListItem props */
62
+ export interface AbListItemProps {
63
+ title: ReactNode; // ๐Ÿ’ช 13.5/600, one line with ellipsis
64
+ meta?: ReactNode; // ๐Ÿงพ 12px faint subline (`<code>` inside = 11px mono muted)
65
+ media?: ReactNode; // ๐Ÿ–ผ๏ธ an icon: shown in a 30px tile (card2 bg, accent-text, 18px)
66
+ badge?: ReactNode; // ๐Ÿท๏ธ a leading 64ร—22 badge instead of media ("New", "Improved")
67
+ badgeTone?: 'primary' | 'tonal'; // ๐ŸŽจ primary = button colours ("New"), tonal = tint ("Improved", default)
68
+ trailing?: 'chevron' | ReactNode; // โžก๏ธ 'chevron' = 18px faint chevron_right
69
+ href?: string; // ๐Ÿ”— the whole row becomes one link
70
+ className?: string; // ๐Ÿท๏ธ
71
+ }
72
+
73
+ /**
74
+ * ๐Ÿ“‹ AbList (P13): one bordered card of rows (Guides, What's new). Radius 14, hairline border, card bg,
75
+ * soft shadow, rows divided by `--div`. Server-safe.
76
+ */
77
+ const AbList = ({ children, label, className }: AbListProps): ReactElement => (
78
+ <ul className={clsx('AbList', styles.abList, className)} aria-label={label} data-ab-part="list">{children}</ul>
79
+ );
80
+
81
+ /**
82
+ * ๐Ÿ“„ AbListItem: `media | badge` ยท title + meta ยท `trailing`. A row with `href` is a single link (hover
83
+ * `--hover`, focus-visible inset 2px accent ring). Rows are at least 44px tall (touch target).
84
+ */
85
+ const AbListItem = ({ title, meta, media, badge, badgeTone = 'tonal', trailing, href, className }: AbListItemProps): ReactElement => {
86
+ const body = (
87
+ <>
88
+ {badge != null ? <span className={styles.abListBadge} data-tone={badgeTone}>{badge}</span>
89
+ : media != null ? <span className={styles.abListMedia} aria-hidden="true">{media}</span> : null}
90
+ <span className={styles.abListText}>
91
+ <span className={styles.abListTitle}>{title}</span>
92
+ {meta != null && <span className={styles.abListMeta}>{meta}</span>}
93
+ </span>
94
+ {trailing === 'chevron' ? <AbIcon name="chevron_right" size={18} className={styles.abListChevron} />
95
+ : trailing != null ? <span className={styles.abListTrailing}>{trailing}</span> : null}
96
+ </>
97
+ );
98
+ return (
99
+ <li className={clsx('AbListItem', styles.abListItem, className)} data-ab-part="list-item">
100
+ {href ? <Link href={href} className={styles.abListRow} data-link="true">{body}</Link> : <div className={styles.abListRow}>{body}</div>}
101
+ </li>
102
+ );
103
+ };
104
+
105
+ // ๐Ÿ“ฆ exports
106
+ export default AbList;
107
+ export { AbList, AbListItem };
@@ -0,0 +1,82 @@
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: AbList styles
28
+ * @file: ab-list/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
+ /* ๐ŸŽš๏ธ knobs: mock .list / .li-ic / .badge, on the ab-nextjs-theme 0.3.5 home tokens */
41
+ .abList {
42
+ --ab-list-radius: 14px; /* โญ• */
43
+ --ab-list-background: var(--ab-color-card, #fff); /* ๐ŸŽจ --card */
44
+ --ab-list-border: var(--ab-color-border, rgb(92 64 48 / 0.13)); /* โž– --border */
45
+ --ab-list-divider: var(--ab-color-div, rgb(92 64 48 / 0.11)); /* โž– --div */
46
+ --ab-list-shadow: var(--ab-shadow-card, 0 1px 2px rgb(33 26 22 / 0.05)); /* ๐ŸŒ— --shadow */
47
+ --ab-list-hover: var(--ab-color-hover, rgb(166 124 82 / 0.08)); /* ๐Ÿ–ฑ๏ธ --hover */
48
+ --ab-list-ring: var(--ab-color-accent, #a67c52); /* โ™ฟ --accent */
49
+ --ab-list-text: var(--ab-color-text, #211a16); /* ๐Ÿ–‹๏ธ */
50
+ --ab-list-muted: var(--ab-color-muted, #6b5b50); /* ๐Ÿ–‹๏ธ */
51
+ --ab-list-faint: var(--ab-color-faint, #807062); /* ๐Ÿ–‹๏ธ --faint โ™ฟ AA fallback (James) */
52
+ --ab-list-tile: var(--ab-color-card2, #fbf3ec); /* ๐Ÿ–ผ๏ธ --card2 */
53
+ --ab-list-accent-text: var(--ab-color-accent-text, #8b6340); /* ๐Ÿ–‹๏ธ --accent-t */
54
+ --ab-list-tint: var(--ab-color-tint, #f4e7db); /* ๐ŸŽจ --tint */
55
+ --ab-list-btn: var(--ab-color-btn, #a67c52); /* ๐ŸŽจ --btn */
56
+ --ab-list-btn-text: var(--ab-color-btn-text, #fff); /* ๐ŸŽจ --btn-t */
57
+ margin: 0; padding: 0; list-style: none; /* ๐Ÿงน */
58
+ border: 1px solid var(--ab-list-border); border-radius: var(--ab-list-radius); /* โž– */
59
+ background: var(--ab-list-background); box-shadow: var(--ab-list-shadow); overflow: hidden; /* ๐ŸŽจ */
60
+ color: var(--ab-list-text); /* ๐Ÿ–‹๏ธ */
61
+ }
62
+ .abListItem { border-top: 1px solid var(--ab-list-divider); } /* โž– */
63
+ .abListItem:first-child { border-top: 0; } /* ๐Ÿงน */
64
+ .abListRow {
65
+ display: flex; align-items: center; gap: 12px; /* ๐Ÿ“ */
66
+ min-height: 44px; box-sizing: border-box; padding: 11px 14px; /* ๐Ÿ“ฆ touch target */
67
+ color: inherit; text-decoration: none; /* ๐Ÿ”— */
68
+ }
69
+ a.abListRow:hover { background: var(--ab-list-hover); } /* ๐Ÿ–ฑ๏ธ */
70
+ a.abListRow:focus-visible { outline: 2px solid var(--ab-list-ring); outline-offset: -2px; } /* โ™ฟ inset ring */
71
+ .abListItem:first-child a.abListRow:focus-visible { border-radius: calc(var(--ab-list-radius) - 1px) calc(var(--ab-list-radius) - 1px) 0 0; } /* โญ• */
72
+ .abListItem:last-child a.abListRow:focus-visible { border-radius: 0 0 calc(var(--ab-list-radius) - 1px) calc(var(--ab-list-radius) - 1px); } /* โญ• */
73
+ .abListMedia { flex: none; display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; background: var(--ab-list-tile); color: var(--ab-list-accent-text); } /* ๐Ÿ–ผ๏ธ */
74
+ .abListMedia > *, .abListMedia svg { width: 18px; height: 18px; } /* ๐Ÿ”ฃ 18px icon (an AbIcon, or a raw <svg> at any depth) */
75
+ .abListBadge { flex: none; display: flex; align-items: center; justify-content: center; width: 64px; height: 22px; border-radius: 6px; font-size: 11px; font-weight: 700; background: var(--ab-list-tint); color: var(--ab-list-accent-text); } /* ๐Ÿท๏ธ Improved */
76
+ .abListBadge[data-tone='primary'] { background: var(--ab-list-btn); color: var(--ab-list-btn-text); } /* ๐Ÿท๏ธ New */
77
+ .abListText { flex: 1; min-width: 0; } /* ๐Ÿ“ */
78
+ .abListTitle { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* ๐Ÿ’ช */
79
+ .abListMeta { display: block; margin-top: 2px; font-size: 12px; line-height: 1.42; color: var(--ab-list-faint); } /* ๐Ÿงพ 1.42 (~17px): rows are 59px (first) / 60px (with the divider), like the mock */
80
+ .abListMeta code { font-family: var(--ab-font-code, var(--ab-font-mono, ui-monospace, monospace)); font-size: 11px; color: var(--ab-list-muted); } /* ๐Ÿงพ mono pkg */
81
+ .abListChevron { flex: none; width: 18px; height: 18px; color: var(--ab-list-faint); } /* โžก๏ธ */
82
+ .abListTrailing { flex: none; color: var(--ab-list-faint); } /* โžก๏ธ */