@gamecrafters/base-ui 0.0.18 → 0.0.19

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 (42) hide show
  1. package/build/components/floating-panel/FloatingPanel.d.ts +7 -0
  2. package/build/components/floating-panel/FloatingPanel.types.d.ts +100 -0
  3. package/build/components/floating-panel/FloatingPanelBody.d.ts +7 -0
  4. package/build/components/floating-panel/FloatingPanelCloseTrigger.d.ts +5 -0
  5. package/build/components/floating-panel/FloatingPanelContent.d.ts +7 -0
  6. package/build/components/floating-panel/FloatingPanelContext.d.ts +3 -0
  7. package/build/components/floating-panel/FloatingPanelControl.d.ts +7 -0
  8. package/build/components/floating-panel/FloatingPanelDragTrigger.d.ts +7 -0
  9. package/build/components/floating-panel/FloatingPanelHeader.d.ts +7 -0
  10. package/build/components/floating-panel/FloatingPanelPositioner.d.ts +7 -0
  11. package/build/components/floating-panel/FloatingPanelResizeTrigger.d.ts +7 -0
  12. package/build/components/floating-panel/FloatingPanelStageTrigger.d.ts +7 -0
  13. package/build/components/floating-panel/FloatingPanelTitle.d.ts +7 -0
  14. package/build/components/floating-panel/FloatingPanelTrigger.d.ts +5 -0
  15. package/build/components/floating-panel/floatingPanelRect.d.ts +23 -0
  16. package/build/components/floating-panel/index.d.ts +67 -0
  17. package/build/components/format-byte/FormatByte.d.ts +10 -0
  18. package/build/components/format-byte/FormatByte.types.d.ts +11 -0
  19. package/build/components/format-byte/index.d.ts +2 -0
  20. package/build/components/format-number/FormatNumber.d.ts +10 -0
  21. package/build/components/format-number/FormatNumber.types.d.ts +10 -0
  22. package/build/components/format-number/index.d.ts +2 -0
  23. package/build/components/frame/Frame.d.ts +9 -0
  24. package/build/components/frame/Frame.types.d.ts +12 -0
  25. package/build/components/frame/FrameContent.d.ts +7 -0
  26. package/build/components/frame/index.d.ts +2 -0
  27. package/build/components/index.d.ts +4 -0
  28. package/build/main.cjs.js +71 -71
  29. package/build/main.esm.js +68 -68
  30. package/build/providers/index.d.ts +1 -0
  31. package/build/providers/locale/Locale.types.d.ts +23 -0
  32. package/build/providers/locale/LocaleContext.d.ts +4 -0
  33. package/build/providers/locale/LocaleProvider.d.ts +8 -0
  34. package/build/providers/locale/index.d.ts +8 -0
  35. package/build/providers/locale/useCollator.d.ts +2 -0
  36. package/build/providers/locale/useDateFormatter.d.ts +2 -0
  37. package/build/providers/locale/useFilter.d.ts +2 -0
  38. package/build/providers/locale/useLocaleContext.d.ts +1 -0
  39. package/build/providers/locale/useNumberFormatter.d.ts +2 -0
  40. package/build/styles/main.css +1 -1
  41. package/build/utilities/i18n.d.ts +26 -0
  42. package/package.json +1 -1
@@ -0,0 +1,26 @@
1
+ import type { TextDirection } from "../providers/direction/Direction.types";
2
+ export declare const DEFAULT_LOCALE = "en-US";
3
+ export declare const isRtl: (locale: string) => boolean;
4
+ export declare const getLocaleDirection: (locale: string) => TextDirection;
5
+ export declare const getDefaultLocale: () => string;
6
+ export declare const createCollator: (locale?: string, options?: Intl.CollatorOptions) => Intl.Collator;
7
+ export type FilterOptions = Intl.CollatorOptions & {
8
+ locale?: string;
9
+ };
10
+ export type Filter = {
11
+ startsWith: (text: string, term: string) => boolean;
12
+ endsWith: (text: string, term: string) => boolean;
13
+ contains: (text: string, term: string) => boolean;
14
+ };
15
+ export declare const createFilter: ({ locale, ...options }?: FilterOptions) => Filter;
16
+ export declare const createNumberFormatter: (locale?: string, options?: Intl.NumberFormatOptions) => Intl.NumberFormat;
17
+ export declare const formatNumber: (value: number, locale?: string, options?: Intl.NumberFormatOptions) => string;
18
+ export declare const formatList: (list: string[], locale?: string, options?: Intl.ListFormatOptions) => string;
19
+ export declare const createDateFormatter: (locale?: string, options?: Intl.DateTimeFormatOptions) => Intl.DateTimeFormat;
20
+ export type FormatBytesOptions = {
21
+ precision?: number;
22
+ unitSystem?: "binary" | "decimal";
23
+ unit?: "bit" | "byte";
24
+ unitDisplay?: "long" | "short" | "narrow";
25
+ };
26
+ export declare const formatBytes: (bytes: number, locale?: string, options?: FormatBytesOptions) => string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gamecrafters/base-ui",
3
- "version": "0.0.18",
3
+ "version": "0.0.19",
4
4
  "description": "An implementation of GameCrafters' Base UI Design System using React.",
5
5
  "main": "build/main.cjs.js",
6
6
  "module": "build/main.esm.js",