@firecms/ui 3.0.0-canary.5 → 3.0.0-canary.51
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 +2 -2
- package/dist/components/Avatar.d.ts +1 -0
- package/dist/components/Button.d.ts +1 -1
- package/dist/components/Card.d.ts +4 -2
- package/dist/components/CenteredView.d.ts +5 -2
- package/dist/components/Checkbox.d.ts +5 -4
- package/dist/components/Chip.d.ts +1 -1
- package/dist/components/DateTimeField.d.ts +2 -2
- package/dist/components/Dialog.d.ts +2 -1
- package/dist/components/Label.d.ts +7 -0
- package/dist/components/Markdown.d.ts +1 -0
- package/dist/components/Menu.d.ts +2 -1
- package/dist/components/RadioGroup.d.ts +27 -0
- package/dist/components/TextField.d.ts +1 -1
- package/dist/components/TextareaAutosize.d.ts +4 -2
- package/dist/components/Tooltip.d.ts +2 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/hooks/index.d.ts +4 -0
- package/dist/hooks/useLocaleConfig.d.ts +1 -0
- package/dist/icons/Icon.d.ts +2 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +7735 -7619
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +10 -10
- package/dist/index.umd.js.map +1 -1
- package/dist/styles.d.ts +6 -6
- package/dist/util/index.d.ts +0 -2
- package/package.json +29 -23
- package/src/components/Alert.tsx +2 -2
- package/src/components/Autocomplete.tsx +2 -1
- package/src/components/Avatar.tsx +3 -0
- package/src/components/BooleanSwitch.tsx +2 -2
- package/src/components/Button.tsx +11 -19
- package/src/components/Card.tsx +16 -10
- package/src/components/CenteredView.tsx +25 -13
- package/src/components/Checkbox.tsx +34 -23
- package/src/components/Chip.tsx +3 -3
- package/src/components/Collapse.tsx +2 -1
- package/src/components/DateTimeField.tsx +6 -5
- package/src/components/Dialog.tsx +4 -1
- package/src/components/ExpandablePanel.tsx +5 -3
- package/src/components/FileUpload.tsx +1 -1
- package/src/components/IconButton.tsx +2 -2
- package/src/components/InputLabel.tsx +8 -7
- package/src/components/Label.tsx +29 -0
- package/src/components/Markdown.tsx +14 -3
- package/src/components/Menu.tsx +11 -5
- package/src/components/MultiSelect.tsx +2 -1
- package/src/components/Popover.tsx +2 -1
- package/src/components/RadioGroup.tsx +72 -0
- package/src/components/SearchBar.tsx +1 -1
- 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 +4 -3
- package/src/components/TextareaAutosize.tsx +1 -1
- package/src/components/Tooltip.tsx +5 -1
- package/src/components/Typography.tsx +18 -1
- package/src/components/index.tsx +2 -0
- package/src/hooks/index.ts +4 -0
- package/src/hooks/useLocaleConfig.tsx +18 -0
- package/src/icons/Icon.tsx +43 -40
- package/src/index.ts +1 -0
- package/src/styles.ts +6 -6
- package/src/util/index.ts +0 -2
- package/tailwind.config.js +70 -0
- /package/dist/{util → hooks}/useDebounceValue.d.ts +0 -0
- /package/dist/{util → hooks}/useInjectStyles.d.ts +0 -0
- /package/dist/{util → hooks}/useOutsideAlerter.d.ts +0 -0
- /package/src/{util → hooks}/useDebounceValue.tsx +0 -0
- /package/src/{util → hooks}/useInjectStyles.tsx +0 -0
- /package/src/{util → hooks}/useOutsideAlerter.tsx +0 -0
@@ -0,0 +1,70 @@
|
|
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/**/*.{js,ts,jsx,tsx}"
|
8
|
+
],
|
9
|
+
plugins: [
|
10
|
+
require("@tailwindcss/typography")
|
11
|
+
],
|
12
|
+
theme: {
|
13
|
+
extend: {
|
14
|
+
fontFamily: {
|
15
|
+
sans: [
|
16
|
+
"Rubik",
|
17
|
+
"Roboto",
|
18
|
+
"Helvetica",
|
19
|
+
"Arial",
|
20
|
+
"sans-serif"
|
21
|
+
],
|
22
|
+
headers: [
|
23
|
+
"Rubik",
|
24
|
+
"Roboto",
|
25
|
+
"Helvetica",
|
26
|
+
"Arial",
|
27
|
+
"sans-serif"
|
28
|
+
],
|
29
|
+
mono: [
|
30
|
+
"JetBrains Mono",
|
31
|
+
"Space Mono",
|
32
|
+
"Lucida Console",
|
33
|
+
"monospace"
|
34
|
+
]
|
35
|
+
},
|
36
|
+
colors: {
|
37
|
+
primary: "var(--fcms-primary)",
|
38
|
+
"primary-dark": "var(--fcms-primary-dark)",
|
39
|
+
"primary-bg": "var(--fcms-primary-bg)",
|
40
|
+
secondary: "var(--fcms-secondary)",
|
41
|
+
field: {
|
42
|
+
disabled: "rgb(224 224 226)",
|
43
|
+
"disabled-dark": "rgb(35 35 37)"
|
44
|
+
},
|
45
|
+
text: {
|
46
|
+
primary: "rgba(0, 0, 0, 0.87)",
|
47
|
+
"primary-dark": "#ffffff",
|
48
|
+
secondary: "rgba(0, 0, 0, 0.6)",
|
49
|
+
"secondary-dark": "rgba(255, 255, 255, 0.7)",
|
50
|
+
disabled: "rgba(0, 0, 0, 0.38)",
|
51
|
+
"disabled-dark": "rgba(255, 255, 255, 0.5)",
|
52
|
+
label: "rgb(131, 131, 131)"
|
53
|
+
},
|
54
|
+
gray: {
|
55
|
+
50: "#f8f8fc",
|
56
|
+
100: "#E7E7EB",
|
57
|
+
200: "#CFCFD6",
|
58
|
+
300: "#B7B7BF",
|
59
|
+
400: "#A0A0A9",
|
60
|
+
500: "#87878F",
|
61
|
+
600: "#6C6C75",
|
62
|
+
700: "#505058",
|
63
|
+
800: "#35353A",
|
64
|
+
900: "#18181C",
|
65
|
+
950: "#101013"
|
66
|
+
}
|
67
|
+
}
|
68
|
+
}
|
69
|
+
}
|
70
|
+
};
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|