ab-nextjs-components 0.5.0 โ 0.7.0
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 +20 -1
- package/README.md +15 -2
- package/ab-code-block/focus.tsx +63 -0
- package/ab-code-block/index.tsx +54 -27
- package/ab-code-block/styles.module.css +3 -2
- package/ab-content-tabs/index.tsx +24 -2
- package/ab-demo-box/index.tsx +45 -7
- package/ab-demo-box/styles.module.css +19 -7
- package/ab-demo-code/index.tsx +38 -34
- package/ab-demo-code/styles.module.css +3 -41
- package/ab-drawer/index.tsx +9 -1
- package/ab-icon/builtin.ts +4 -0
- package/ab-preview-code/index.tsx +115 -0
- package/ab-preview-code/stage.tsx +153 -0
- package/ab-preview-code/styles.module.css +43 -0
- package/ab-props-table/index.tsx +187 -0
- package/ab-props-table/styles.module.css +96 -0
- package/index.ts +17 -4
- package/package.json +7 -3
- package/types/index.d.ts +5 -0
package/index.ts
CHANGED
|
@@ -80,8 +80,9 @@ const supportedComponents: Array<ComponentCatalogEntry> = [
|
|
|
80
80
|
{ name: 'AbText', file: 'ab-text/index.tsx', kind: 'client', status: 'Done' },
|
|
81
81
|
{ name: 'AbProduct', file: 'ab-product/index.tsx', kind: 'client', status: 'Done' },
|
|
82
82
|
{ name: 'AbProductItem', file: 'ab-product-item/index.tsx', kind: 'client', status: 'Done' },
|
|
83
|
-
{ name: 'AbDemoBox', file: 'ab-demo-box/index.tsx', kind: '
|
|
84
|
-
{ name: 'AbDemoCode', file: 'ab-demo-code/index.tsx', kind: '
|
|
83
|
+
{ name: 'AbDemoBox', file: 'ab-demo-box/index.tsx', kind: 'server', status: 'Done' },
|
|
84
|
+
{ name: 'AbDemoCode', file: 'ab-demo-code/index.tsx', kind: 'server', status: 'Done' },
|
|
85
|
+
{ name: 'AbPreviewCode', file: 'ab-preview-code/index.tsx', kind: 'server', status: 'Done' }, // ๐งช๐ป 0.6.0 (G16): the docs Preview / Code pair
|
|
85
86
|
|
|
86
87
|
// SERVER
|
|
87
88
|
{ name: 'AbIcon', file: 'server/ab-icon/index.tsx', kind: 'server', status: 'Done' },
|
|
@@ -147,6 +148,7 @@ const supportedComponents: Array<ComponentCatalogEntry> = [
|
|
|
147
148
|
{ name: 'AbContentTab', file: 'ab-content-tabs/index.tsx', kind: 'client', status: 'Done' }, // ๐๏ธ 0.3.4 (0.2.24 MDX docs): AbContentTabs + AbContentTab (MDX <Tabs>/<Tab>)
|
|
148
149
|
{ name: 'AbCodeBlock', file: 'ab-code-block/index.tsx', kind: 'server', status: 'Done' }, // ๐ป 0.3.4 (0.2.24 MDX docs): AbCodeBlock (+ its copy island)
|
|
149
150
|
{ name: 'AbCallout', file: 'ab-callout/index.tsx', kind: 'server', status: 'Done' }, // ๐ก 0.3.4 (0.2.24 MDX docs): AbCallout
|
|
151
|
+
{ name: 'AbPropsTable', file: 'ab-props-table/index.tsx', kind: 'server', status: 'Done' }, // ๐ unreleased: build-time docs prop data
|
|
150
152
|
{ name: 'AbList', file: 'ab-list/index.tsx', kind: 'server', status: 'Done' },
|
|
151
153
|
]
|
|
152
154
|
|
|
@@ -200,7 +202,7 @@ export type { AbTocItem, AbTocProps } from './ab-toc/index.tsx'
|
|
|
200
202
|
export { default as AbErrorHero } from './ab-error-hero/index.tsx'
|
|
201
203
|
export type { AbErrorHeroProps } from './ab-error-hero/index.tsx'
|
|
202
204
|
// ๐๏ธ 0.1.14 (G53): AbDrawer + useAbDrawer (also at `ab-nextjs-components/ab-drawer`)
|
|
203
|
-
export { default as AbDrawer, useAbDrawer, getAbDrawerHost, AB_DRAWER_DURATION, AB_DRAWER_RETURN_FOCUS } from './ab-drawer/index.tsx'
|
|
205
|
+
export { default as AbDrawer, useAbDrawer, getAbDrawerHost, AB_DRAWER_DURATION, AB_DRAWER_RETURN_FOCUS, AB_PREVIEW_SCOPE_SELECTOR } from './ab-drawer/index.tsx'
|
|
204
206
|
// ๐ค 0.2.0 drawers v2: edge swipes + the swipe / snap rules
|
|
205
207
|
export { useAbEdgeSwipe, AB_ASIDE_DRAWER_MAX_WIDTH, AB_SWIPE, resolveAbSheetRelease, resolveAbSideRelease } from './ab-drawer/index.tsx'
|
|
206
208
|
export type { AbDrawerTier, AbSheetSnap, UseAbEdgeSwipeOptions } from './ab-drawer/index.tsx'
|
|
@@ -250,7 +252,14 @@ export { default as AbText } from './ab-text/index.tsx'
|
|
|
250
252
|
export { default as AbProduct } from './ab-product/index.tsx'
|
|
251
253
|
export { default as AbProductItem } from './ab-product-item/index.tsx'
|
|
252
254
|
export { default as AbDemoBox } from './ab-demo-box/index.tsx'
|
|
255
|
+
export type { AbDemoBoxProps, AbDemoBoxScheme } from './ab-demo-box/index.tsx'
|
|
253
256
|
export { default as AbDemoCode } from './ab-demo-code/index.tsx'
|
|
257
|
+
export type { AbDemoCodeProps } from './ab-demo-code/index.tsx'
|
|
258
|
+
// ๐งช๐ป 0.6.0 (G16): the docs Preview / Code pair (AbContentTabs + AbDemoBox + AbDemoCode)
|
|
259
|
+
export { default as AbPreviewCode } from './ab-preview-code/index.tsx'
|
|
260
|
+
export type { AbPreviewCodeProps, AbPreviewCodeLabels } from './ab-preview-code/index.tsx'
|
|
261
|
+
export { default as AbPreviewStage } from './ab-preview-code/stage.tsx' // ๐งฐ 0.6.0: the preview toolbar island
|
|
262
|
+
export type { AbPreviewStageProps, AbPreviewStageLabels } from './ab-preview-code/stage.tsx'
|
|
254
263
|
export { default as AbPolygon } from './server/ab-polygon/index.tsx'
|
|
255
264
|
// ๐ก 0.3.4 (0.2.24 MDX docs): AbCallout
|
|
256
265
|
export { default as AbCallout, AB_CALLOUT_ICONS } from './ab-callout/index.tsx'
|
|
@@ -261,8 +270,12 @@ export { default as AbCodeBlockCopy } from './ab-code-block/copy.tsx'
|
|
|
261
270
|
export type { AbCodeBlockCopyProps } from './ab-code-block/copy.tsx'
|
|
262
271
|
export type { AbCodeBlockProps } from './ab-code-block/index.tsx'
|
|
263
272
|
// ๐๏ธ 0.3.4 (0.2.24 MDX docs): AbContentTabs + AbContentTab (MDX <Tabs>/<Tab>)
|
|
264
|
-
export { default as AbContentTabs, AbContentTab } from './ab-content-tabs/index.tsx'
|
|
273
|
+
export { default as AbContentTabs, AbContentTab, AB_FOCUSABLE_SELECTOR } from './ab-content-tabs/index.tsx' // โจ๏ธ 0.6.0: the panel tab-stop check
|
|
265
274
|
export type { AbContentTabsProps, AbContentTabProps } from './ab-content-tabs/index.tsx'
|
|
266
275
|
// โฎ๏ธโญ๏ธ 0.3.4 (0.2.24 MDX docs): AbDocPager
|
|
267
276
|
export { default as AbDocPager } from './ab-doc-pager/index.tsx'
|
|
268
277
|
export type { AbDocPagerProps, AbDocPagerLink } from './ab-doc-pager/index.tsx'
|
|
278
|
+
|
|
279
|
+
// ๐ AbPropsTable: a server-safe docs prop table built from structured extraction data.
|
|
280
|
+
export { default as AbPropsTable, AB_PROPS_TABLE_DEFAULT_LABELS } from './ab-props-table/index.tsx'
|
|
281
|
+
export type { AbPropsTableDefault, AbPropsTableDefaultNone, AbPropsTableDefaultUnknown, AbPropsTableDefaultValue, AbPropsTableLabels, AbPropsTableColumn, AbPropsTableProps, AbPropsTableRow } from './ab-props-table/index.tsx'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ab-nextjs-components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
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",
|
|
@@ -106,6 +106,7 @@
|
|
|
106
106
|
"ab-product-item",
|
|
107
107
|
"ab-demo-box",
|
|
108
108
|
"ab-demo-code",
|
|
109
|
+
"ab-preview-code",
|
|
109
110
|
"ab-splash",
|
|
110
111
|
"ab-linear-progress",
|
|
111
112
|
"ab-carousel",
|
|
@@ -145,7 +146,8 @@
|
|
|
145
146
|
"ab-callout",
|
|
146
147
|
"ab-code-block",
|
|
147
148
|
"ab-content-tabs",
|
|
148
|
-
"ab-doc-pager"
|
|
149
|
+
"ab-doc-pager",
|
|
150
|
+
"ab-props-table"
|
|
149
151
|
],
|
|
150
152
|
"exports": {
|
|
151
153
|
".": {
|
|
@@ -227,6 +229,7 @@
|
|
|
227
229
|
"./ab-product-item": "./ab-product-item/index.tsx",
|
|
228
230
|
"./ab-demo-box": "./ab-demo-box/index.tsx",
|
|
229
231
|
"./ab-demo-code": "./ab-demo-code/index.tsx",
|
|
232
|
+
"./ab-preview-code": "./ab-preview-code/index.tsx",
|
|
230
233
|
"./server/ab-brand": "./server/ab-brand/index.tsx",
|
|
231
234
|
"./server/ab-name": "./server/ab-name/index.tsx",
|
|
232
235
|
"./server/ab-navbar": "./server/ab-navbar/index.tsx",
|
|
@@ -250,7 +253,8 @@
|
|
|
250
253
|
"./ab-code-block": "./ab-code-block/index.tsx",
|
|
251
254
|
"./ab-code-block/copy": "./ab-code-block/copy.tsx",
|
|
252
255
|
"./ab-content-tabs": "./ab-content-tabs/index.tsx",
|
|
253
|
-
"./ab-doc-pager": "./ab-doc-pager/index.tsx"
|
|
256
|
+
"./ab-doc-pager": "./ab-doc-pager/index.tsx",
|
|
257
|
+
"./ab-props-table": "./ab-props-table/index.tsx"
|
|
254
258
|
},
|
|
255
259
|
"peerDependenciesMeta": {
|
|
256
260
|
"ab-nextjs-theme": {
|
package/types/index.d.ts
CHANGED
|
@@ -138,6 +138,7 @@ export { default as AbProduct } from '../ab-product/index.tsx';
|
|
|
138
138
|
export { default as AbProductItem } from '../ab-product-item/index.tsx';
|
|
139
139
|
export { default as AbDemoBox } from '../ab-demo-box/index.tsx';
|
|
140
140
|
export { default as AbDemoCode } from '../ab-demo-code/index.tsx';
|
|
141
|
+
export { default as AbPreviewCode } from '../ab-preview-code/index.tsx';
|
|
141
142
|
export { default as AbPolygon } from '../server/ab-polygon/index.tsx';
|
|
142
143
|
// ๐ก 0.3.4 (0.2.24 MDX docs): AbCallout
|
|
143
144
|
export { default as AbCallout, AB_CALLOUT_ICONS } from '../ab-callout/index.tsx';
|
|
@@ -153,3 +154,7 @@ export type { AbContentTabsProps, AbContentTabProps } from '../ab-content-tabs/i
|
|
|
153
154
|
// โฎ๏ธโญ๏ธ 0.3.4 (0.2.24 MDX docs): AbDocPager
|
|
154
155
|
export { default as AbDocPager } from '../ab-doc-pager/index.tsx';
|
|
155
156
|
export type { AbDocPagerProps, AbDocPagerLink } from '../ab-doc-pager/index.tsx';
|
|
157
|
+
|
|
158
|
+
// ๐ AbPropsTable: available from both the root and `ab-nextjs-components/ab-props-table`.
|
|
159
|
+
export { default as AbPropsTable, AB_PROPS_TABLE_DEFAULT_LABELS } from '../ab-props-table/index.tsx';
|
|
160
|
+
export type { AbPropsTableDefault, AbPropsTableDefaultNone, AbPropsTableDefaultUnknown, AbPropsTableDefaultValue, AbPropsTableLabels, AbPropsTableColumn, AbPropsTableProps, AbPropsTableRow } from '../ab-props-table/index.tsx';
|