@kingsimba/nc-ui 0.1.25 → 0.1.27
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/YamlTextArea-Cn98kXG6.cjs +101 -0
- package/dist/YamlTextArea-Cn98kXG6.cjs.map +1 -0
- package/dist/YamlTextArea-ee1d1TLc.js +4713 -0
- package/dist/YamlTextArea-ee1d1TLc.js.map +1 -0
- package/dist/index.cjs +6 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +43 -1
- package/dist/index.js +657 -641
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/yaml.cjs +1 -96
- package/dist/yaml.cjs.map +1 -1
- package/dist/yaml.d.ts +6 -2
- package/dist/yaml.js +5 -4629
- package/dist/yaml.js.map +1 -1
- package/package.json +1 -1
- package/dist/clsx-C11secjj.cjs +0 -2
- package/dist/clsx-C11secjj.cjs.map +0 -1
- package/dist/clsx-OuTLNxxd.js +0 -17
- package/dist/clsx-OuTLNxxd.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -235,7 +235,27 @@ export declare const appStateStore: AppStateStore;
|
|
|
235
235
|
* Displays pinned app icons that are always visible, plus any running non-pinned apps.
|
|
236
236
|
* Clicking an icon launches the app or toggles its active state if already running.
|
|
237
237
|
*/
|
|
238
|
-
export declare function AppTaskbar({ pinnedAppIds, className, showIndicators, }: AppTaskbarProps): JSX_2.Element;
|
|
238
|
+
export declare function AppTaskbar({ pinnedAppIds, className, showIndicators, side, getBadge, }: AppTaskbarProps): JSX_2.Element;
|
|
239
|
+
|
|
240
|
+
export declare interface AppTaskbarBadge {
|
|
241
|
+
/** Content displayed inside the badge, such as a count or short label */
|
|
242
|
+
content: ReactNode;
|
|
243
|
+
/** Visual tone of the badge */
|
|
244
|
+
tone?: AppTaskbarBadgeTone;
|
|
245
|
+
/** Accessible label for assistive technology */
|
|
246
|
+
ariaLabel?: string;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
export declare type AppTaskbarBadgeTone = 'default' | 'primary' | 'success' | 'warning' | 'danger';
|
|
250
|
+
|
|
251
|
+
export declare interface AppTaskbarItemState {
|
|
252
|
+
/** Whether the app is currently the active app */
|
|
253
|
+
isActive: boolean;
|
|
254
|
+
/** Whether the app is currently running */
|
|
255
|
+
isRunning: boolean;
|
|
256
|
+
/** Whether the app is from pinnedAppIds */
|
|
257
|
+
isPinned: boolean;
|
|
258
|
+
}
|
|
239
259
|
|
|
240
260
|
export declare interface AppTaskbarProps {
|
|
241
261
|
/** Array of app IDs to pin to the taskbar (always visible) */
|
|
@@ -244,8 +264,14 @@ export declare interface AppTaskbarProps {
|
|
|
244
264
|
className?: string;
|
|
245
265
|
/** Whether to show the running and active indicator beneath app icons */
|
|
246
266
|
showIndicators?: boolean;
|
|
267
|
+
/** Desktop placement side. Mobile always renders the taskbar at the bottom. */
|
|
268
|
+
side?: AppTaskbarSide;
|
|
269
|
+
/** Optional badge resolver for app icons, useful for alerts or counts. */
|
|
270
|
+
getBadge?: (app: AppDefinition, state: AppTaskbarItemState) => AppTaskbarBadge | null | undefined;
|
|
247
271
|
}
|
|
248
272
|
|
|
273
|
+
export declare type AppTaskbarSide = 'left' | 'right';
|
|
274
|
+
|
|
249
275
|
/**
|
|
250
276
|
* Title bar component for launched applications.
|
|
251
277
|
* Displays the app title, optional back button, optional toolbar, and a close button.
|
|
@@ -1132,4 +1158,20 @@ export declare function ViewportProvider({ children }: {
|
|
|
1132
1158
|
children: ReactNode;
|
|
1133
1159
|
}): JSX_2.Element;
|
|
1134
1160
|
|
|
1161
|
+
export declare function YamlTextArea({ value, onChange, onValidationChange, readOnly, minHeight, maxHeight, debounceMs, className, style, language, }: YamlTextAreaProps): JSX_2.Element;
|
|
1162
|
+
|
|
1163
|
+
export declare interface YamlTextAreaProps {
|
|
1164
|
+
value: string;
|
|
1165
|
+
onChange: (value: string) => void;
|
|
1166
|
+
onValidationChange?: (isValid: boolean, error?: string) => void;
|
|
1167
|
+
readOnly?: boolean;
|
|
1168
|
+
minHeight?: number;
|
|
1169
|
+
maxHeight?: number;
|
|
1170
|
+
debounceMs?: number;
|
|
1171
|
+
className?: string;
|
|
1172
|
+
style?: default_2.CSSProperties;
|
|
1173
|
+
/** Language for syntax highlighting and validation. Default: 'yaml'. */
|
|
1174
|
+
language?: 'yaml' | 'json';
|
|
1175
|
+
}
|
|
1176
|
+
|
|
1135
1177
|
export { }
|