@firecms/ui 3.5.2 → 3.5.3

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 (84) hide show
  1. package/dist/components/BooleanSwitchWithLabel.d.ts +1 -1
  2. package/dist/components/Chip.d.ts +1 -1
  3. package/dist/components/ColorPicker.d.ts +1 -1
  4. package/dist/components/DebouncedTextField.d.ts +1 -1
  5. package/dist/components/DialogTitle.d.ts +1 -1
  6. package/dist/components/LoadingButton.d.ts +1 -1
  7. package/dist/components/index.d.ts +51 -51
  8. package/dist/hooks/index.d.ts +6 -6
  9. package/dist/icons/FirestoreIcon.d.ts +1 -1
  10. package/dist/icons/GitHubIcon.d.ts +1 -1
  11. package/dist/icons/create_icon.d.ts +1 -1
  12. package/dist/icons/generated_icons.d.ts +2198 -2198
  13. package/dist/icons/index.d.ts +8 -8
  14. package/dist/index.d.ts +5 -5
  15. package/dist/index.es.js.map +1 -1
  16. package/dist/index.umd.js.map +1 -1
  17. package/dist/util/chip_colors.d.ts +1 -1
  18. package/dist/util/index.d.ts +4 -4
  19. package/package.json +1 -1
  20. package/src/components/Alert.tsx +1 -1
  21. package/src/components/Autocomplete.tsx +4 -4
  22. package/src/components/Avatar.tsx +1 -1
  23. package/src/components/BooleanSwitch.tsx +1 -1
  24. package/src/components/BooleanSwitchWithLabel.tsx +3 -3
  25. package/src/components/Button.tsx +1 -1
  26. package/src/components/Card.tsx +2 -2
  27. package/src/components/CenteredView.tsx +2 -2
  28. package/src/components/Checkbox.tsx +2 -2
  29. package/src/components/Chip.tsx +1 -1
  30. package/src/components/CircularProgress.tsx +1 -1
  31. package/src/components/Collapse.tsx +2 -2
  32. package/src/components/ColorPicker.tsx +4 -4
  33. package/src/components/Container.tsx +1 -1
  34. package/src/components/DateTimeField.tsx +7 -7
  35. package/src/components/DebouncedTextField.tsx +1 -1
  36. package/src/components/Dialog.tsx +3 -3
  37. package/src/components/DialogActions.tsx +2 -2
  38. package/src/components/DialogContent.tsx +1 -1
  39. package/src/components/DialogTitle.tsx +2 -2
  40. package/src/components/ExpandablePanel.tsx +4 -4
  41. package/src/components/FileUpload.tsx +3 -3
  42. package/src/components/FilterChip.tsx +1 -1
  43. package/src/components/IconButton.tsx +1 -1
  44. package/src/components/InfoLabel.tsx +1 -1
  45. package/src/components/InputLabel.tsx +2 -2
  46. package/src/components/Label.tsx +2 -2
  47. package/src/components/LoadingButton.tsx +2 -2
  48. package/src/components/Markdown.tsx +1 -1
  49. package/src/components/Menu.tsx +3 -3
  50. package/src/components/Menubar.tsx +3 -3
  51. package/src/components/MultiSelect.tsx +8 -8
  52. package/src/components/Paper.tsx +2 -2
  53. package/src/components/Popover.tsx +4 -4
  54. package/src/components/RadioGroup.tsx +1 -1
  55. package/src/components/ResizablePanels.tsx +1 -1
  56. package/src/components/SearchBar.tsx +5 -5
  57. package/src/components/SearchableSelect.tsx +6 -6
  58. package/src/components/Select.tsx +5 -5
  59. package/src/components/Separator.tsx +1 -1
  60. package/src/components/Sheet.tsx +3 -3
  61. package/src/components/Skeleton.tsx +2 -2
  62. package/src/components/Slider.tsx +1 -1
  63. package/src/components/Table.tsx +2 -2
  64. package/src/components/Tabs.tsx +4 -4
  65. package/src/components/TextField.tsx +3 -3
  66. package/src/components/TextareaAutosize.tsx +1 -1
  67. package/src/components/ToggleButtonGroup.tsx +1 -1
  68. package/src/components/Tooltip.tsx +3 -3
  69. package/src/components/Typography.tsx +1 -1
  70. package/src/components/common/SelectInputLabel.tsx +1 -1
  71. package/src/components/index.tsx +51 -51
  72. package/src/hooks/index.ts +6 -6
  73. package/src/hooks/useIconStyles.tsx +1 -1
  74. package/src/hooks/useInjectStyles.tsx +1 -1
  75. package/src/icons/FirestoreIcon.tsx +1 -1
  76. package/src/icons/GitHubIcon.tsx +1 -1
  77. package/src/icons/Icon.tsx +1 -1
  78. package/src/icons/create_icon.tsx +1 -1
  79. package/src/icons/generated_icons.ts +1 -1
  80. package/src/icons/index.ts +8 -8
  81. package/src/index.ts +5 -5
  82. package/src/scripts/saveIconFiles.ts +1 -1
  83. package/src/util/chip_colors.ts +2 -2
  84. package/src/util/index.ts +4 -4
@@ -2,9 +2,9 @@
2
2
  import React from "react";
3
3
  import * as TooltipPrimitive from "@radix-ui/react-tooltip";
4
4
 
5
- import { cls } from "../util";
6
- import { useInjectStyles } from "../hooks";
7
- import { usePortalContainer } from "../hooks/PortalContainerContext";
5
+ import { cls } from "../util/index.js";
6
+ import { useInjectStyles } from "../hooks/index.js";
7
+ import { usePortalContainer } from "../hooks/PortalContainerContext.js";
8
8
 
9
9
  export type TooltipProps = {
10
10
  open?: boolean,
@@ -1,5 +1,5 @@
1
1
  import React, { ReactEventHandler } from "react";
2
- import { cls } from "../util";
2
+ import { cls } from "../util/index.js";
3
3
 
4
4
  export type TypographyVariant = keyof typeof typographyVariants;
5
5
  export type TypographyProps<C extends React.ElementType = "span"> = {
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { cls } from "../../util";
2
+ import { cls } from "../../util/index.js";
3
3
 
4
4
  export function SelectInputLabel({ children, error }: { children: React.ReactNode, error?: boolean }) {
5
5
  return <div className={cls("text-sm font-medium ml-3.5 mb-1",
@@ -1,52 +1,52 @@
1
- export * from "./Autocomplete";
2
- export * from "./Alert";
3
- export * from "./Avatar";
4
- export * from "./BooleanSwitch";
5
- export * from "./BooleanSwitchWithLabel";
6
- export * from "./Button";
7
- export * from "./Card";
8
- export * from "./CenteredView";
9
- export * from "./Container";
10
- export * from "./Collapse";
11
- export * from "./CircularProgress";
12
- export * from "./Checkbox";
13
- export * from "./Chip";
14
- export * from "./FilterChip";
15
- export * from "./ColorPicker";
16
- export * from "./DateTimeField";
17
- export * from "./Dialog";
18
- export * from "./DialogActions";
19
- export * from "./DialogContent";
20
- export * from "./DialogTitle";
21
- export * from "./ExpandablePanel";
22
- export * from "./FileUpload";
23
- export * from "./IconButton";
24
- export * from "./InputLabel";
25
- export * from "./InfoLabel";
26
- export * from "./Label";
27
- export * from "./LoadingButton";
28
- export * from "./Markdown";
29
- export * from "./Menu";
30
- export * from "./Menubar";
31
- export * from "./MultiSelect";
32
- export * from "./Paper";
33
- export * from "./RadioGroup";
34
- export * from "./ResizablePanels";
35
- export * from "./SearchBar";
36
- export * from "./SearchableSelect";
37
- export * from "./Select";
38
- export * from "./Separator";
39
- export * from "./Slider";
40
- export * from "./Sheet";
41
- export * from "./TextareaAutosize";
42
- export * from "./TextField";
43
- export * from "./Tooltip";
44
- export * from "./Typography";
45
- export * from "./Tabs";
46
- export * from "./Table";
47
- export * from "./Popover";
48
- export * from "./Badge";
49
- export * from "./DebouncedTextField";
50
- export * from "./Skeleton";
51
- export * from "./ToggleButtonGroup";
1
+ export * from "./Autocomplete.js";
2
+ export * from "./Alert.js";
3
+ export * from "./Avatar.js";
4
+ export * from "./BooleanSwitch.js";
5
+ export * from "./BooleanSwitchWithLabel.js";
6
+ export * from "./Button.js";
7
+ export * from "./Card.js";
8
+ export * from "./CenteredView.js";
9
+ export * from "./Container.js";
10
+ export * from "./Collapse.js";
11
+ export * from "./CircularProgress.js";
12
+ export * from "./Checkbox.js";
13
+ export * from "./Chip.js";
14
+ export * from "./FilterChip.js";
15
+ export * from "./ColorPicker.js";
16
+ export * from "./DateTimeField.js";
17
+ export * from "./Dialog.js";
18
+ export * from "./DialogActions.js";
19
+ export * from "./DialogContent.js";
20
+ export * from "./DialogTitle.js";
21
+ export * from "./ExpandablePanel.js";
22
+ export * from "./FileUpload.js";
23
+ export * from "./IconButton.js";
24
+ export * from "./InputLabel.js";
25
+ export * from "./InfoLabel.js";
26
+ export * from "./Label.js";
27
+ export * from "./LoadingButton.js";
28
+ export * from "./Markdown.js";
29
+ export * from "./Menu.js";
30
+ export * from "./Menubar.js";
31
+ export * from "./MultiSelect.js";
32
+ export * from "./Paper.js";
33
+ export * from "./RadioGroup.js";
34
+ export * from "./ResizablePanels.js";
35
+ export * from "./SearchBar.js";
36
+ export * from "./SearchableSelect.js";
37
+ export * from "./Select.js";
38
+ export * from "./Separator.js";
39
+ export * from "./Slider.js";
40
+ export * from "./Sheet.js";
41
+ export * from "./TextareaAutosize.js";
42
+ export * from "./TextField.js";
43
+ export * from "./Tooltip.js";
44
+ export * from "./Typography.js";
45
+ export * from "./Tabs.js";
46
+ export * from "./Table.js";
47
+ export * from "./Popover.js";
48
+ export * from "./Badge.js";
49
+ export * from "./DebouncedTextField.js";
50
+ export * from "./Skeleton.js";
51
+ export * from "./ToggleButtonGroup.js";
52
52
 
@@ -1,6 +1,6 @@
1
- export * from "./useInjectStyles";
2
- export * from "./useOutsideAlerter";
3
- export * from "./useDebounceValue";
4
- export * from "./useDebounceCallback";
5
- export * from "./useIconStyles";
6
- export * from "./PortalContainerContext";
1
+ export * from "./useInjectStyles.js";
2
+ export * from "./useOutsideAlerter.js";
3
+ export * from "./useDebounceValue.js";
4
+ export * from "./useDebounceCallback.js";
5
+ export * from "./useIconStyles.js";
6
+ export * from "./PortalContainerContext.js";
@@ -1,4 +1,4 @@
1
- import { useInjectStyles } from "./useInjectStyles";
1
+ import { useInjectStyles } from "./useInjectStyles.js";
2
2
 
3
3
  export type IconStyle = {
4
4
  fill?: boolean;
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import { useEffect } from "react";
3
- import { usePortalContainer } from "./PortalContainerContext";
3
+ import { usePortalContainer } from "./PortalContainerContext.js";
4
4
 
5
5
  /**
6
6
  * Use this hook to create a `<style>` element and inject it into the DOM.
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
 
3
- import { IconProps } from "./Icon";
3
+ import { IconProps } from "./Icon.js";
4
4
 
5
5
  const sizeMap: Record<string, number> = {
6
6
  smallest: 16,
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
 
3
- import { IconProps } from "./Icon";
3
+ import { IconProps } from "./Icon.js";
4
4
 
5
5
  export function GitHubIcon(props: IconProps) {
6
6
  return <svg xmlns="http://www.w3.org/2000/svg"
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
 
3
3
  import * as React from "react";
4
- import { cls } from "../util";
4
+ import { cls } from "../util/index.js";
5
5
  import "@material-design-icons/font/filled.css";
6
6
 
7
7
  export type IconColor = "inherit" | "primary" | "secondary" | "disabled" | "error" | "success" | "warning";
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { Icon, IconProps } from "./Icon";
2
+ import { Icon, IconProps } from "./Icon.js";
3
3
 
4
4
  /**
5
5
  * Build one of the generated icon components.
@@ -5,7 +5,7 @@
5
5
  * published `@firecms/ui` surface and is resolved by name out of the share scope
6
6
  * by tenant bundles, so entries are only ever added.
7
7
  */
8
- import { createIcon } from "./create_icon";
8
+ import { createIcon } from "./create_icon.js";
9
9
 
10
10
  export const AbcIcon = /* @__PURE__ */ createIcon("abc");
11
11
  export const AcUnitIcon = /* @__PURE__ */ createIcon("ac_unit");
@@ -1,8 +1,8 @@
1
- export * from "./icon_keys";
2
- export * from "./cool_icon_keys";
3
- export * from "./Icon";
4
- export * from "./create_icon";
5
- export * from "./GitHubIcon";
6
- export * from "./HandleIcon";
7
- export * from "./FirestoreIcon";
8
- export * from "./generated_icons";
1
+ export * from "./icon_keys.js";
2
+ export * from "./cool_icon_keys.js";
3
+ export * from "./Icon.js";
4
+ export * from "./create_icon.js";
5
+ export * from "./GitHubIcon.js";
6
+ export * from "./HandleIcon.js";
7
+ export * from "./FirestoreIcon.js";
8
+ export * from "./generated_icons.js";
package/src/index.ts CHANGED
@@ -1,5 +1,5 @@
1
- export * from "./components";
2
- export * from "./styles";
3
- export * from "./util";
4
- export * from "./icons";
5
- export * from "./hooks";
1
+ export * from "./components/index.js";
2
+ export * from "./styles.js";
3
+ export * from "./util/index.js";
4
+ export * from "./icons/index.js";
5
+ export * from "./hooks/index.js";
@@ -47,7 +47,7 @@ export function saveIconFiles(iconKeys: string[]) {
47
47
  * published \`@firecms/ui\` surface and is resolved by name out of the share scope
48
48
  * by tenant bundles, so entries are only ever added.
49
49
  */
50
- import { createIcon } from "./create_icon";
50
+ import { createIcon } from "./create_icon.js";
51
51
 
52
52
  ${exportLines.join("\n")}
53
53
  `;
@@ -1,5 +1,5 @@
1
- import { ChipColorKey, ChipColorScheme } from "../components";
2
- import { hashString } from "./hash";
1
+ import { ChipColorKey, ChipColorScheme } from "../components/index.js";
2
+ import { hashString } from "./hash.js";
3
3
 
4
4
  export const CHIP_COLORS: Record<string, ChipColorScheme> = {
5
5
  blueLighter: { color: "#cfdfff", text: "#102046" },
package/src/util/index.ts CHANGED
@@ -1,4 +1,4 @@
1
- export * from "./cls";
2
- export * from "./debounce";
3
- export * from "./chip_colors";
4
- export * from "./key_to_icon_component";
1
+ export * from "./cls.js";
2
+ export * from "./debounce.js";
3
+ export * from "./chip_colors.js";
4
+ export * from "./key_to_icon_component.js";