@nycplanning/streetscape 0.6.0 → 0.7.0
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/dist/components/Accordion/index.d.ts +2 -0
- package/dist/components/Button/index.d.ts +2 -1
- package/dist/components/Checkbox/index.d.ts +2 -0
- package/dist/components/FormControl/index.d.ts +6 -0
- package/dist/components/Input/index.d.ts +2 -0
- package/dist/components/Switch/index.d.ts +2 -0
- package/dist/components/index.d.ts +5 -0
- package/dist/index.js +1952 -60
- package/dist/index.js.map +1 -1
- package/dist/theme/components/accordion.d.ts +52 -0
- package/dist/theme/components/button.d.ts +68 -9
- package/dist/theme/components/checkbox.d.ts +55 -0
- package/dist/theme/components/form-control.d.ts +24 -0
- package/dist/theme/components/form-error.d.ts +25 -0
- package/dist/theme/components/form-label.d.ts +24 -0
- package/dist/theme/components/index.d.ts +374 -9
- package/dist/theme/components/input.d.ts +65 -0
- package/dist/theme/components/switch.d.ts +61 -0
- package/dist/theme/tokens/index.d.ts +1 -0
- package/dist/theme/tokens/radii.d.ts +1 -0
- package/package.json +2 -1
- package/dist/components/Button/Button.d.ts +0 -2
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
export declare const switchTheme: {
|
|
2
|
+
baseStyle?: (() => {
|
|
3
|
+
track: {
|
|
4
|
+
bg: string;
|
|
5
|
+
alignItems: string;
|
|
6
|
+
width: string[];
|
|
7
|
+
height: string[];
|
|
8
|
+
p: string;
|
|
9
|
+
borderRadius: string;
|
|
10
|
+
transitionProperty: string;
|
|
11
|
+
transitionDuration: string;
|
|
12
|
+
_checked: {
|
|
13
|
+
bg: string;
|
|
14
|
+
};
|
|
15
|
+
_disabled: {
|
|
16
|
+
bg: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
container: {
|
|
20
|
+
[x: string]: string | {
|
|
21
|
+
[x: string]: string;
|
|
22
|
+
};
|
|
23
|
+
_rtl: {
|
|
24
|
+
[x: string]: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
thumb: {
|
|
28
|
+
borderRadius: string;
|
|
29
|
+
bg: string;
|
|
30
|
+
transitionProperty: string;
|
|
31
|
+
transitionDuration: string;
|
|
32
|
+
boxShadow: string;
|
|
33
|
+
width: string[];
|
|
34
|
+
height: string[];
|
|
35
|
+
_checked: {
|
|
36
|
+
transform: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
}) | undefined;
|
|
40
|
+
sizes?: {
|
|
41
|
+
sm: {
|
|
42
|
+
container: {
|
|
43
|
+
[x: string]: string;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
lg: {
|
|
47
|
+
container: {
|
|
48
|
+
[x: string]: string;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
} | undefined;
|
|
52
|
+
variants?: {
|
|
53
|
+
base: {};
|
|
54
|
+
} | undefined;
|
|
55
|
+
defaultProps?: {
|
|
56
|
+
size?: "sm" | "lg" | undefined;
|
|
57
|
+
variant?: "base" | undefined;
|
|
58
|
+
colorScheme?: string | undefined;
|
|
59
|
+
} | undefined;
|
|
60
|
+
parts: ("container" | "track" | "thumb")[];
|
|
61
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nycplanning/streetscape",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
"@chakra-ui/layout": "^2.3.1",
|
|
25
25
|
"@chakra-ui/media-query": "^3.3.0",
|
|
26
26
|
"@chakra-ui/react": "^2.8.1",
|
|
27
|
+
"@chakra-ui/theme-tools": "^2.1.1",
|
|
27
28
|
"@emotion/react": "^11.11.1",
|
|
28
29
|
"@emotion/styled": "^11.11.0",
|
|
29
30
|
"framer-motion": "^10.16.4",
|