@firecms/ui 3.0.0-canary.2 → 3.0.0-canary.21
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/README.md +1 -1
- package/dist/components/Button.d.ts +1 -1
- package/dist/components/Card.d.ts +4 -2
- package/dist/components/CenteredView.d.ts +2 -1
- package/dist/components/Checkbox.d.ts +4 -4
- package/dist/components/Chip.d.ts +1 -1
- package/dist/components/Dialog.d.ts +2 -1
- package/dist/components/Label.d.ts +4 -0
- package/dist/components/Markdown.d.ts +1 -0
- package/dist/components/RadioGroup.d.ts +5 -0
- package/dist/components/Tooltip.d.ts +2 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/index.es.js +7711 -7649
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +10 -10
- package/dist/index.umd.js.map +1 -1
- package/package.json +25 -21
- package/src/components/Alert.tsx +2 -2
- package/src/components/BooleanSwitch.tsx +2 -2
- package/src/components/Button.tsx +9 -17
- package/src/components/Card.tsx +16 -10
- package/src/components/CenteredView.tsx +4 -2
- package/src/components/Checkbox.tsx +32 -23
- package/src/components/Chip.tsx +3 -3
- package/src/components/Dialog.tsx +4 -1
- package/src/components/ExpandablePanel.tsx +1 -1
- package/src/components/IconButton.tsx +1 -1
- package/src/components/Label.tsx +18 -0
- package/src/components/Markdown.tsx +14 -3
- package/src/components/RadioGroup.tsx +41 -0
- package/src/components/Select.tsx +21 -21
- package/src/components/Table.tsx +1 -1
- package/src/components/Tabs.tsx +2 -2
- package/src/components/TextField.tsx +1 -1
- package/src/components/Tooltip.tsx +3 -0
- package/src/components/index.tsx +2 -0
- package/tailwind.config.js +71 -0
@@ -7,6 +7,7 @@ export type TooltipProps = {
|
|
7
7
|
open?: boolean,
|
8
8
|
onOpenChange?: (open: boolean) => void,
|
9
9
|
side?: "top" | "bottom" | "left" | "right",
|
10
|
+
align?: "start" | "center" | "end",
|
10
11
|
sideOffset?: number,
|
11
12
|
title?: string | React.ReactNode,
|
12
13
|
delayDuration?: number;
|
@@ -21,6 +22,7 @@ export const Tooltip = ({
|
|
21
22
|
side = "bottom",
|
22
23
|
delayDuration = 250,
|
23
24
|
sideOffset,
|
25
|
+
align,
|
24
26
|
onOpenChange,
|
25
27
|
title,
|
26
28
|
className,
|
@@ -49,6 +51,7 @@ export const Tooltip = ({
|
|
49
51
|
"z-50 rounded px-3 py-2 text-xs leading-none bg-slate-700 dark:bg-slate-800 bg-opacity-90 font-medium text-slate-50 shadow-2xl select-none duration-400 ease-in transform opacity-100",
|
50
52
|
tooltipClassName)}
|
51
53
|
sideOffset={sideOffset === undefined ? 4 : sideOffset}
|
54
|
+
align={align}
|
52
55
|
side={side}>
|
53
56
|
{title}
|
54
57
|
{/*<TooltipPrimitive.Arrow className="fill-slate-600"/>*/}
|
package/src/components/index.tsx
CHANGED
@@ -20,11 +20,13 @@ export * from "./FileUpload";
|
|
20
20
|
export * from "./IconButton";
|
21
21
|
export * from "./InputLabel";
|
22
22
|
export * from "./InfoLabel";
|
23
|
+
export * from "./Label";
|
23
24
|
export * from "./LoadingButton";
|
24
25
|
export * from "./Markdown";
|
25
26
|
export * from "./Menu";
|
26
27
|
export * from "./MultiSelect";
|
27
28
|
export * from "./Paper";
|
29
|
+
export * from "./RadioGroup";
|
28
30
|
export * from "./SearchBar";
|
29
31
|
export * from "./Select";
|
30
32
|
export * from "./Separator";
|
@@ -0,0 +1,71 @@
|
|
1
|
+
export default {
|
2
|
+
darkMode: ["selector", "[data-theme=\"dark\"]"],
|
3
|
+
mode: "jit",
|
4
|
+
content: [
|
5
|
+
"./index.html",
|
6
|
+
"./src/**/*.{js,ts,jsx,tsx}",
|
7
|
+
"./node_modules/firecms/src/**/*.{js,ts,jsx,tsx}",
|
8
|
+
"./node_modules/@firecms/**/src/**/*.{js,ts,jsx,tsx}"
|
9
|
+
],
|
10
|
+
plugins: [
|
11
|
+
require("@tailwindcss/typography")
|
12
|
+
],
|
13
|
+
theme: {
|
14
|
+
extend: {
|
15
|
+
fontFamily: {
|
16
|
+
sans: [
|
17
|
+
"Rubik",
|
18
|
+
"Roboto",
|
19
|
+
"Helvetica",
|
20
|
+
"Arial",
|
21
|
+
"sans-serif"
|
22
|
+
],
|
23
|
+
headers: [
|
24
|
+
"Rubik",
|
25
|
+
"Roboto",
|
26
|
+
"Helvetica",
|
27
|
+
"Arial",
|
28
|
+
"sans-serif"
|
29
|
+
],
|
30
|
+
mono: [
|
31
|
+
"IBM Plex Mono",
|
32
|
+
"Space Mono",
|
33
|
+
"Lucida Console",
|
34
|
+
"monospace"
|
35
|
+
]
|
36
|
+
},
|
37
|
+
colors: {
|
38
|
+
primary: "var(--fcms-primary)",
|
39
|
+
"primary-dark": "var(--fcms-primary-dark)",
|
40
|
+
"primary-bg": "var(--fcms-primary-bg)",
|
41
|
+
secondary: "var(--fcms-secondary)",
|
42
|
+
field: {
|
43
|
+
disabled: "rgb(224 224 226)",
|
44
|
+
"disabled-dark": "rgb(35 35 37)"
|
45
|
+
},
|
46
|
+
text: {
|
47
|
+
primary: "rgba(0, 0, 0, 0.87)",
|
48
|
+
"primary-dark": "#ffffff",
|
49
|
+
secondary: "rgba(0, 0, 0, 0.6)",
|
50
|
+
"secondary-dark": "rgba(255, 255, 255, 0.7)",
|
51
|
+
disabled: "rgba(0, 0, 0, 0.38)",
|
52
|
+
"disabled-dark": "rgba(255, 255, 255, 0.5)",
|
53
|
+
label: "rgb(131, 131, 131)"
|
54
|
+
},
|
55
|
+
gray: {
|
56
|
+
50: "#f8f8fc",
|
57
|
+
100: "#E7E7EB",
|
58
|
+
200: "#CFCFD6",
|
59
|
+
300: "#B7B7BF",
|
60
|
+
400: "#A0A0A9",
|
61
|
+
500: "#87878F",
|
62
|
+
600: "#6C6C75",
|
63
|
+
700: "#505058",
|
64
|
+
800: "#35353A",
|
65
|
+
900: "#18181C",
|
66
|
+
950: "#101013"
|
67
|
+
}
|
68
|
+
}
|
69
|
+
}
|
70
|
+
}
|
71
|
+
};
|