@mulsense/xnew 0.3.2 → 0.3.3

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 (48) hide show
  1. package/dist/addons/xmatter.d.ts +2 -1
  2. package/dist/addons/xpixi.d.ts +3 -3
  3. package/dist/addons/xrapier2d.d.ts +2 -1
  4. package/dist/addons/xthree.d.ts +2 -1
  5. package/dist/xnew.js +2 -20
  6. package/dist/xnew.mjs +2 -20
  7. package/package.json +1 -1
  8. package/dist/types/audio/audio.d.ts +0 -64
  9. package/dist/types/audio/file.d.ts +0 -12
  10. package/dist/types/audio/loader.d.ts +0 -13
  11. package/dist/types/audio/synthesizer.d.ts +0 -41
  12. package/dist/types/basics/Accordion.d.ts +0 -20
  13. package/dist/types/basics/Audio.d.ts +0 -2
  14. package/dist/types/basics/Block.d.ts +0 -24
  15. package/dist/types/basics/Bullet.d.ts +0 -7
  16. package/dist/types/basics/ControlPanel.d.ts +0 -7
  17. package/dist/types/basics/Controller.d.ts +0 -19
  18. package/dist/types/basics/Drag.d.ts +0 -6
  19. package/dist/types/basics/Event.d.ts +0 -4
  20. package/dist/types/basics/File.d.ts +0 -1
  21. package/dist/types/basics/Input.d.ts +0 -8
  22. package/dist/types/basics/KeyEvent.d.ts +0 -2
  23. package/dist/types/basics/KeyboardEvent.d.ts +0 -2
  24. package/dist/types/basics/Modal.d.ts +0 -15
  25. package/dist/types/basics/Navigation.d.ts +0 -1
  26. package/dist/types/basics/Panel.d.ts +0 -6
  27. package/dist/types/basics/PointerEvent.d.ts +0 -2
  28. package/dist/types/basics/Popup.d.ts +0 -8
  29. package/dist/types/basics/ResizeEvent.d.ts +0 -2
  30. package/dist/types/basics/Screen.d.ts +0 -9
  31. package/dist/types/basics/SubWIndow.d.ts +0 -6
  32. package/dist/types/basics/Tab.d.ts +0 -24
  33. package/dist/types/basics/TabView.d.ts +0 -18
  34. package/dist/types/basics/Tabs.d.ts +0 -8
  35. package/dist/types/basics/Text.d.ts +0 -6
  36. package/dist/types/basics/Touch.d.ts +0 -28
  37. package/dist/types/basics/Transition.d.ts +0 -17
  38. package/dist/types/basics/UserEvent.d.ts +0 -2
  39. package/dist/types/basics/WorkSpace.d.ts +0 -16
  40. package/dist/types/core/audio.d.ts +0 -64
  41. package/dist/types/core/map.d.ts +0 -21
  42. package/dist/types/core/time.d.ts +0 -29
  43. package/dist/types/core/unit.d.ts +0 -94
  44. package/dist/types/core/util.d.ts +0 -1
  45. package/dist/types/core/xnew.d.ts +0 -150
  46. package/dist/types/icons/icons.d.ts +0 -327
  47. package/dist/types/index.d.ts +0 -48
  48. package/dist/types/xnew.d.ts +0 -8
@@ -1,21 +0,0 @@
1
- export declare class MapSet<Key, Value> extends Map<Key, Set<Value>> {
2
- has(key: Key): boolean;
3
- has(key: Key, value: Value): boolean;
4
- add(key: Key, value: Value): MapSet<Key, Value>;
5
- keys(): IterableIterator<Key>;
6
- keys(key: Key): IterableIterator<Value>;
7
- delete(key: Key): boolean;
8
- delete(key: Key, value: Value): boolean;
9
- }
10
- export declare class MapMap<Key1, Key2, Value> extends Map<Key1, Map<Key2, Value>> {
11
- has(key1: Key1): boolean;
12
- has(key1: Key1, key2: Key2): boolean;
13
- set(key1: Key1, value: Map<Key2, Value>): this;
14
- set(key1: Key1, key2: Key2, value: Value): this;
15
- get(key1: Key1): Map<Key2, Value> | undefined;
16
- get(key1: Key1, key2: Key2): Value | undefined;
17
- keys(): IterableIterator<Key1>;
18
- keys(key1: Key1): IterableIterator<Key2>;
19
- delete(key1: Key1): boolean;
20
- delete(key1: Key1, key2: Key2): boolean;
21
- }
@@ -1,29 +0,0 @@
1
- export declare class Ticker {
2
- private id;
3
- constructor(callback: Function, fps?: number);
4
- clear(): void;
5
- }
6
- export interface TimerOptions {
7
- transition?: Function;
8
- timeout?: Function;
9
- duration: number;
10
- iterations: number;
11
- easing?: string;
12
- }
13
- export declare class Timer {
14
- private options;
15
- private id;
16
- private time;
17
- private counter;
18
- private offset;
19
- private status;
20
- private visibilitychange;
21
- private ticker;
22
- constructor(options: TimerOptions);
23
- clear(): void;
24
- elapsed(): number;
25
- start(): void;
26
- stop(): void;
27
- private _start;
28
- private _stop;
29
- }
@@ -1,94 +0,0 @@
1
- import { MapSet, MapMap } from './map';
2
- import { Ticker, TimerOptions } from './time';
3
- export type UnitElement = HTMLElement | SVGElement;
4
- interface Context {
5
- stack: Context | null;
6
- key?: string;
7
- value?: any;
8
- }
9
- interface Snapshot {
10
- unit: Unit;
11
- context: Context;
12
- element: UnitElement;
13
- }
14
- interface UnitInternal {
15
- parent: Unit | null;
16
- target: Object | null;
17
- props?: Object;
18
- baseElement: UnitElement;
19
- baseContext: Context;
20
- baseComponent: Function;
21
- currentElement: UnitElement;
22
- currentContext: Context;
23
- anchor: UnitElement | null;
24
- state: string;
25
- tostart: boolean;
26
- protected: boolean;
27
- ancestors: Unit[];
28
- children: Unit[];
29
- promises: UnitPromise[];
30
- elements: UnitElement[];
31
- components: Function[];
32
- listeners: MapMap<string, Function, {
33
- element: UnitElement;
34
- execute: Function;
35
- }>;
36
- defines: Record<string, any>;
37
- systems: Record<string, Function[]>;
38
- }
39
- export declare class Unit {
40
- [key: string]: any;
41
- _: UnitInternal;
42
- constructor(parent: Unit | null, ...args: any[]);
43
- get element(): UnitElement;
44
- start(): void;
45
- stop(): void;
46
- finalize(): void;
47
- reboot(): void;
48
- static initialize(unit: Unit, anchor: UnitElement | null): void;
49
- static finalize(unit: Unit): void;
50
- static nest(unit: Unit, tag: string): UnitElement;
51
- static extend(unit: Unit, component: Function, props?: Object): {
52
- [key: string]: any;
53
- };
54
- static start(unit: Unit): void;
55
- static stop(unit: Unit): void;
56
- static update(unit: Unit): void;
57
- static root: Unit;
58
- static current: Unit;
59
- static ticker: Ticker;
60
- static reset(): void;
61
- static wrap(unit: Unit, listener: Function): (...args: any[]) => any;
62
- static scope(snapshot: Snapshot, func: Function, ...args: any[]): any;
63
- static snapshot(unit: Unit): Snapshot;
64
- static context(unit: Unit, key: string, value?: any): any;
65
- static component2units: MapSet<Function, Unit>;
66
- static find(component: Function): Unit[];
67
- static type2units: MapSet<string, Unit>;
68
- on(type: string, listener: Function, options?: boolean | AddEventListenerOptions): void;
69
- off(type?: string, listener?: Function): void;
70
- static emit(type: string, ...args: any[]): void;
71
- }
72
- export declare class UnitPromise {
73
- promise: Promise<any>;
74
- useResult: Boolean;
75
- constructor(promise: Promise<any>, useResult: Boolean);
76
- then(callback: Function): UnitPromise;
77
- catch(callback: Function): UnitPromise;
78
- finally(callback: Function): UnitPromise;
79
- }
80
- export declare class UnitTimer {
81
- private unit;
82
- private stack;
83
- constructor(options: TimerOptions);
84
- clear(): void;
85
- timeout(timeout: Function, duration?: number): this;
86
- iteration(timeout: Function, duration?: number, iterations?: number): this;
87
- transition(transition: Function, duration?: number, easing?: string): this;
88
- static execute(timer: UnitTimer, options: TimerOptions): void;
89
- static next(timer: UnitTimer): void;
90
- static Component(unit: Unit, options: TimerOptions & {
91
- snapshot: Snapshot;
92
- }): void;
93
- }
94
- export {};
@@ -1 +0,0 @@
1
- export declare function isPlainObject(object: any): boolean;
@@ -1,150 +0,0 @@
1
- import { Unit, UnitPromise } from './unit';
2
- interface CreateUnit {
3
- /**
4
- * Creates a new Unit component
5
- * @param Component - component function
6
- * @param props - properties for component function
7
- * @returns A new Unit instance
8
- * @example
9
- * const unit = xnew(MyComponent, { data: 0 })
10
- */
11
- (Component?: Function | string, props?: Object): Unit;
12
- /**
13
- * Creates a new Unit component
14
- * @param target - HTMLElement, SVGElement, selector string, or HTML tag for new element
15
- * @param Component - component function
16
- * @param props - properties for component function
17
- * @returns A new Unit instance
18
- * @example
19
- * const unit = xnew(element, MyComponent, { data: 0 })
20
- * const unit = xnew('#selector', MyComponent, { data: 0 })
21
- * const unit = xnew('<div>', MyComponent, { data: 0 })
22
- */
23
- (target: HTMLElement | SVGElement, Component?: Function | string, props?: Object): Unit;
24
- }
25
- export declare const xnew: CreateUnit & {
26
- /**
27
- * Creates a nested HTML/SVG element within the current component
28
- * @param tag - HTML or SVG tag name (e.g., '<div>', '<span>', '<svg>')
29
- * @returns The created HTML/SVG element
30
- * @throws Error if called after component initialization
31
- * @example
32
- * const div = xnew.nest('<div>')
33
- * div.textContent = 'Hello'
34
- */
35
- nest(tag: string): HTMLElement | SVGElement;
36
- /**
37
- * Extends the current component with another component's functionality
38
- * @param component - Component function to extend with
39
- * @param props - Optional properties to pass to the extended component
40
- * @returns The extended component's return value
41
- * @throws Error if called after component initialization
42
- * @example
43
- * const api = xnew.extend(BaseComponent, { data: {} })
44
- */
45
- extend(component: Function, props?: Object): {
46
- [key: string]: any;
47
- };
48
- /**
49
- * Gets or sets a context value that can be accessed by child components
50
- * @param key - Context key
51
- * @param value - Optional value to set (if undefined, gets the value)
52
- * @returns The context value if getting, undefined if setting
53
- * @example
54
- * // Set context in parent
55
- * xnew.context('theme', 'dark')
56
- *
57
- * // Get context in child
58
- * const theme = xnew.context('theme')
59
- */
60
- context(key: string, value?: any): any;
61
- /**
62
- * Registers a promise with the current component for lifecycle management
63
- * @param promise - Promise to register
64
- * @returns UnitPromise wrapper for chaining
65
- * @example
66
- * xnew.promise(fetchData()).then(data => console.log(data))
67
- */
68
- promise(promise: Promise<any>, useResult?: Boolean): UnitPromise;
69
- /**
70
- * Handles successful resolution of all registered promises in the current component
71
- * @param callback - Function to call when all promises resolve
72
- * @returns UnitPromise for chaining
73
- * @example
74
- * xnew.then(results => console.log('All promises resolved', results))
75
- */
76
- then(callback: Function): UnitPromise;
77
- /**
78
- * Handles rejection of any registered promise in the current component
79
- * @param callback - Function to call if any promise rejects
80
- * @returns UnitPromise for chaining
81
- * @example
82
- * xnew.catch(error => console.error('Promise failed', error))
83
- */
84
- catch(callback: Function): UnitPromise;
85
- /**
86
- * Executes callback after all registered promises settle (resolve or reject)
87
- * @param callback - Function to call after promises settle
88
- * @returns UnitPromise for chaining
89
- * @example
90
- * xnew.finally(() => console.log('All promises settled'))
91
- */
92
- finally(callback: Function): UnitPromise;
93
- /**
94
- * Creates a scoped callback that captures the current component context
95
- * @param callback - Function to wrap with current scope
96
- * @returns Function that executes callback in the captured scope
97
- * @example
98
- * setTimeout(xnew.scope(() => {
99
- * console.log('This runs in the xnew component scope')
100
- * }), 1000)
101
- */
102
- scope(callback: any): any;
103
- /**
104
- * Finds all instances of a component in the component tree
105
- * @param component - Component function to search for
106
- * @returns Array of Unit instances matching the component
107
- * @throws Error if component parameter is invalid
108
- * @example
109
- * const buttons = xnew.find(ButtonComponent)
110
- * buttons.forEach(btn => btn.finalize())
111
- */
112
- find(component: Function): Unit[];
113
- emit(type: string, ...args: any[]): void;
114
- /**
115
- * Executes a callback once after a delay, managed by component lifecycle
116
- * @param timeout - Function to execute after Duration
117
- * @param duration - Duration in milliseconds
118
- * @returns Object with clear() method to cancel the timeout
119
- * @example
120
- * const timer = xnew.timeout(() => console.log('Delayed'), 1000)
121
- * // Cancel if needed: timer.clear()
122
- */
123
- timeout(timeout: Function, duration?: number): any;
124
- /**
125
- * Executes a callback repeatedly at specified intervals, managed by component lifecycle
126
- * @param timeout - Function to execute at each duration
127
- * @param duration - Duration in milliseconds
128
- * @returns Object with clear() method to stop the interval
129
- * @example
130
- * const timer = xnew.interval(() => console.log('Tick'), 1000)
131
- * // Stop when needed: timer.clear()
132
- */
133
- interval(timeout: Function, duration: number, iterations?: number): any;
134
- /**
135
- * Creates a transition animation with easing, executing callback with progress values
136
- * @param callback - Function called with progress value (0.0 to 1.0)
137
- * @param duration - Duration of transition in milliseconds
138
- * @param easing - Easing function: 'linear', 'ease', 'ease-in', 'ease-out', 'ease-in-out' (default: 'linear')
139
- * @returns Object with clear() and next() methods for controlling transitions
140
- * @example
141
- * xnew.transition(p => {
142
- * element.style.opacity = p
143
- * }, 500, 'ease-out').transition(p => {
144
- * element.style.transform = `scale(${p})`
145
- * }, 300)
146
- */
147
- transition(transition: Function, duration?: number, easing?: string): any;
148
- protect(): void;
149
- };
150
- export {};
@@ -1,327 +0,0 @@
1
- import { Unit } from '../core/unit';
2
- export declare const icons: {
3
- AcademicCap(unit: Unit, props: Object): void;
4
- AdjustmentsHorizontal(unit: Unit, props: Object): void;
5
- AdjustmentsVertical(unit: Unit, props: Object): void;
6
- ArchiveBox(unit: Unit, props: Object): void;
7
- ArchiveBoxArrowDown(unit: Unit, props: Object): void;
8
- ArchiveBoxXMark(unit: Unit, props: Object): void;
9
- ArrowDown(unit: Unit, props: Object): void;
10
- ArrowDownCircle(unit: Unit, props: Object): void;
11
- ArrowDownLeft(unit: Unit, props: Object): void;
12
- ArrowDownOnSquare(unit: Unit, props: Object): void;
13
- ArrowDownOnSquareStack(unit: Unit, props: Object): void;
14
- ArrowDownRight(unit: Unit, props: Object): void;
15
- ArrowDownTray(unit: Unit, props: Object): void;
16
- ArrowLeft(unit: Unit, props: Object): void;
17
- ArrowLeftCircle(unit: Unit, props: Object): void;
18
- ArrowLeftEndOnRectangle(unit: Unit, props: Object): void;
19
- ArrowLeftOnRectangle(unit: Unit, props: Object): void;
20
- ArrowLeftStartOnRectangle(unit: Unit, props: Object): void;
21
- ArrowLongDown(unit: Unit, props: Object): void;
22
- ArrowLongLeft(unit: Unit, props: Object): void;
23
- ArrowLongRight(unit: Unit, props: Object): void;
24
- ArrowLongUp(unit: Unit, props: Object): void;
25
- ArrowPath(unit: Unit, props: Object): void;
26
- ArrowPathRoundedSquare(unit: Unit, props: Object): void;
27
- ArrowRight(unit: Unit, props: Object): void;
28
- ArrowRightCircle(unit: Unit, props: Object): void;
29
- ArrowRightEndOnRectangle(unit: Unit, props: Object): void;
30
- ArrowRightOnRectangle(unit: Unit, props: Object): void;
31
- ArrowRightStartOnRectangle(unit: Unit, props: Object): void;
32
- ArrowSmallDown(unit: Unit, props: Object): void;
33
- ArrowSmallLeft(unit: Unit, props: Object): void;
34
- ArrowSmallRight(unit: Unit, props: Object): void;
35
- ArrowSmallUp(unit: Unit, props: Object): void;
36
- ArrowTopRightOnSquare(unit: Unit, props: Object): void;
37
- ArrowTrendingDown(unit: Unit, props: Object): void;
38
- ArrowTrendingUp(unit: Unit, props: Object): void;
39
- ArrowTurnDownLeft(unit: Unit, props: Object): void;
40
- ArrowTurnDownRight(unit: Unit, props: Object): void;
41
- ArrowTurnLeftDown(unit: Unit, props: Object): void;
42
- ArrowTurnLeftUp(unit: Unit, props: Object): void;
43
- ArrowTurnRightDown(unit: Unit, props: Object): void;
44
- ArrowTurnRightUp(unit: Unit, props: Object): void;
45
- ArrowTurnUpLeft(unit: Unit, props: Object): void;
46
- ArrowTurnUpRight(unit: Unit, props: Object): void;
47
- ArrowUp(unit: Unit, props: Object): void;
48
- ArrowUpCircle(unit: Unit, props: Object): void;
49
- ArrowUpLeft(unit: Unit, props: Object): void;
50
- ArrowUpOnSquare(unit: Unit, props: Object): void;
51
- ArrowUpOnSquareStack(unit: Unit, props: Object): void;
52
- ArrowUpRight(unit: Unit, props: Object): void;
53
- ArrowUpTray(unit: Unit, props: Object): void;
54
- ArrowUturnDown(unit: Unit, props: Object): void;
55
- ArrowUturnLeft(unit: Unit, props: Object): void;
56
- ArrowUturnRight(unit: Unit, props: Object): void;
57
- ArrowUturnUp(unit: Unit, props: Object): void;
58
- ArrowsPointingIn(unit: Unit, props: Object): void;
59
- ArrowsPointingOut(unit: Unit, props: Object): void;
60
- ArrowsRightLeft(unit: Unit, props: Object): void;
61
- ArrowsUpDown(unit: Unit, props: Object): void;
62
- AtSymbol(unit: Unit, props: Object): void;
63
- Backspace(unit: Unit, props: Object): void;
64
- Backward(unit: Unit, props: Object): void;
65
- Banknotes(unit: Unit, props: Object): void;
66
- Bars2(unit: Unit, props: Object): void;
67
- Bars3(unit: Unit, props: Object): void;
68
- Bars3BottomLeft(unit: Unit, props: Object): void;
69
- Bars3BottomRight(unit: Unit, props: Object): void;
70
- Bars3CenterLeft(unit: Unit, props: Object): void;
71
- Bars4(unit: Unit, props: Object): void;
72
- BarsArrowDown(unit: Unit, props: Object): void;
73
- BarsArrowUp(unit: Unit, props: Object): void;
74
- Battery0(unit: Unit, props: Object): void;
75
- Battery100(unit: Unit, props: Object): void;
76
- Battery50(unit: Unit, props: Object): void;
77
- Beaker(unit: Unit, props: Object): void;
78
- Bell(unit: Unit, props: Object): void;
79
- BellAlert(unit: Unit, props: Object): void;
80
- BellSlash(unit: Unit, props: Object): void;
81
- BellSnooze(unit: Unit, props: Object): void;
82
- Bold(unit: Unit, props: Object): void;
83
- Bolt(unit: Unit, props: Object): void;
84
- BoltSlash(unit: Unit, props: Object): void;
85
- BookOpen(unit: Unit, props: Object): void;
86
- Bookmark(unit: Unit, props: Object): void;
87
- BookmarkSlash(unit: Unit, props: Object): void;
88
- BookmarkSquare(unit: Unit, props: Object): void;
89
- Briefcase(unit: Unit, props: Object): void;
90
- BugAnt(unit: Unit, props: Object): void;
91
- BuildingLibrary(unit: Unit, props: Object): void;
92
- BuildingOffice(unit: Unit, props: Object): void;
93
- BuildingOffice2(unit: Unit, props: Object): void;
94
- BuildingStorefront(unit: Unit, props: Object): void;
95
- Cake(unit: Unit, props: Object): void;
96
- Calculator(unit: Unit, props: Object): void;
97
- Calendar(unit: Unit, props: Object): void;
98
- CalendarDateRange(unit: Unit, props: Object): void;
99
- CalendarDays(unit: Unit, props: Object): void;
100
- Camera(unit: Unit, props: Object): void;
101
- ChartBar(unit: Unit, props: Object): void;
102
- ChartBarSquare(unit: Unit, props: Object): void;
103
- ChartPie(unit: Unit, props: Object): void;
104
- ChatBubbleBottomCenter(unit: Unit, props: Object): void;
105
- ChatBubbleBottomCenterText(unit: Unit, props: Object): void;
106
- ChatBubbleLeft(unit: Unit, props: Object): void;
107
- ChatBubbleLeftEllipsis(unit: Unit, props: Object): void;
108
- ChatBubbleLeftRight(unit: Unit, props: Object): void;
109
- ChatBubbleOvalLeft(unit: Unit, props: Object): void;
110
- ChatBubbleOvalLeftEllipsis(unit: Unit, props: Object): void;
111
- Check(unit: Unit, props: Object): void;
112
- CheckBadge(unit: Unit, props: Object): void;
113
- CheckCircle(unit: Unit, props: Object): void;
114
- ChevronDoubleDown(unit: Unit, props: Object): void;
115
- ChevronDoubleLeft(unit: Unit, props: Object): void;
116
- ChevronDoubleRight(unit: Unit, props: Object): void;
117
- ChevronDoubleUp(unit: Unit, props: Object): void;
118
- ChevronDown(unit: Unit, props: Object): void;
119
- ChevronLeft(unit: Unit, props: Object): void;
120
- ChevronRight(unit: Unit, props: Object): void;
121
- ChevronUp(unit: Unit, props: Object): void;
122
- ChevronUpDown(unit: Unit, props: Object): void;
123
- CircleStack(unit: Unit, props: Object): void;
124
- Clipboard(unit: Unit, props: Object): void;
125
- ClipboardDocument(unit: Unit, props: Object): void;
126
- ClipboardDocumentCheck(unit: Unit, props: Object): void;
127
- ClipboardDocumentList(unit: Unit, props: Object): void;
128
- Clock(unit: Unit, props: Object): void;
129
- Cloud(unit: Unit, props: Object): void;
130
- CloudArrowDown(unit: Unit, props: Object): void;
131
- CloudArrowUp(unit: Unit, props: Object): void;
132
- CodeBracket(unit: Unit, props: Object): void;
133
- CodeBracketSquare(unit: Unit, props: Object): void;
134
- Cog(unit: Unit, props: Object): void;
135
- Cog6Tooth(unit: Unit, props: Object): void;
136
- Cog8Tooth(unit: Unit, props: Object): void;
137
- CommandLine(unit: Unit, props: Object): void;
138
- ComputerDesktop(unit: Unit, props: Object): void;
139
- CpuChip(unit: Unit, props: Object): void;
140
- CreditCard(unit: Unit, props: Object): void;
141
- Cube(unit: Unit, props: Object): void;
142
- CubeTransparent(unit: Unit, props: Object): void;
143
- CurrencyBangladeshi(unit: Unit, props: Object): void;
144
- CurrencyDollar(unit: Unit, props: Object): void;
145
- CurrencyEuro(unit: Unit, props: Object): void;
146
- CurrencyPound(unit: Unit, props: Object): void;
147
- CurrencyRupee(unit: Unit, props: Object): void;
148
- CurrencyYen(unit: Unit, props: Object): void;
149
- CursorArrowRays(unit: Unit, props: Object): void;
150
- CursorArrowRipple(unit: Unit, props: Object): void;
151
- DevicePhoneMobile(unit: Unit, props: Object): void;
152
- DeviceTablet(unit: Unit, props: Object): void;
153
- Divide(unit: Unit, props: Object): void;
154
- Document(unit: Unit, props: Object): void;
155
- DocumentArrowDown(unit: Unit, props: Object): void;
156
- DocumentArrowUp(unit: Unit, props: Object): void;
157
- DocumentChartBar(unit: Unit, props: Object): void;
158
- DocumentCheck(unit: Unit, props: Object): void;
159
- DocumentCurrencyBangladeshi(unit: Unit, props: Object): void;
160
- DocumentCurrencyDollar(unit: Unit, props: Object): void;
161
- DocumentCurrencyEuro(unit: Unit, props: Object): void;
162
- DocumentCurrencyPound(unit: Unit, props: Object): void;
163
- DocumentCurrencyRupee(unit: Unit, props: Object): void;
164
- DocumentCurrencyYen(unit: Unit, props: Object): void;
165
- DocumentDuplicate(unit: Unit, props: Object): void;
166
- DocumentMagnifyingGlass(unit: Unit, props: Object): void;
167
- DocumentMinus(unit: Unit, props: Object): void;
168
- DocumentPlus(unit: Unit, props: Object): void;
169
- DocumentText(unit: Unit, props: Object): void;
170
- EllipsisHorizontal(unit: Unit, props: Object): void;
171
- EllipsisHorizontalCircle(unit: Unit, props: Object): void;
172
- EllipsisVertical(unit: Unit, props: Object): void;
173
- Envelope(unit: Unit, props: Object): void;
174
- EnvelopeOpen(unit: Unit, props: Object): void;
175
- Equals(unit: Unit, props: Object): void;
176
- ExclamationCircle(unit: Unit, props: Object): void;
177
- ExclamationTriangle(unit: Unit, props: Object): void;
178
- Eye(unit: Unit, props: Object): void;
179
- EyeDropper(unit: Unit, props: Object): void;
180
- EyeSlash(unit: Unit, props: Object): void;
181
- FaceFrown(unit: Unit, props: Object): void;
182
- FaceSmile(unit: Unit, props: Object): void;
183
- Film(unit: Unit, props: Object): void;
184
- FingerPrint(unit: Unit, props: Object): void;
185
- Fire(unit: Unit, props: Object): void;
186
- Flag(unit: Unit, props: Object): void;
187
- Folder(unit: Unit, props: Object): void;
188
- FolderArrowDown(unit: Unit, props: Object): void;
189
- FolderMinus(unit: Unit, props: Object): void;
190
- FolderOpen(unit: Unit, props: Object): void;
191
- FolderPlus(unit: Unit, props: Object): void;
192
- Forward(unit: Unit, props: Object): void;
193
- Funnel(unit: Unit, props: Object): void;
194
- Gif(unit: Unit, props: Object): void;
195
- Gift(unit: Unit, props: Object): void;
196
- GiftTop(unit: Unit, props: Object): void;
197
- GlobeAlt(unit: Unit, props: Object): void;
198
- GlobeAmericas(unit: Unit, props: Object): void;
199
- GlobeAsiaAustralia(unit: Unit, props: Object): void;
200
- GlobeEuropeAfrica(unit: Unit, props: Object): void;
201
- H1(unit: Unit, props: Object): void;
202
- H2(unit: Unit, props: Object): void;
203
- H3(unit: Unit, props: Object): void;
204
- HandRaised(unit: Unit, props: Object): void;
205
- HandThumbDown(unit: Unit, props: Object): void;
206
- HandThumbUp(unit: Unit, props: Object): void;
207
- Hashtag(unit: Unit, props: Object): void;
208
- Heart(unit: Unit, props: Object): void;
209
- Home(unit: Unit, props: Object): void;
210
- HomeModern(unit: Unit, props: Object): void;
211
- Identification(unit: Unit, props: Object): void;
212
- Inbox(unit: Unit, props: Object): void;
213
- InboxArrowDown(unit: Unit, props: Object): void;
214
- InboxStack(unit: Unit, props: Object): void;
215
- InformationCircle(unit: Unit, props: Object): void;
216
- Italic(unit: Unit, props: Object): void;
217
- Key(unit: Unit, props: Object): void;
218
- Language(unit: Unit, props: Object): void;
219
- Lifebuoy(unit: Unit, props: Object): void;
220
- LightBulb(unit: Unit, props: Object): void;
221
- Link(unit: Unit, props: Object): void;
222
- LinkSlash(unit: Unit, props: Object): void;
223
- ListBullet(unit: Unit, props: Object): void;
224
- LockClosed(unit: Unit, props: Object): void;
225
- LockOpen(unit: Unit, props: Object): void;
226
- MagnifyingGlass(unit: Unit, props: Object): void;
227
- MagnifyingGlassCircle(unit: Unit, props: Object): void;
228
- MagnifyingGlassMinus(unit: Unit, props: Object): void;
229
- MagnifyingGlassPlus(unit: Unit, props: Object): void;
230
- Map(unit: Unit, props: Object): void;
231
- MapPin(unit: Unit, props: Object): void;
232
- Megaphone(unit: Unit, props: Object): void;
233
- Microphone(unit: Unit, props: Object): void;
234
- Minus(unit: Unit, props: Object): void;
235
- MinusCircle(unit: Unit, props: Object): void;
236
- MinusSmall(unit: Unit, props: Object): void;
237
- Moon(unit: Unit, props: Object): void;
238
- MusicalNote(unit: Unit, props: Object): void;
239
- Newspaper(unit: Unit, props: Object): void;
240
- NoSymbol(unit: Unit, props: Object): void;
241
- NumberedList(unit: Unit, props: Object): void;
242
- PaintBrush(unit: Unit, props: Object): void;
243
- PaperAirplane(unit: Unit, props: Object): void;
244
- PaperClip(unit: Unit, props: Object): void;
245
- Pause(unit: Unit, props: Object): void;
246
- PauseCircle(unit: Unit, props: Object): void;
247
- Pencil(unit: Unit, props: Object): void;
248
- PencilSquare(unit: Unit, props: Object): void;
249
- PercentBadge(unit: Unit, props: Object): void;
250
- Phone(unit: Unit, props: Object): void;
251
- PhoneArrowDownLeft(unit: Unit, props: Object): void;
252
- PhoneArrowUpRight(unit: Unit, props: Object): void;
253
- PhoneXMark(unit: Unit, props: Object): void;
254
- Photo(unit: Unit, props: Object): void;
255
- Play(unit: Unit, props: Object): void;
256
- PlayCircle(unit: Unit, props: Object): void;
257
- PlayPause(unit: Unit, props: Object): void;
258
- Plus(unit: Unit, props: Object): void;
259
- PlusCircle(unit: Unit, props: Object): void;
260
- PlusSmall(unit: Unit, props: Object): void;
261
- Power(unit: Unit, props: Object): void;
262
- PresentationChartBar(unit: Unit, props: Object): void;
263
- PresentationChartLine(unit: Unit, props: Object): void;
264
- Printer(unit: Unit, props: Object): void;
265
- PuzzlePiece(unit: Unit, props: Object): void;
266
- QrCode(unit: Unit, props: Object): void;
267
- QuestionMarkCircle(unit: Unit, props: Object): void;
268
- QueueList(unit: Unit, props: Object): void;
269
- Radio(unit: Unit, props: Object): void;
270
- ReceiptPercent(unit: Unit, props: Object): void;
271
- ReceiptRefund(unit: Unit, props: Object): void;
272
- RectangleGroup(unit: Unit, props: Object): void;
273
- RectangleStack(unit: Unit, props: Object): void;
274
- RocketLaunch(unit: Unit, props: Object): void;
275
- Rss(unit: Unit, props: Object): void;
276
- Scale(unit: Unit, props: Object): void;
277
- Scissors(unit: Unit, props: Object): void;
278
- Server(unit: Unit, props: Object): void;
279
- ServerStack(unit: Unit, props: Object): void;
280
- Share(unit: Unit, props: Object): void;
281
- ShieldCheck(unit: Unit, props: Object): void;
282
- ShieldExclamation(unit: Unit, props: Object): void;
283
- ShoppingBag(unit: Unit, props: Object): void;
284
- ShoppingCart(unit: Unit, props: Object): void;
285
- Signal(unit: Unit, props: Object): void;
286
- SignalSlash(unit: Unit, props: Object): void;
287
- Slash(unit: Unit, props: Object): void;
288
- Sparkles(unit: Unit, props: Object): void;
289
- SpeakerWave(unit: Unit, props: Object): void;
290
- SpeakerXMark(unit: Unit, props: Object): void;
291
- Square2Stack(unit: Unit, props: Object): void;
292
- Square3Stack3d(unit: Unit, props: Object): void;
293
- Squares2x2(unit: Unit, props: Object): void;
294
- SquaresPlus(unit: Unit, props: Object): void;
295
- Star(unit: Unit, props: Object): void;
296
- Stop(unit: Unit, props: Object): void;
297
- StopCircle(unit: Unit, props: Object): void;
298
- Strikethrough(unit: Unit, props: Object): void;
299
- Sun(unit: Unit, props: Object): void;
300
- Swatch(unit: Unit, props: Object): void;
301
- TableCells(unit: Unit, props: Object): void;
302
- Tag(unit: Unit, props: Object): void;
303
- Ticket(unit: Unit, props: Object): void;
304
- Trash(unit: Unit, props: Object): void;
305
- Trophy(unit: Unit, props: Object): void;
306
- Truck(unit: Unit, props: Object): void;
307
- Tv(unit: Unit, props: Object): void;
308
- Underline(unit: Unit, props: Object): void;
309
- User(unit: Unit, props: Object): void;
310
- UserCircle(unit: Unit, props: Object): void;
311
- UserGroup(unit: Unit, props: Object): void;
312
- UserMinus(unit: Unit, props: Object): void;
313
- UserPlus(unit: Unit, props: Object): void;
314
- Users(unit: Unit, props: Object): void;
315
- Variable(unit: Unit, props: Object): void;
316
- VideoCamera(unit: Unit, props: Object): void;
317
- VideoCameraSlash(unit: Unit, props: Object): void;
318
- ViewColumns(unit: Unit, props: Object): void;
319
- ViewfinderCircle(unit: Unit, props: Object): void;
320
- Wallet(unit: Unit, props: Object): void;
321
- Wifi(unit: Unit, props: Object): void;
322
- Window(unit: Unit, props: Object): void;
323
- Wrench(unit: Unit, props: Object): void;
324
- WrenchScrewdriver(unit: Unit, props: Object): void;
325
- XCircle(unit: Unit, props: Object): void;
326
- XMark(unit: Unit, props: Object): void;
327
- };
@@ -1,48 +0,0 @@
1
- import { xnew as base } from './core/xnew';
2
- import { Unit, UnitPromise } from './core/unit';
3
- import { AccordionFrame, AccordionHeader, AccordionBullet, AccordionContent } from './basics/Accordion';
4
- import { ResizeEvent, PointerEvent, KeyboardEvent } from './basics/Event';
5
- import { Screen } from './basics/Screen';
6
- import { ModalFrame, ModalContent } from './basics/Modal';
7
- import { TabFrame, TabButton, TabContent } from './basics/Tab';
8
- import { DragFrame, DragTarget } from './basics/Drag';
9
- import { AnalogStick, DirectionalPad } from './basics/Controller';
10
- import { TextStream } from './basics/Text';
11
- import { VolumeController } from './basics/Audio';
12
- import { icons } from './icons/icons';
13
- declare const basics: {
14
- Screen: typeof Screen;
15
- PointerEvent: typeof PointerEvent;
16
- ResizeEvent: typeof ResizeEvent;
17
- KeyboardEvent: typeof KeyboardEvent;
18
- ModalFrame: typeof ModalFrame;
19
- ModalContent: typeof ModalContent;
20
- AccordionFrame: typeof AccordionFrame;
21
- AccordionHeader: typeof AccordionHeader;
22
- AccordionBullet: typeof AccordionBullet;
23
- AccordionContent: typeof AccordionContent;
24
- TabFrame: typeof TabFrame;
25
- TabButton: typeof TabButton;
26
- TabContent: typeof TabContent;
27
- TextStream: typeof TextStream;
28
- DragFrame: typeof DragFrame;
29
- DragTarget: typeof DragTarget;
30
- AnalogStick: typeof AnalogStick;
31
- DirectionalPad: typeof DirectionalPad;
32
- VolumeController: typeof VolumeController;
33
- };
34
- import { Synthesizer, SynthesizerOptions } from './audio/audio';
35
- declare const audio: {
36
- load(path: string): UnitPromise;
37
- synthesizer(props: SynthesizerOptions): Synthesizer;
38
- volume: number;
39
- };
40
- declare namespace xnew {
41
- type Unit = InstanceType<typeof Unit>;
42
- }
43
- declare const xnew: (typeof base) & {
44
- basics: typeof basics;
45
- audio: typeof audio;
46
- icons: typeof icons;
47
- };
48
- export default xnew;
@@ -1,8 +0,0 @@
1
- import { Unit } from './core/unit';
2
- export interface xnewtype extends Function {
3
- [key: string]: any;
4
- }
5
- export declare namespace xnew {
6
- type Unit = InstanceType<typeof Unit>;
7
- }
8
- export declare const xnew: xnewtype;