@tempots/beatui 0.15.0 → 0.16.0

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 (31) hide show
  1. package/dist/{ar-C__uXRig.js → ar-C7sFBvd3.js} +4 -1
  2. package/dist/beatui.css +1 -1
  3. package/dist/{de-CaqDmb7M.js → de-g1A7pWNb.js} +4 -1
  4. package/dist/{es-D2MgpsFw.js → es-VVHXE2N_.js} +4 -1
  5. package/dist/{fa-7Lh__M6_.js → fa-CJNIz_z3.js} +4 -1
  6. package/dist/{fr-BFb9eub-.js → fr-CV72Obmu.js} +4 -1
  7. package/dist/{he-DCxEMw1h.js → he-B7FDQHq5.js} +4 -1
  8. package/dist/{hi-Bbnlpps9.js → hi-BCajgsBt.js} +4 -1
  9. package/dist/index.es.js +1701 -1482
  10. package/dist/index.umd.js +17 -17
  11. package/dist/{it-CWTDpmhc.js → it-BeJHf7Ur.js} +4 -1
  12. package/dist/{ja-C1Nynl79.js → ja-D5YyTu5k.js} +4 -1
  13. package/dist/{ko-BnQv3_8f.js → ko-DNqvHWiZ.js} +4 -1
  14. package/dist/{nl-CH2009II.js → nl-Cdbu51NB.js} +4 -1
  15. package/dist/{pl-Cd4dZDyG.js → pl-Bru8UPLn.js} +7 -4
  16. package/dist/{pt-CZER9j0r.js → pt-LCfmUFgc.js} +4 -1
  17. package/dist/{ru-CCEGJYwF.js → ru-D7gTuXxP.js} +4 -1
  18. package/dist/{tr-BVIGQcgy.js → tr-DlFekEUg.js} +4 -1
  19. package/dist/types/beatui-i18n/default.d.ts +2 -0
  20. package/dist/types/beatui-i18n/locales/en.d.ts +2 -0
  21. package/dist/types/beatui-i18n/translations.d.ts +2 -0
  22. package/dist/types/components/data/index.d.ts +1 -0
  23. package/dist/types/components/data/unstyled-drop-zone.d.ts +12 -0
  24. package/dist/types/components/form/control/file-control.d.ts +11 -0
  25. package/dist/types/components/form/control/index.d.ts +1 -0
  26. package/dist/types/components/form/input/file-input.d.ts +11 -0
  27. package/dist/types/components/form/input/index.d.ts +1 -0
  28. package/dist/{ur-BVAP8WLA.js → ur-mIO25A6L.js} +4 -1
  29. package/dist/{vi-Dv4aIcRH.js → vi-Dw_DDZWP.js} +4 -1
  30. package/dist/{zh-BcAbijvs.js → zh-Dojj6P4C.js} +4 -1
  31. package/package.json +1 -1
@@ -39,7 +39,10 @@ const a = {
39
39
  fa: () => "Persiano",
40
40
  ur: () => "Urdu",
41
41
  // input
42
- emailPlaceholderText: () => "Inserisci la tua email"
42
+ emailPlaceholderText: () => "Inserisci la tua email",
43
+ // drop zone
44
+ dropZoneInstructions: () => "Trascina e rilascia i file qui",
45
+ dropZoneInstructionsWithClick: () => "Trascina e rilascia i file qui, o premi Invio o Spazio per aprire il selettore file"
43
46
  };
44
47
  export {
45
48
  a as default
@@ -39,7 +39,10 @@ const e = {
39
39
  fa: () => "ペルシア語",
40
40
  ur: () => "ウルドゥー語",
41
41
  // input
42
- emailPlaceholderText: () => "メールアドレスを入力"
42
+ emailPlaceholderText: () => "メールアドレスを入力",
43
+ // drop zone
44
+ dropZoneInstructions: () => "ファイルをここにドラッグ&ドロップ",
45
+ dropZoneInstructionsWithClick: () => "ファイルをここにドラッグ&ドロップ、またはEnterキーまたはSpaceキーを押してファイル選択を開く"
43
46
  };
44
47
  export {
45
48
  e as default,
@@ -39,7 +39,10 @@ const e = {
39
39
  fa: () => "페르시아어",
40
40
  ur: () => "우르두어",
41
41
  // input
42
- emailPlaceholderText: () => "이메일을 입력하세요"
42
+ emailPlaceholderText: () => "이메일을 입력하세요",
43
+ // drop zone
44
+ dropZoneInstructions: () => "파일을 여기에 드래그 앤 드롭하세요",
45
+ dropZoneInstructionsWithClick: () => "파일을 여기에 드래그 앤 드롭하거나, Enter 또는 Space 키를 눌러 파일 선택기를 여세요"
43
46
  };
44
47
  export {
45
48
  e as default
@@ -39,7 +39,10 @@ const e = {
39
39
  fa: () => "Perzisch",
40
40
  ur: () => "Urdu",
41
41
  // input
42
- emailPlaceholderText: () => "Voer je e-mail in"
42
+ emailPlaceholderText: () => "Voer je e-mail in",
43
+ // drop zone
44
+ dropZoneInstructions: () => "Sleep bestanden hierheen",
45
+ dropZoneInstructionsWithClick: () => "Sleep bestanden hierheen, of druk op Enter of Spatie om bestandskiezer te openen"
43
46
  };
44
47
  export {
45
48
  e as default,
@@ -1,4 +1,4 @@
1
- const a = {
1
+ const i = {
2
2
  loadingExtended: () => "Ładowanie, proszę czekać",
3
3
  loadingShort: () => "Ładowanie...",
4
4
  locale: () => "Język",
@@ -39,9 +39,12 @@ const a = {
39
39
  fa: () => "Perski",
40
40
  ur: () => "Urdu",
41
41
  // input
42
- emailPlaceholderText: () => "Wprowadź adres e-mail"
42
+ emailPlaceholderText: () => "Wprowadź adres e-mail",
43
+ // drop zone
44
+ dropZoneInstructions: () => "Przeciągnij i upuść pliki tutaj",
45
+ dropZoneInstructionsWithClick: () => "Przeciągnij i upuść pliki tutaj, lub naciśnij Enter lub Spację, aby otworzyć selektor plików"
43
46
  };
44
47
  export {
45
- a as default,
46
- a as pl
48
+ i as default,
49
+ i as pl
47
50
  };
@@ -39,7 +39,10 @@ const a = {
39
39
  fa: () => "Persa",
40
40
  ur: () => "Urdu",
41
41
  // input
42
- emailPlaceholderText: () => "Digite seu e-mail"
42
+ emailPlaceholderText: () => "Digite seu e-mail",
43
+ // drop zone
44
+ dropZoneInstructions: () => "Arraste e solte arquivos aqui",
45
+ dropZoneInstructionsWithClick: () => "Arraste e solte arquivos aqui, ou pressione Enter ou Espaço para abrir o seletor de arquivos"
43
46
  };
44
47
  export {
45
48
  a as default
@@ -39,7 +39,10 @@ const e = {
39
39
  fa: () => "Персидский",
40
40
  ur: () => "Урду",
41
41
  // input
42
- emailPlaceholderText: () => "Введите электронную почту"
42
+ emailPlaceholderText: () => "Введите электронную почту",
43
+ // drop zone
44
+ dropZoneInstructions: () => "Перетащите файлы сюда",
45
+ dropZoneInstructionsWithClick: () => "Перетащите файлы сюда, или нажмите Enter или Пробел, чтобы открыть выбор файлов"
43
46
  };
44
47
  export {
45
48
  e as default,
@@ -39,7 +39,10 @@ const e = {
39
39
  fa: () => "Farsça",
40
40
  ur: () => "Urduca",
41
41
  // input
42
- emailPlaceholderText: () => "E-postanızı girin"
42
+ emailPlaceholderText: () => "E-postanızı girin",
43
+ // drop zone
44
+ dropZoneInstructions: () => "Dosyaları buraya sürükleyip bırakın",
45
+ dropZoneInstructionsWithClick: () => "Dosyaları buraya sürükleyip bırakın, veya dosya seçiciyi açmak için Enter veya Boşluk tuşuna basın"
43
46
  };
44
47
  export {
45
48
  e as default
@@ -38,6 +38,8 @@ export declare const defaultMessages: {
38
38
  fa: () => string;
39
39
  ur: () => string;
40
40
  emailPlaceholderText: () => string;
41
+ dropZoneInstructions: () => string;
42
+ dropZoneInstructionsWithClick: () => string;
41
43
  };
42
44
  export declare const defaultLocale = "en";
43
45
  export type BeatUIMessages = typeof defaultMessages;
@@ -38,5 +38,7 @@ declare const en: {
38
38
  fa: () => string;
39
39
  ur: () => string;
40
40
  emailPlaceholderText: () => string;
41
+ dropZoneInstructions: () => string;
42
+ dropZoneInstructionsWithClick: () => string;
41
43
  };
42
44
  export default en;
@@ -38,4 +38,6 @@ export declare const BeatUII18n: import("@tempots/dom").Provider<import("..").Re
38
38
  fa: () => string;
39
39
  ur: () => string;
40
40
  emailPlaceholderText: () => string;
41
+ dropZoneInstructions: () => string;
42
+ dropZoneInstructionsWithClick: () => string;
41
43
  }>, object>;
@@ -1,2 +1,3 @@
1
1
  export * from './icon';
2
2
  export * from './tag';
3
+ export * from './unstyled-drop-zone';
@@ -0,0 +1,12 @@
1
+ import { TNode, Value, Signal } from '@tempots/dom';
2
+ export type DropZoneOptions = {
3
+ onDrop: (files: File[]) => void;
4
+ accept?: Value<string>;
5
+ enableClick?: Value<boolean>;
6
+ content: (options: {
7
+ files: Signal<File[]>;
8
+ clear: () => void;
9
+ }) => TNode;
10
+ allowMultiple?: Value<boolean>;
11
+ };
12
+ export declare function UnstyledDropZone({ onDrop, accept, enableClick, content, allowMultiple, }: DropZoneOptions): import("@tempots/dom").Renderable;
@@ -0,0 +1,11 @@
1
+ import { TNode, Value } from '@tempots/dom';
2
+ import { ControlOptions } from './control-options';
3
+ import { Merge } from '@tempots/std';
4
+ export type FileControlOptions = Merge<ControlOptions<File[]>, {
5
+ accept?: Value<string>;
6
+ allowMultiple?: Value<boolean>;
7
+ maxFiles?: Value<number>;
8
+ maxFileSize?: Value<number>;
9
+ showFileList?: Value<boolean>;
10
+ }>;
11
+ export declare const FileControl: (options: FileControlOptions, ...children: TNode[]) => import("@tempots/dom").Renderable;
@@ -4,6 +4,7 @@ export * from './control-options';
4
4
  export * from './date-control';
5
5
  export * from './date-time-control';
6
6
  export * from './email-control';
7
+ export * from './file-control';
7
8
  export * from './form-status';
8
9
  export * from './lazy-native-select-control';
9
10
  export * from './native-select-control';
@@ -0,0 +1,11 @@
1
+ import { Value } from '@tempots/dom';
2
+ import { InputOptions } from './input-options';
3
+ import { Merge } from '@tempots/std';
4
+ export type FileInputOptions = Merge<InputOptions<File[]>, {
5
+ accept?: Value<string>;
6
+ allowMultiple?: Value<boolean>;
7
+ maxFiles?: Value<number>;
8
+ maxFileSize?: Value<number>;
9
+ showFileList?: Value<boolean>;
10
+ }>;
11
+ export declare const FileInput: (options: FileInputOptions) => import("@tempots/dom").Renderable;
@@ -6,6 +6,7 @@ export * from './date-input';
6
6
  export * from './date-time-input';
7
7
  export * from './editable-text';
8
8
  export * from './email-input';
9
+ export * from './file-input';
9
10
  export * from './input-container';
10
11
  export * from './input-options';
11
12
  export * from './input-wrapper';
@@ -39,7 +39,10 @@ const e = {
39
39
  fa: () => "فارسی",
40
40
  ur: () => "اردو",
41
41
  // input
42
- emailPlaceholderText: () => "اپنا ای میل داخل کریں"
42
+ emailPlaceholderText: () => "اپنا ای میل داخل کریں",
43
+ // drop zone
44
+ dropZoneInstructions: () => "فائلوں کو یہاں گھسیٹ کر چھوڑیں",
45
+ dropZoneInstructionsWithClick: () => "فائلوں کو یہاں گھسیٹ کر چھوڑیں، یا فائل منتخب کرنے کے لیے Enter یا Space دبائیں"
43
46
  };
44
47
  export {
45
48
  e as default
@@ -39,7 +39,10 @@ const n = {
39
39
  fa: () => "Tiếng Ba Tư",
40
40
  ur: () => "Tiếng Urdu",
41
41
  // input
42
- emailPlaceholderText: () => "Nhập email của bạn"
42
+ emailPlaceholderText: () => "Nhập email của bạn",
43
+ // drop zone
44
+ dropZoneInstructions: () => "Kéo và thả tệp vào đây",
45
+ dropZoneInstructionsWithClick: () => "Kéo và thả tệp vào đây, hoặc nhấn Enter hoặc Space để mở trình chọn tệp"
43
46
  };
44
47
  export {
45
48
  n as default
@@ -39,7 +39,10 @@ const e = {
39
39
  fa: () => "波斯语",
40
40
  ur: () => "乌尔都语",
41
41
  // input
42
- emailPlaceholderText: () => "请输入邮箱"
42
+ emailPlaceholderText: () => "请输入邮箱",
43
+ // drop zone
44
+ dropZoneInstructions: () => "将文件拖拽到此处",
45
+ dropZoneInstructionsWithClick: () => "将文件拖拽到此处,或按 Enter 或空格键打开文件选择器"
43
46
  };
44
47
  export {
45
48
  e as default
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tempots/beatui",
3
- "version": "0.15.0",
3
+ "version": "0.16.0",
4
4
  "type": "module",
5
5
  "main": "dist/index.umd.js",
6
6
  "module": "dist/index.es.js",