@sc4rfurryx/proteusjs 1.1.0 → 2.0.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/README.md +684 -899
- package/dist/.tsbuildinfo +1 -1
- package/dist/modules/a11y-audit.d.ts +2 -10
- package/dist/modules/a11y-audit.esm.js +31 -476
- package/dist/modules/a11y-audit.esm.js.map +1 -1
- package/dist/modules/a11y-primitives.d.ts +9 -42
- package/dist/modules/a11y-primitives.esm.js +70 -401
- package/dist/modules/a11y-primitives.esm.js.map +1 -1
- package/dist/modules/anchor.d.ts +2 -1
- package/dist/modules/anchor.esm.js +3 -2
- package/dist/modules/anchor.esm.js.map +1 -1
- package/dist/modules/container.d.ts +1 -1
- package/dist/modules/container.esm.js +34 -34
- package/dist/modules/container.esm.js.map +1 -1
- package/dist/modules/perf.d.ts +1 -1
- package/dist/modules/perf.esm.js +2 -2
- package/dist/modules/popover.d.ts +1 -1
- package/dist/modules/popover.esm.js +2 -2
- package/dist/modules/scroll.d.ts +1 -1
- package/dist/modules/scroll.esm.js +14 -14
- package/dist/modules/scroll.esm.js.map +1 -1
- package/dist/modules/transitions.d.ts +1 -1
- package/dist/modules/transitions.esm.js +12 -12
- package/dist/modules/transitions.esm.js.map +1 -1
- package/dist/modules/typography.d.ts +1 -1
- package/dist/modules/typography.esm.js +2 -2
- package/dist/proteus.cjs.js +163 -941
- package/dist/proteus.cjs.js.map +1 -1
- package/dist/proteus.d.ts +23 -68
- package/dist/proteus.esm.js +163 -941
- package/dist/proteus.esm.js.map +1 -1
- package/dist/proteus.esm.min.js +2 -2
- package/dist/proteus.esm.min.js.map +1 -1
- package/dist/proteus.js +163 -941
- package/dist/proteus.js.map +1 -1
- package/dist/proteus.min.js +2 -2
- package/dist/proteus.min.js.map +1 -1
- package/package.json +44 -7
- package/src/adapters/react.ts +607 -264
- package/src/adapters/svelte.ts +321 -321
- package/src/adapters/vue.ts +268 -268
- package/src/core/ProteusJS.ts +6 -6
- package/src/index.ts +3 -3
- package/src/modules/a11y-audit/index.ts +84 -608
- package/src/modules/a11y-primitives/index.ts +152 -554
- package/src/modules/anchor/index.ts +259 -257
- package/src/modules/container/index.ts +230 -230
- package/src/modules/perf/index.ts +291 -291
- package/src/modules/popover/index.ts +238 -238
- package/src/modules/scroll/index.ts +251 -251
- package/src/modules/transitions/index.ts +145 -145
- package/src/modules/typography/index.ts +239 -239
- package/src/utils/version.ts +1 -1
- package/dist/adapters/react.d.ts +0 -139
- package/dist/adapters/react.esm.js +0 -848
- package/dist/adapters/react.esm.js.map +0 -1
- package/dist/adapters/svelte.d.ts +0 -181
- package/dist/adapters/svelte.esm.js +0 -908
- package/dist/adapters/svelte.esm.js.map +0 -1
- package/dist/adapters/vue.d.ts +0 -205
- package/dist/adapters/vue.esm.js +0 -872
- package/dist/adapters/vue.esm.js.map +0 -1
package/dist/proteus.d.ts
CHANGED
|
@@ -3001,7 +3001,7 @@ declare class ProteusJS {
|
|
|
3001
3001
|
* @sc4rfurryx/proteusjs/transitions
|
|
3002
3002
|
* View Transitions API wrapper with safe fallbacks
|
|
3003
3003
|
*
|
|
3004
|
-
* @version
|
|
3004
|
+
* @version 2.0.0
|
|
3005
3005
|
* @author sc4rfurry
|
|
3006
3006
|
* @license MIT
|
|
3007
3007
|
*/
|
|
@@ -3043,7 +3043,7 @@ declare namespace index$8 {
|
|
|
3043
3043
|
* @sc4rfurryx/proteusjs/scroll
|
|
3044
3044
|
* Scroll-driven animations with CSS Scroll-Linked Animations
|
|
3045
3045
|
*
|
|
3046
|
-
* @version
|
|
3046
|
+
* @version 2.0.0
|
|
3047
3047
|
* @author sc4rfurry
|
|
3048
3048
|
* @license MIT
|
|
3049
3049
|
*/
|
|
@@ -3093,7 +3093,7 @@ declare namespace index$7 {
|
|
|
3093
3093
|
* @sc4rfurryx/proteusjs/anchor
|
|
3094
3094
|
* CSS Anchor Positioning utilities with robust JS fallback
|
|
3095
3095
|
*
|
|
3096
|
-
* @version
|
|
3096
|
+
* @version 2.0.0
|
|
3097
3097
|
* @author sc4rfurry
|
|
3098
3098
|
* @license MIT
|
|
3099
3099
|
*/
|
|
@@ -3105,6 +3105,7 @@ interface TetherOptions {
|
|
|
3105
3105
|
strategy?: 'absolute' | 'fixed';
|
|
3106
3106
|
}
|
|
3107
3107
|
interface TetherController {
|
|
3108
|
+
update(): void;
|
|
3108
3109
|
destroy(): void;
|
|
3109
3110
|
}
|
|
3110
3111
|
/**
|
|
@@ -3128,7 +3129,7 @@ declare namespace index$6 {
|
|
|
3128
3129
|
* @sc4rfurryx/proteusjs/popover
|
|
3129
3130
|
* HTML Popover API wrapper with robust focus/inert handling
|
|
3130
3131
|
*
|
|
3131
|
-
* @version
|
|
3132
|
+
* @version 2.0.0
|
|
3132
3133
|
* @author sc4rfurry
|
|
3133
3134
|
* @license MIT
|
|
3134
3135
|
*/
|
|
@@ -3167,7 +3168,7 @@ declare namespace index$5 {
|
|
|
3167
3168
|
* @sc4rfurryx/proteusjs/container
|
|
3168
3169
|
* Container/Style Query helpers with visualization devtools
|
|
3169
3170
|
*
|
|
3170
|
-
* @version
|
|
3171
|
+
* @version 2.0.0
|
|
3171
3172
|
* @author sc4rfurry
|
|
3172
3173
|
* @license MIT
|
|
3173
3174
|
*/
|
|
@@ -3238,7 +3239,7 @@ declare namespace index$4 {
|
|
|
3238
3239
|
* @sc4rfurryx/proteusjs/typography
|
|
3239
3240
|
* Fluid typography with CSS-first approach
|
|
3240
3241
|
*
|
|
3241
|
-
* @version
|
|
3242
|
+
* @version 2.0.0
|
|
3242
3243
|
* @author sc4rfurry
|
|
3243
3244
|
* @license MIT
|
|
3244
3245
|
*/
|
|
@@ -3322,36 +3323,28 @@ declare namespace index$3 {
|
|
|
3322
3323
|
|
|
3323
3324
|
/**
|
|
3324
3325
|
* @sc4rfurryx/proteusjs/a11y-audit
|
|
3325
|
-
*
|
|
3326
|
+
* Lightweight accessibility audits for development
|
|
3326
3327
|
*
|
|
3327
|
-
* @version
|
|
3328
|
+
* @version 2.0.0
|
|
3328
3329
|
* @author sc4rfurry
|
|
3329
3330
|
* @license MIT
|
|
3330
3331
|
*/
|
|
3331
3332
|
interface AuditOptions {
|
|
3332
3333
|
rules?: string[];
|
|
3333
3334
|
format?: 'console' | 'json';
|
|
3334
|
-
openInBrowser?: boolean;
|
|
3335
3335
|
}
|
|
3336
3336
|
interface AuditViolation {
|
|
3337
3337
|
id: string;
|
|
3338
3338
|
impact: 'minor' | 'moderate' | 'serious' | 'critical';
|
|
3339
3339
|
nodes: number;
|
|
3340
3340
|
help: string;
|
|
3341
|
-
fix: string;
|
|
3342
|
-
elements?: Element[];
|
|
3343
3341
|
}
|
|
3344
3342
|
interface AuditReport {
|
|
3345
3343
|
violations: AuditViolation[];
|
|
3346
3344
|
passes: number;
|
|
3347
|
-
incomplete: number;
|
|
3348
3345
|
timestamp: number;
|
|
3349
3346
|
url: string;
|
|
3350
3347
|
}
|
|
3351
|
-
/**
|
|
3352
|
-
* Run accessibility audits with actionable output
|
|
3353
|
-
* DEV-ONLY: This module should be tree-shaken in production
|
|
3354
|
-
*/
|
|
3355
3348
|
declare function audit(target?: Document | Element, options?: AuditOptions): Promise<AuditReport>;
|
|
3356
3349
|
declare const _default$2: {
|
|
3357
3350
|
audit: typeof audit;
|
|
@@ -3368,9 +3361,9 @@ declare namespace index$2 {
|
|
|
3368
3361
|
|
|
3369
3362
|
/**
|
|
3370
3363
|
* @sc4rfurryx/proteusjs/a11y-primitives
|
|
3371
|
-
*
|
|
3364
|
+
* Lightweight accessibility patterns
|
|
3372
3365
|
*
|
|
3373
|
-
* @version
|
|
3366
|
+
* @version 2.0.0
|
|
3374
3367
|
* @author sc4rfurry
|
|
3375
3368
|
* @license MIT
|
|
3376
3369
|
*/
|
|
@@ -3383,79 +3376,41 @@ interface DialogOptions {
|
|
|
3383
3376
|
}
|
|
3384
3377
|
interface TooltipOptions {
|
|
3385
3378
|
delay?: number;
|
|
3386
|
-
|
|
3387
|
-
interface ComboboxOptions {
|
|
3388
|
-
multiselect?: boolean;
|
|
3389
|
-
filtering?: (query: string) => Promise<unknown[]> | unknown[];
|
|
3390
|
-
}
|
|
3391
|
-
interface ListboxOptions {
|
|
3392
|
-
multiselect?: boolean;
|
|
3379
|
+
placement?: 'top' | 'bottom' | 'left' | 'right';
|
|
3393
3380
|
}
|
|
3394
3381
|
interface FocusTrapController {
|
|
3395
3382
|
activate(): void;
|
|
3396
3383
|
deactivate(): void;
|
|
3397
3384
|
}
|
|
3398
|
-
/**
|
|
3399
|
-
* Dialog primitive with proper ARIA and focus management
|
|
3400
|
-
*/
|
|
3401
3385
|
declare function dialog(root: Element | string, opts?: DialogOptions): Controller;
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
declare function tooltip(trigger: Element | string, panel: Element | string, opts?: TooltipOptions): Controller;
|
|
3406
|
-
/**
|
|
3407
|
-
* Listbox primitive with keyboard navigation
|
|
3408
|
-
*/
|
|
3409
|
-
declare function listbox(root: Element | string, opts?: ListboxOptions): Controller;
|
|
3410
|
-
/**
|
|
3411
|
-
* Combobox primitive with filtering and multiselect
|
|
3412
|
-
*/
|
|
3413
|
-
declare function combobox(root: Element | string, opts?: ComboboxOptions): Controller;
|
|
3414
|
-
/**
|
|
3415
|
-
* Tabs primitive with keyboard navigation
|
|
3416
|
-
*/
|
|
3417
|
-
declare function tabs(root: Element | string): Controller;
|
|
3418
|
-
/**
|
|
3419
|
-
* Menu primitive with keyboard navigation
|
|
3420
|
-
*/
|
|
3421
|
-
declare function menu(root: Element | string): Controller;
|
|
3422
|
-
/**
|
|
3423
|
-
* Focus trap utility
|
|
3424
|
-
*/
|
|
3425
|
-
declare function focusTrap(root: Element | string): FocusTrapController;
|
|
3386
|
+
declare function tooltip(trigger: Element, content: HTMLElement, opts?: TooltipOptions): Controller;
|
|
3387
|
+
declare function focusTrap(container: Element): FocusTrapController;
|
|
3388
|
+
declare function menu(container: Element): Controller;
|
|
3426
3389
|
declare const _default$1: {
|
|
3427
3390
|
dialog: typeof dialog;
|
|
3428
3391
|
tooltip: typeof tooltip;
|
|
3429
|
-
combobox: typeof combobox;
|
|
3430
|
-
listbox: typeof listbox;
|
|
3431
|
-
tabs: typeof tabs;
|
|
3432
|
-
menu: typeof menu;
|
|
3433
3392
|
focusTrap: typeof focusTrap;
|
|
3393
|
+
menu: typeof menu;
|
|
3434
3394
|
};
|
|
3435
3395
|
|
|
3436
|
-
type index$1_ComboboxOptions = ComboboxOptions;
|
|
3437
3396
|
type index$1_Controller = Controller;
|
|
3438
3397
|
type index$1_DialogOptions = DialogOptions;
|
|
3439
3398
|
type index$1_FocusTrapController = FocusTrapController;
|
|
3440
|
-
type index$1_ListboxOptions = ListboxOptions;
|
|
3441
3399
|
type index$1_TooltipOptions = TooltipOptions;
|
|
3442
|
-
declare const index$1_combobox: typeof combobox;
|
|
3443
3400
|
declare const index$1_dialog: typeof dialog;
|
|
3444
3401
|
declare const index$1_focusTrap: typeof focusTrap;
|
|
3445
|
-
declare const index$1_listbox: typeof listbox;
|
|
3446
3402
|
declare const index$1_menu: typeof menu;
|
|
3447
|
-
declare const index$1_tabs: typeof tabs;
|
|
3448
3403
|
declare const index$1_tooltip: typeof tooltip;
|
|
3449
3404
|
declare namespace index$1 {
|
|
3450
|
-
export {
|
|
3451
|
-
export type { index$
|
|
3405
|
+
export { _default$1 as default, index$1_dialog as dialog, index$1_focusTrap as focusTrap, index$1_menu as menu, index$1_tooltip as tooltip };
|
|
3406
|
+
export type { index$1_Controller as Controller, index$1_DialogOptions as DialogOptions, index$1_FocusTrapController as FocusTrapController, index$1_TooltipOptions as TooltipOptions };
|
|
3452
3407
|
}
|
|
3453
3408
|
|
|
3454
3409
|
/**
|
|
3455
3410
|
* @sc4rfurryx/proteusjs/perf
|
|
3456
3411
|
* Performance guardrails and CWV-friendly patterns
|
|
3457
3412
|
*
|
|
3458
|
-
* @version
|
|
3413
|
+
* @version 2.0.0
|
|
3459
3414
|
* @author sc4rfurry
|
|
3460
3415
|
* @license MIT
|
|
3461
3416
|
*/
|
|
@@ -3549,19 +3504,19 @@ declare namespace index {
|
|
|
3549
3504
|
/**
|
|
3550
3505
|
* Version utilities for ProteusJS
|
|
3551
3506
|
*/
|
|
3552
|
-
declare const version = "
|
|
3507
|
+
declare const version = "2.0.0";
|
|
3553
3508
|
|
|
3554
3509
|
/**
|
|
3555
3510
|
* ProteusJS - Native-first Web Development Primitives
|
|
3556
3511
|
* Shape-shifting responsive design that adapts like the sea god himself
|
|
3557
3512
|
*
|
|
3558
|
-
* @version
|
|
3513
|
+
* @version 2.0.0
|
|
3559
3514
|
* @author sc4rfurry
|
|
3560
3515
|
* @license MIT
|
|
3561
3516
|
*/
|
|
3562
3517
|
|
|
3563
|
-
declare const VERSION = "
|
|
3518
|
+
declare const VERSION = "2.0.0";
|
|
3564
3519
|
declare const LIBRARY_NAME = "ProteusJS";
|
|
3565
3520
|
|
|
3566
3521
|
export { LIBRARY_NAME, ProteusJS, VERSION, index$2 as a11yAudit, index$1 as a11yPrimitives, index$6 as anchor, index$4 as container, ProteusJS as default, isSupported$1 as isSupported, index as perf, index$5 as popover, index$7 as scroll, index$8 as transitions, index$3 as typography, version };
|
|
3567
|
-
export type { AccessibilityConfig$1 as AccessibilityConfig, AnimationConfig, AuditOptions, AuditReport, AuditViolation, BreakpointConfig$1 as BreakpointConfig,
|
|
3522
|
+
export type { AccessibilityConfig$1 as AccessibilityConfig, AnimationConfig, AuditOptions, AuditReport, AuditViolation, BreakpointConfig$1 as BreakpointConfig, ContainerConfig, ContainerOptions, ContentVisibilityOptions, Controller, DialogOptions, FluidTypeOptions, FluidTypeResult, FocusTrapController, LayoutConfig, NavigateOptions, PerformanceConfig, PopoverController, PopoverOptions, ProteusConfig, ProteusPlugin, ScrollAnimateOptions, SpeculationOptions, TetherController, TetherOptions, TooltipOptions, TransitionOptions, TypographyConfig };
|