@nice2dev/ui-mobile 1.2.2 → 1.3.1

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.ts CHANGED
@@ -2,6 +2,10 @@ import { ButtonHTMLAttributes } from 'react';
2
2
  import { CSSProperties } from 'react';
3
3
  import { default as default_2 } from 'react';
4
4
  import { HTMLAttributes } from 'react';
5
+ import { NiceKeyboardKey } from '@nice2dev/ui-core';
6
+ import { NiceKeyboardLanguage } from '@nice2dev/ui-core';
7
+ import { NiceKeyboardLanguageLayout } from '@nice2dev/ui-core';
8
+ import { NiceKeyboardMode } from '@nice2dev/ui-core';
5
9
  import { PointerEvent as PointerEvent_2 } from 'react';
6
10
  import { ReactNode } from 'react';
7
11
 
@@ -424,22 +428,18 @@ export declare function isTouch(): boolean;
424
428
  export declare function isVibrationSupported(): boolean;
425
429
 
426
430
  /** Supported language codes */
427
- export declare type KeyboardLanguage = 'en' | 'pl' | 'de' | 'fr' | 'es' | 'it' | 'pt' | 'ru' | 'uk' | 'cs' | 'tr' | 'nl' | 'sv' | 'no' | 'da' | 'fi' | 'ro' | 'hr' | 'el' | 'hu' | 'sk' | 'bg' | 'sr' | 'ja' | 'ko' | 'zh' | 'ar' | 'he';
431
+ export declare type KeyboardLanguage = NiceKeyboardLanguage;
428
432
 
429
433
  export declare type KeyboardLayout = 'qwerty' | 'numeric' | 'numpad' | 'phone' | 'pin' | 'custom';
430
434
 
431
435
  /** Display mode — from minimal (numbers-only) to full (QWERTY + number row + symbols + fn row) */
432
- export declare type KeyboardMode = 'minimal' | 'compact' | 'standard' | 'full';
436
+ export declare type KeyboardMode = NiceKeyboardMode;
433
437
 
434
438
  declare type KeyboardRow = KeyDefinition[];
435
439
 
436
440
  export declare type KeyboardTheme = 'light' | 'dark' | 'system';
437
441
 
438
- export declare interface KeyDefinition {
439
- value: string;
440
- label?: string;
441
- width?: number;
442
- type?: 'char' | 'space' | 'backspace' | 'enter' | 'shift' | 'special' | 'fn' | 'tab' | 'caps' | 'lang';
442
+ export declare interface KeyDefinition extends NiceKeyboardKey {
443
443
  icon?: default_2.ReactNode;
444
444
  }
445
445
 
@@ -449,15 +449,7 @@ export declare interface KeyDefinition {
449
449
  declare type LabelDisplay = 'auto' | 'on' | 'off';
450
450
 
451
451
  /** Language layout definition */
452
- export declare interface LanguageLayout {
453
- code: KeyboardLanguage;
454
- name: string;
455
- nativeName: string;
456
- /** Main letter rows (3 rows for QWERTY-like) */
457
- rows: [string[], string[], string[]];
458
- /** Extra chars available via long-press or special layer */
459
- accents?: Record<string, string[]>;
460
- }
452
+ export declare type LanguageLayout = NiceKeyboardLanguageLayout;
461
453
 
462
454
  /**
463
455
  * Line cap style