@sc4rfurryx/proteusjs 1.1.0 → 1.1.1
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 +5 -5
- package/dist/.tsbuildinfo +1 -1
- package/dist/adapters/react.d.ts +1 -0
- package/dist/adapters/react.esm.js +2 -1
- package/dist/adapters/react.esm.js.map +1 -1
- package/dist/adapters/svelte.esm.js +2 -1
- package/dist/adapters/svelte.esm.js.map +1 -1
- package/dist/adapters/vue.esm.js +2 -1
- package/dist/adapters/vue.esm.js.map +1 -1
- package/dist/modules/a11y-audit.d.ts +1 -9
- package/dist/modules/a11y-audit.esm.js +30 -475
- package/dist/modules/a11y-audit.esm.js.map +1 -1
- package/dist/modules/a11y-primitives.d.ts +8 -41
- package/dist/modules/a11y-primitives.esm.js +69 -400
- package/dist/modules/a11y-primitives.esm.js.map +1 -1
- package/dist/modules/anchor.d.ts +1 -0
- package/dist/modules/anchor.esm.js +2 -1
- package/dist/modules/anchor.esm.js.map +1 -1
- package/dist/modules/container.esm.js +1 -1
- package/dist/modules/perf.esm.js +1 -1
- package/dist/modules/popover.esm.js +1 -1
- package/dist/modules/scroll.esm.js +1 -1
- package/dist/modules/transitions.esm.js +1 -1
- package/dist/modules/typography.esm.js +1 -1
- package/dist/proteus.cjs.js +97 -875
- package/dist/proteus.cjs.js.map +1 -1
- package/dist/proteus.d.ts +11 -56
- package/dist/proteus.esm.js +97 -875
- 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 +97 -875
- 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 +9 -4
- package/src/index.ts +1 -1
- package/src/modules/a11y-audit/index.ts +29 -553
- package/src/modules/a11y-primitives/index.ts +73 -475
- package/src/modules/anchor/index.ts +2 -0
package/dist/proteus.d.ts
CHANGED
@@ -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
|
/**
|
@@ -3322,7 +3323,7 @@ declare namespace index$3 {
|
|
3322
3323
|
|
3323
3324
|
/**
|
3324
3325
|
* @sc4rfurryx/proteusjs/a11y-audit
|
3325
|
-
*
|
3326
|
+
* Lightweight accessibility audits for development
|
3326
3327
|
*
|
3327
3328
|
* @version 1.1.0
|
3328
3329
|
* @author sc4rfurry
|
@@ -3331,27 +3332,19 @@ declare namespace index$3 {
|
|
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,7 +3361,7 @@ declare namespace index$2 {
|
|
3368
3361
|
|
3369
3362
|
/**
|
3370
3363
|
* @sc4rfurryx/proteusjs/a11y-primitives
|
3371
|
-
*
|
3364
|
+
* Lightweight accessibility patterns
|
3372
3365
|
*
|
3373
3366
|
* @version 1.1.0
|
3374
3367
|
* @author sc4rfurry
|
@@ -3383,72 +3376,34 @@ 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: Element, 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
|
/**
|
@@ -3564,4 +3519,4 @@ declare const VERSION = "1.1.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 };
|