@gnireeg/accordion 0.1.4 → 0.1.6

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 (2) hide show
  1. package/package.json +3 -2
  2. package/dist/jsx.d.ts +0 -75
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gnireeg/accordion",
3
- "version": "0.1.4",
3
+ "version": "0.1.6",
4
4
  "description": "Accessible accordion web component with smooth animations, keyboard support, and nested accordion groups",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -13,7 +13,8 @@
13
13
  }
14
14
  },
15
15
  "files": [
16
- "dist"
16
+ "dist",
17
+ "README.md"
17
18
  ],
18
19
  "keywords": [
19
20
  "accordion",
package/dist/jsx.d.ts DELETED
@@ -1,75 +0,0 @@
1
- // TypeScript JSX type declarations for accordion components
2
- // Framework-agnostic: Works with React, Preact, Solid, and other JSX frameworks
3
-
4
- // Base HTML element attributes that work across all frameworks
5
- interface HTMLElementAttributes {
6
- // Global HTML attributes
7
- class?: string;
8
- className?: string;
9
- id?: string;
10
- style?: string | Record<string, any>;
11
- title?: string;
12
- lang?: string;
13
- dir?: 'ltr' | 'rtl' | 'auto';
14
- hidden?: boolean;
15
- tabIndex?: number;
16
- slot?: string;
17
- part?: string;
18
-
19
- // ARIA
20
- role?: string;
21
- 'aria-label'?: string;
22
- 'aria-labelledby'?: string;
23
- 'aria-describedby'?: string;
24
- 'aria-hidden'?: boolean | 'true' | 'false';
25
- 'aria-expanded'?: boolean | 'true' | 'false';
26
- 'aria-controls'?: string;
27
-
28
- // Data attributes
29
- [key: `data-${string}`]: any;
30
-
31
- // Common events
32
- onClick?: (event: MouseEvent) => void;
33
- onDblClick?: (event: MouseEvent) => void;
34
- onMouseDown?: (event: MouseEvent) => void;
35
- onMouseUp?: (event: MouseEvent) => void;
36
- onMouseEnter?: (event: MouseEvent) => void;
37
- onMouseLeave?: (event: MouseEvent) => void;
38
- onMouseMove?: (event: MouseEvent) => void;
39
- onMouseOver?: (event: MouseEvent) => void;
40
- onMouseOut?: (event: MouseEvent) => void;
41
- onKeyDown?: (event: KeyboardEvent) => void;
42
- onKeyUp?: (event: KeyboardEvent) => void;
43
- onKeyPress?: (event: KeyboardEvent) => void;
44
- onFocus?: (event: FocusEvent) => void;
45
- onBlur?: (event: FocusEvent) => void;
46
- onChange?: (event: Event) => void;
47
- onInput?: (event: Event) => void;
48
- onSubmit?: (event: Event) => void;
49
-
50
- // Children
51
- children?: any;
52
-
53
- // Allow any other HTML attributes
54
- [key: string]: any;
55
- }
56
-
57
- declare namespace JSX {
58
- interface IntrinsicElements {
59
- 'accordion-item': HTMLElementAttributes & {
60
- // Custom accordion attributes
61
- open?: boolean;
62
- 'animation-time'?: string;
63
- 'animation-easing'?: string;
64
-
65
- // Custom event handlers
66
- onAccordionOpened?: (event: CustomEvent<{ open: boolean }>) => void;
67
- onAccordionClosed?: (event: CustomEvent<{ open: boolean }>) => void;
68
- };
69
-
70
- 'accordion-group': HTMLElementAttributes & {
71
- // Custom accordion-group attributes
72
- 'allow-multiple-open'?: boolean;
73
- };
74
- }
75
- }