@firecms/ui 3.1.0-canary.1df3b2c → 3.1.0-canary.501d471

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/BooleanSwitchWithLabel.d.ts +2 -1
  2. package/dist/components/Chip.d.ts +1 -1
  3. package/dist/components/MultiSelect.d.ts +1 -1
  4. package/dist/components/ResizablePanels.d.ts +16 -0
  5. package/dist/components/SearchableSelect.d.ts +48 -0
  6. package/dist/components/Select.d.ts +1 -1
  7. package/dist/components/Tabs.d.ts +8 -1
  8. package/dist/components/Tooltip.d.ts +18 -2
  9. package/dist/components/index.d.ts +2 -0
  10. package/dist/hooks/useOutsideAlerter.d.ts +1 -1
  11. package/dist/icons/FirestoreIcon.d.ts +6 -0
  12. package/dist/icons/components/DatabaseIcon.d.ts +6 -0
  13. package/dist/icons/index.d.ts +2 -0
  14. package/dist/index.es.js +1444 -431
  15. package/dist/index.es.js.map +1 -1
  16. package/dist/index.umd.js +1446 -433
  17. package/dist/index.umd.js.map +1 -1
  18. package/package.json +6 -6
  19. package/src/components/BooleanSwitchWithLabel.tsx +4 -0
  20. package/src/components/Button.tsx +2 -1
  21. package/src/components/Chip.tsx +4 -3
  22. package/src/components/DateTimeField.tsx +7 -2
  23. package/src/components/DebouncedTextField.tsx +3 -3
  24. package/src/components/MultiSelect.tsx +27 -10
  25. package/src/components/ResizablePanels.tsx +181 -0
  26. package/src/components/SearchableSelect.tsx +335 -0
  27. package/src/components/Select.tsx +62 -62
  28. package/src/components/Skeleton.tsx +4 -2
  29. package/src/components/Tabs.tsx +150 -34
  30. package/src/components/TextareaAutosize.tsx +77 -212
  31. package/src/components/Tooltip.tsx +7 -6
  32. package/src/components/index.tsx +2 -0
  33. package/src/hooks/useOutsideAlerter.tsx +1 -1
  34. package/src/icons/FirestoreIcon.tsx +47 -0
  35. package/src/icons/components/DatabaseIcon.tsx +10 -0
  36. package/src/icons/index.ts +2 -0
@@ -0,0 +1,47 @@
1
+ import React from "react";
2
+
3
+ import { IconProps } from "./Icon";
4
+
5
+ const sizeMap: Record<string, number> = {
6
+ smallest: 16,
7
+ small: 20,
8
+ medium: 24,
9
+ large: 28,
10
+ };
11
+
12
+ /**
13
+ * Firebase Firestore flame icon (monochrome, uses currentColor).
14
+ * @group Icons
15
+ */
16
+ export function FirestoreIcon(props: IconProps) {
17
+ const s = typeof props.size === "number"
18
+ ? props.size
19
+ : sizeMap[props.size ?? "medium"] ?? 24;
20
+
21
+ return (
22
+ <svg
23
+ xmlns="http://www.w3.org/2000/svg"
24
+ className={props.className}
25
+ fill={"currentColor"}
26
+ width={s}
27
+ height={s}
28
+ viewBox="0 0 73 91"
29
+ >
30
+ <path
31
+ d="M22.575 87.933A52.16 52.16 0 0034.787 90.513c5.84.204 11.395-1.004 16.359-3.298a70.68 70.68 0 01-15.948-10.013c-2.98 4.778-7.393 8.548-12.623 10.731z"
32
+ opacity=".7"
33
+ />
34
+ <path
35
+ d="M35.2 77.205c-10.505-9.714-16.878-23.776-16.339-39.2.018-.499.045-1.001.075-1.5a39.51 39.51 0 00-5.866-.855 38.77 38.77 0 00-8.34.997A53.07 53.07 0 00.022 53.236c-.544 15.58 8.884 29.191 22.553 34.697 5.23-2.18 9.642-5.948 12.625-10.728z"
36
+ opacity=".6"
37
+ />
38
+ <path
39
+ d="M35.2 77.205a31.63 31.63 0 004.096-13.428c.452-12.985-8.278-24.155-20.36-27.273-.03.5-.058 1.002-.076 1.502-.536 15.421 5.835 29.483 16.34 39.199z"
40
+ opacity=".7"
41
+ />
42
+ <path
43
+ d="M37.944 0a73.99 73.99 0 00-15.603 21.156 72.82 72.82 0 00-3.41 15.349c12.082 3.117 20.812 14.288 20.36 27.275a31.58 31.58 0 01-4.098 13.425 70.76 70.76 0 0015.948 10.013c11.951-5.523 20.43-17.41 20.919-31.467.318-9.11-3.181-17.228-8.126-24.081C58.711 24.424 37.944 0 37.944 0z"
44
+ />
45
+ </svg>
46
+ );
47
+ }
@@ -0,0 +1,10 @@
1
+ import React from "react";
2
+ import { Icon, IconProps } from "../Icon";
3
+ /**
4
+ * @group Icons
5
+ */
6
+ export const DatabaseIcon = React.forwardRef<HTMLSpanElement, IconProps>((props, ref) => {
7
+ return <Icon {...props} iconKey={"database"} ref={ref}/>
8
+ });
9
+
10
+ DatabaseIcon.displayName = "DatabaseIcon";
@@ -3,6 +3,7 @@ export * from "./cool_icon_keys";
3
3
  export * from "./Icon";
4
4
  export * from "./GitHubIcon";
5
5
  export * from "./HandleIcon";
6
+ export * from "./FirestoreIcon";
6
7
  export * from "./components/_10kIcon";
7
8
  export * from "./components/_10mpIcon";
8
9
  export * from "./components/_11mpIcon";
@@ -522,6 +523,7 @@ export * from "./components/DataThresholdingIcon";
522
523
  export * from "./components/DataUsageIcon";
523
524
  export * from "./components/DatasetIcon";
524
525
  export * from "./components/DatasetLinkedIcon";
526
+ export * from "./components/DatabaseIcon";
525
527
  export * from "./components/DateRangeIcon";
526
528
  export * from "./components/DeblurIcon";
527
529
  export * from "./components/DeckIcon";