@fluix-ui/vanilla 0.0.8 → 0.0.9

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/dist/index.d.cts CHANGED
@@ -2,10 +2,7 @@ import { FluixToasterConfig, NotchTrigger, NotchPosition, SpringConfig, NotchThe
2
2
  export { FluixPosition, FluixToastOptions, FluixToastPromiseOptions, FluixToastState, FluixToasterConfig, MenuOrientation, MenuTheme, MenuVariant, NotchConfig, NotchPosition, NotchTheme, NotchTrigger, fluix } from '@fluix-ui/core';
3
3
 
4
4
  /**
5
- * Vanilla JS Toaster — imperative DOM adapter for the Fluix toast system.
6
- *
7
- * Subscribes to the core store and diffs snapshots to create, update, and
8
- * destroy toast DOM elements without any framework dependency.
5
+ * Vanilla JS Toaster — public API for the Fluix toast system.
9
6
  */
10
7
 
11
8
  declare function createToaster(config?: FluixToasterConfig): {
@@ -15,27 +12,19 @@ declare function createToaster(config?: FluixToasterConfig): {
15
12
 
16
13
  /**
17
14
  * Vanilla JS Notch — imperative DOM adapter for the Fluix Notch component.
18
- *
19
- * Creates all DOM elements (measurer, root, SVG canvas with gooey filter +
20
- * highlight rect, pill div, content div), subscribes to the core notch machine,
21
- * and drives WAAPI spring animations.
22
15
  */
23
16
 
24
17
  interface NotchOptions {
25
18
  trigger?: NotchTrigger;
26
19
  position?: NotchPosition;
27
20
  spring?: SpringConfig;
28
- /** Collapsed dot size in px. Default: 36 */
29
21
  dotSize?: number;
30
22
  roundness?: number;
31
- /** Visual theme. Default: "dark" */
32
23
  theme?: NotchTheme;
33
24
  fill?: string;
34
25
  open?: boolean;
35
26
  onOpenChange?: (open: boolean) => void;
36
- /** Icon/content shown in the collapsed dot */
37
27
  pill: HTMLElement | string;
38
- /** Content shown when expanded */
39
28
  content: HTMLElement | string;
40
29
  }
41
30
  interface NotchInstance {
@@ -49,10 +38,6 @@ declare function createNotch(container: HTMLElement, options: NotchOptions): Not
49
38
 
50
39
  /**
51
40
  * Vanilla JS Menu — imperative DOM adapter for the Fluix Menu component.
52
- *
53
- * Creates all DOM elements (nav, item buttons, SVG canvas with indicator),
54
- * subscribes to the core menu machine, and drives the indicator animation
55
- * via connectMenu.
56
41
  */
57
42
 
58
43
  interface MenuItemConfig {
package/dist/index.d.ts CHANGED
@@ -2,10 +2,7 @@ import { FluixToasterConfig, NotchTrigger, NotchPosition, SpringConfig, NotchThe
2
2
  export { FluixPosition, FluixToastOptions, FluixToastPromiseOptions, FluixToastState, FluixToasterConfig, MenuOrientation, MenuTheme, MenuVariant, NotchConfig, NotchPosition, NotchTheme, NotchTrigger, fluix } from '@fluix-ui/core';
3
3
 
4
4
  /**
5
- * Vanilla JS Toaster — imperative DOM adapter for the Fluix toast system.
6
- *
7
- * Subscribes to the core store and diffs snapshots to create, update, and
8
- * destroy toast DOM elements without any framework dependency.
5
+ * Vanilla JS Toaster — public API for the Fluix toast system.
9
6
  */
10
7
 
11
8
  declare function createToaster(config?: FluixToasterConfig): {
@@ -15,27 +12,19 @@ declare function createToaster(config?: FluixToasterConfig): {
15
12
 
16
13
  /**
17
14
  * Vanilla JS Notch — imperative DOM adapter for the Fluix Notch component.
18
- *
19
- * Creates all DOM elements (measurer, root, SVG canvas with gooey filter +
20
- * highlight rect, pill div, content div), subscribes to the core notch machine,
21
- * and drives WAAPI spring animations.
22
15
  */
23
16
 
24
17
  interface NotchOptions {
25
18
  trigger?: NotchTrigger;
26
19
  position?: NotchPosition;
27
20
  spring?: SpringConfig;
28
- /** Collapsed dot size in px. Default: 36 */
29
21
  dotSize?: number;
30
22
  roundness?: number;
31
- /** Visual theme. Default: "dark" */
32
23
  theme?: NotchTheme;
33
24
  fill?: string;
34
25
  open?: boolean;
35
26
  onOpenChange?: (open: boolean) => void;
36
- /** Icon/content shown in the collapsed dot */
37
27
  pill: HTMLElement | string;
38
- /** Content shown when expanded */
39
28
  content: HTMLElement | string;
40
29
  }
41
30
  interface NotchInstance {
@@ -49,10 +38,6 @@ declare function createNotch(container: HTMLElement, options: NotchOptions): Not
49
38
 
50
39
  /**
51
40
  * Vanilla JS Menu — imperative DOM adapter for the Fluix Menu component.
52
- *
53
- * Creates all DOM elements (nav, item buttons, SVG canvas with indicator),
54
- * subscribes to the core menu machine, and drives the indicator animation
55
- * via connectMenu.
56
41
  */
57
42
 
58
43
  interface MenuItemConfig {