@firecms/ui 3.0.0-canary.40 → 3.0.0-canary.41

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 (36) hide show
  1. package/dist/components/CenteredView.d.ts +4 -2
  2. package/dist/components/TextareaAutosize.d.ts +4 -2
  3. package/dist/hooks/index.d.ts +4 -0
  4. package/dist/hooks/useLocaleConfig.d.ts +1 -0
  5. package/dist/index.d.ts +1 -0
  6. package/dist/index.es.js +7254 -7242
  7. package/dist/index.es.js.map +1 -1
  8. package/dist/index.umd.js +10 -10
  9. package/dist/index.umd.js.map +1 -1
  10. package/dist/util/index.d.ts +0 -2
  11. package/package.json +4 -2
  12. package/src/components/Autocomplete.tsx +2 -1
  13. package/src/components/Button.tsx +1 -1
  14. package/src/components/CenteredView.tsx +24 -14
  15. package/src/components/Collapse.tsx +2 -1
  16. package/src/components/DateTimeField.tsx +2 -1
  17. package/src/components/ExpandablePanel.tsx +2 -1
  18. package/src/components/FileUpload.tsx +1 -1
  19. package/src/components/InputLabel.tsx +6 -6
  20. package/src/components/Label.tsx +1 -1
  21. package/src/components/MultiSelect.tsx +2 -1
  22. package/src/components/Popover.tsx +2 -1
  23. package/src/components/SearchBar.tsx +1 -1
  24. package/src/components/TextareaAutosize.tsx +1 -1
  25. package/src/components/Tooltip.tsx +2 -1
  26. package/src/components/Typography.tsx +1 -1
  27. package/src/hooks/index.ts +4 -0
  28. package/src/hooks/useLocaleConfig.tsx +18 -0
  29. package/src/index.ts +1 -0
  30. package/src/util/index.ts +0 -2
  31. /package/dist/{util → hooks}/useDebounceValue.d.ts +0 -0
  32. /package/dist/{util → hooks}/useInjectStyles.d.ts +0 -0
  33. /package/dist/{util → hooks}/useOutsideAlerter.d.ts +0 -0
  34. /package/src/{util → hooks}/useDebounceValue.tsx +0 -0
  35. /package/src/{util → hooks}/useInjectStyles.tsx +0 -0
  36. /package/src/{util → hooks}/useOutsideAlerter.tsx +0 -0
@@ -1,7 +1,9 @@
1
1
  import React from "react";
2
- export declare function CenteredView({ children, maxWidth, className, fullScreen }: {
2
+ export type CenteredViewProps = {
3
3
  children: React.ReactNode;
4
4
  maxWidth?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl";
5
+ outerClassName?: string;
5
6
  className?: string;
6
7
  fullScreen?: boolean;
7
- }): import("react/jsx-runtime").JSX.Element;
8
+ };
9
+ export declare const CenteredView: React.ForwardRefExoticComponent<CenteredViewProps & React.RefAttributes<HTMLDivElement>>;
@@ -3,7 +3,7 @@ type State = {
3
3
  outerHeightStyle: number;
4
4
  overflow?: boolean | undefined;
5
5
  };
6
- export declare const TextareaAutosize: React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLTextAreaElement>, "onResize"> & {
6
+ export declare const TextareaAutosize: React.FC<Omit<React.InputHTMLAttributes<HTMLTextAreaElement>, "onResize"> & {
7
7
  className?: string | undefined;
8
8
  shadowClassName?: string | undefined;
9
9
  /**
@@ -36,7 +36,9 @@ export declare const TextareaAutosize: React.ForwardRefExoticComponent<Omit<Reac
36
36
  onResize?: ((state: State) => void) | undefined;
37
37
  autoFocus?: boolean | undefined;
38
38
  ignoreBoxSizing?: boolean | undefined;
39
- } & React.RefAttributes<Element>>;
39
+ } & {
40
+ ref?: React.ForwardedRef<Element> | undefined;
41
+ }>;
40
42
  export type TextareaAutosizeProps = Omit<React.InputHTMLAttributes<HTMLTextAreaElement>, "onResize"> & {
41
43
  className?: string;
42
44
  shadowClassName?: string;
@@ -0,0 +1,4 @@
1
+ export * from "./useLocaleConfig";
2
+ export * from "./useInjectStyles";
3
+ export * from "./useOutsideAlerter";
4
+ export * from "./useDebounceValue";
@@ -0,0 +1 @@
1
+ export declare function useLocaleConfig(locale?: string): void;
package/dist/index.d.ts CHANGED
@@ -2,3 +2,4 @@ export * from "./components";
2
2
  export * from "./styles";
3
3
  export * from "./util";
4
4
  export * from "./icons";
5
+ export * from "./hooks";