@gamecrafters/base-ui 0.0.18 → 0.0.20
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/build/components/floating-panel/FloatingPanel.d.ts +7 -0
- package/build/components/floating-panel/FloatingPanel.types.d.ts +100 -0
- package/build/components/floating-panel/FloatingPanelBody.d.ts +7 -0
- package/build/components/floating-panel/FloatingPanelCloseTrigger.d.ts +5 -0
- package/build/components/floating-panel/FloatingPanelContent.d.ts +7 -0
- package/build/components/floating-panel/FloatingPanelContext.d.ts +3 -0
- package/build/components/floating-panel/FloatingPanelControl.d.ts +7 -0
- package/build/components/floating-panel/FloatingPanelDragTrigger.d.ts +7 -0
- package/build/components/floating-panel/FloatingPanelHeader.d.ts +7 -0
- package/build/components/floating-panel/FloatingPanelPositioner.d.ts +7 -0
- package/build/components/floating-panel/FloatingPanelResizeTrigger.d.ts +7 -0
- package/build/components/floating-panel/FloatingPanelStageTrigger.d.ts +7 -0
- package/build/components/floating-panel/FloatingPanelTitle.d.ts +7 -0
- package/build/components/floating-panel/FloatingPanelTrigger.d.ts +5 -0
- package/build/components/floating-panel/floatingPanelRect.d.ts +23 -0
- package/build/components/floating-panel/index.d.ts +67 -0
- package/build/components/format-byte/FormatByte.d.ts +10 -0
- package/build/components/format-byte/FormatByte.types.d.ts +11 -0
- package/build/components/format-byte/index.d.ts +2 -0
- package/build/components/format-number/FormatNumber.d.ts +10 -0
- package/build/components/format-number/FormatNumber.types.d.ts +10 -0
- package/build/components/format-number/index.d.ts +2 -0
- package/build/components/frame/Frame.d.ts +9 -0
- package/build/components/frame/Frame.types.d.ts +12 -0
- package/build/components/frame/FrameContent.d.ts +7 -0
- package/build/components/frame/index.d.ts +2 -0
- package/build/components/index.d.ts +4 -0
- package/build/main.cjs.js +71 -71
- package/build/main.esm.js +68 -68
- package/build/providers/index.d.ts +1 -0
- package/build/providers/locale/Locale.types.d.ts +22 -0
- package/build/providers/locale/LocaleContext.d.ts +4 -0
- package/build/providers/locale/LocaleProvider.d.ts +8 -0
- package/build/providers/locale/index.d.ts +8 -0
- package/build/providers/locale/useCollator.d.ts +2 -0
- package/build/providers/locale/useDateFormatter.d.ts +2 -0
- package/build/providers/locale/useFilter.d.ts +2 -0
- package/build/providers/locale/useLocaleContext.d.ts +1 -0
- package/build/providers/locale/useNumberFormatter.d.ts +2 -0
- package/build/styles/main.css +1 -1
- package/build/utilities/i18n.d.ts +26 -0
- package/package.json +1 -1
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
className?: string;
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
};
|
|
9
|
+
export type LocaleContextValue = {
|
|
10
|
+
locale: string;
|
|
11
|
+
direction: TextDirection;
|
|
12
|
+
};
|
|
13
|
+
export type UseCollatorProps = Intl.CollatorOptions & {
|
|
14
|
+
locale?: string;
|
|
15
|
+
};
|
|
16
|
+
export type UseFilterProps = FilterOptions;
|
|
17
|
+
export type UseDateFormatterProps = Intl.DateTimeFormatOptions & {
|
|
18
|
+
locale?: string;
|
|
19
|
+
};
|
|
20
|
+
export type UseNumberFormatterProps = Intl.NumberFormatOptions & {
|
|
21
|
+
locale?: string;
|
|
22
|
+
};
|
|
@@ -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, ...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 @@
|
|
|
1
|
+
export declare const useLocaleContext: () => import("./Locale.types").LocaleContextValue;
|