@kingsimba/nc-ui 0.1.5 → 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.
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -43
- package/dist/index.js +544 -601
- package/dist/index.js.map +1 -1
- package/dist/styles.css +7 -1
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ClassValue } from 'clsx';
|
|
2
2
|
import { default as default_2 } from 'react';
|
|
3
|
-
import { i18n } from 'i18next';
|
|
3
|
+
import { i18n } from 'node_modules/i18next';
|
|
4
4
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
5
5
|
import { ReactNode } from 'react';
|
|
6
6
|
|
|
@@ -249,37 +249,6 @@ declare interface AppTitleBarProps {
|
|
|
249
249
|
hideBackButton?: boolean;
|
|
250
250
|
}
|
|
251
251
|
|
|
252
|
-
/**
|
|
253
|
-
* Registry for back button handlers.
|
|
254
|
-
* Allows apps to register handlers that are called when the user presses back.
|
|
255
|
-
* Handlers are called in priority order (higher priority first).
|
|
256
|
-
*/
|
|
257
|
-
declare type BackHandler = () => boolean;
|
|
258
|
-
|
|
259
|
-
declare class BackHandlerRegistry {
|
|
260
|
-
private handlers;
|
|
261
|
-
/**
|
|
262
|
-
* Register a back handler.
|
|
263
|
-
* @param id - Unique identifier for this handler
|
|
264
|
-
* @param priority - Higher priority handlers are called first
|
|
265
|
-
* @param handler - Function that returns true if it handled the back action
|
|
266
|
-
* @returns Unsubscribe function
|
|
267
|
-
*/
|
|
268
|
-
register(id: string, priority: number, handler: BackHandler): () => void;
|
|
269
|
-
/**
|
|
270
|
-
* Trigger the back action.
|
|
271
|
-
* Calls handlers in priority order until one returns true.
|
|
272
|
-
* @returns true if a handler processed the back action
|
|
273
|
-
*/
|
|
274
|
-
handleBack(): boolean;
|
|
275
|
-
/**
|
|
276
|
-
* Unregister a handler by id.
|
|
277
|
-
*/
|
|
278
|
-
unregister(id: string): void;
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
export declare const backHandlerRegistry: BackHandlerRegistry;
|
|
282
|
-
|
|
283
252
|
export declare function Battery({ percentage, status, darkMode, colored, }: BatteryProps): JSX_2.Element;
|
|
284
253
|
|
|
285
254
|
export declare interface BatteryProps {
|
|
@@ -349,11 +318,6 @@ export declare interface CheckboxProps {
|
|
|
349
318
|
|
|
350
319
|
export declare type CheckboxSize = 'default' | 'small';
|
|
351
320
|
|
|
352
|
-
/**
|
|
353
|
-
* Clear the app from the URL when closing.
|
|
354
|
-
*/
|
|
355
|
-
export declare function clearAppInUrl(): void;
|
|
356
|
-
|
|
357
321
|
/**
|
|
358
322
|
* A reusable close button.
|
|
359
323
|
*/
|
|
@@ -882,12 +846,6 @@ declare class RunningAppsStore {
|
|
|
882
846
|
|
|
883
847
|
export declare const runningAppsStore: RunningAppsStore;
|
|
884
848
|
|
|
885
|
-
/**
|
|
886
|
-
* Push a browser history entry for the app.
|
|
887
|
-
* This enables the browser back button to close/navigate apps.
|
|
888
|
-
*/
|
|
889
|
-
export declare function setAppInUrl(appId: string): void;
|
|
890
|
-
|
|
891
849
|
export declare function Slider({ value, onChange, min, max, step, label, disabled, showValue, formatValue, width, }: SliderProps): JSX_2.Element;
|
|
892
850
|
|
|
893
851
|
export declare interface SliderProps {
|