@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
@@ -1,3 +1,4 @@
1
1
  export * from "./direction";
2
+ export * from "./locale";
2
3
  export * from "./overflow-observer";
3
4
  export * from "./theme";
@@ -0,0 +1,23 @@
1
+ import type * as React from "react";
2
+ import type { FilterOptions } from "../../utilities/i18n";
3
+ import type { TextDirection } from "../direction/Direction.types";
4
+ export type LocaleProviderProps = {
5
+ locale?: string;
6
+ contextOnly?: boolean;
7
+ className?: string;
8
+ children?: React.ReactNode;
9
+ };
10
+ export type LocaleContextValue = {
11
+ locale: string;
12
+ direction: TextDirection;
13
+ };
14
+ export type UseCollatorProps = Intl.CollatorOptions & {
15
+ locale?: string;
16
+ };
17
+ export type UseFilterProps = FilterOptions;
18
+ export type UseDateFormatterProps = Intl.DateTimeFormatOptions & {
19
+ locale?: string;
20
+ };
21
+ export type UseNumberFormatterProps = Intl.NumberFormatOptions & {
22
+ locale?: string;
23
+ };
@@ -0,0 +1,4 @@
1
+ import { DEFAULT_LOCALE } from "../../utilities/i18n";
2
+ import type { LocaleContextValue } from "./Locale.types";
3
+ export { DEFAULT_LOCALE };
4
+ export declare const LocaleContext: import("react").Context<LocaleContextValue>;
@@ -0,0 +1,8 @@
1
+ import * as React from "react";
2
+ import type { LocaleProviderProps } from "./Locale.types";
3
+ export declare const AUTO_LOCALE = "auto";
4
+ declare function LocaleProvider({ children, className, contextOnly, ...props }: LocaleProviderProps): React.JSX.Element;
5
+ declare namespace LocaleProvider {
6
+ var displayName: string;
7
+ }
8
+ export default LocaleProvider;
@@ -0,0 +1,8 @@
1
+ export { default as LocaleProvider, AUTO_LOCALE } from "./LocaleProvider";
2
+ export { LocaleContext, DEFAULT_LOCALE } from "./LocaleContext";
3
+ export { useLocaleContext } from "./useLocaleContext";
4
+ export { useCollator } from "./useCollator";
5
+ export { useDateFormatter } from "./useDateFormatter";
6
+ export { useFilter } from "./useFilter";
7
+ export { useNumberFormatter } from "./useNumberFormatter";
8
+ export * from "./Locale.types";
@@ -0,0 +1,2 @@
1
+ import type { UseCollatorProps } from "./Locale.types";
2
+ export declare const useCollator: ({ locale, ...options }?: UseCollatorProps) => Intl.Collator;
@@ -0,0 +1,2 @@
1
+ import type { UseDateFormatterProps } from "./Locale.types";
2
+ export declare const useDateFormatter: ({ locale, ...options }?: UseDateFormatterProps) => Intl.DateTimeFormat;
@@ -0,0 +1,2 @@
1
+ import type { UseFilterProps } from "./Locale.types";
2
+ export declare const useFilter: ({ locale, ...options }?: UseFilterProps) => import("../../utilities/i18n").Filter;
@@ -0,0 +1 @@
1
+ export declare const useLocaleContext: () => import("./Locale.types").LocaleContextValue;
@@ -0,0 +1,2 @@
1
+ import type { UseNumberFormatterProps } from "./Locale.types";
2
+ export declare const useNumberFormatter: ({ locale, ...options }?: UseNumberFormatterProps) => Intl.NumberFormat;