@nycplanning/streetscape 0.9.0 → 0.10.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/README.md +6 -2
- package/dist/components/CloseButton/index.d.ts +1 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/index.js +629 -554
- package/dist/index.js.map +1 -1
- package/dist/theme/components/close-button.d.ts +56 -0
- package/dist/theme/components/index.d.ts +56 -0
- package/dist/theme/tokens/colors.d.ts +24 -0
- package/dist/theme/tokens/index.d.ts +25 -0
- package/dist/theme/tokens/radii.d.ts +1 -0
- package/package.json +16 -2
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
export declare const closeButtonTheme: {
|
|
2
|
+
baseStyle?: {
|
|
3
|
+
w: string[];
|
|
4
|
+
h: string[];
|
|
5
|
+
borderRadius: string;
|
|
6
|
+
transitionProperty: string;
|
|
7
|
+
transitionDuration: string;
|
|
8
|
+
_disabled: {
|
|
9
|
+
opacity: number;
|
|
10
|
+
cursor: string;
|
|
11
|
+
boxShadow: string;
|
|
12
|
+
};
|
|
13
|
+
_hover: {
|
|
14
|
+
[x: string]: string | {
|
|
15
|
+
[x: string]: string;
|
|
16
|
+
};
|
|
17
|
+
_dark: {
|
|
18
|
+
[x: string]: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
_active: {
|
|
22
|
+
[x: string]: string | {
|
|
23
|
+
[x: string]: string;
|
|
24
|
+
};
|
|
25
|
+
_dark: {
|
|
26
|
+
[x: string]: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
_focusVisible: {
|
|
30
|
+
boxShadow: string;
|
|
31
|
+
};
|
|
32
|
+
bg: string;
|
|
33
|
+
} | undefined;
|
|
34
|
+
sizes?: {
|
|
35
|
+
lg: {
|
|
36
|
+
[x: string]: string;
|
|
37
|
+
fontSize: string;
|
|
38
|
+
};
|
|
39
|
+
md: {
|
|
40
|
+
[x: string]: string;
|
|
41
|
+
fontSize: string;
|
|
42
|
+
};
|
|
43
|
+
sm: {
|
|
44
|
+
[x: string]: string;
|
|
45
|
+
fontSize: string;
|
|
46
|
+
};
|
|
47
|
+
} | undefined;
|
|
48
|
+
variants?: {
|
|
49
|
+
[key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
|
|
50
|
+
} | undefined;
|
|
51
|
+
defaultProps?: {
|
|
52
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
53
|
+
variant?: string | number | undefined;
|
|
54
|
+
colorScheme?: string | undefined;
|
|
55
|
+
} | undefined;
|
|
56
|
+
};
|
|
@@ -479,4 +479,60 @@ export declare const components: {
|
|
|
479
479
|
} | undefined;
|
|
480
480
|
parts: ("icon" | "field")[];
|
|
481
481
|
};
|
|
482
|
+
CloseButton: {
|
|
483
|
+
baseStyle?: {
|
|
484
|
+
w: string[];
|
|
485
|
+
h: string[];
|
|
486
|
+
borderRadius: string;
|
|
487
|
+
transitionProperty: string;
|
|
488
|
+
transitionDuration: string;
|
|
489
|
+
_disabled: {
|
|
490
|
+
opacity: number;
|
|
491
|
+
cursor: string;
|
|
492
|
+
boxShadow: string;
|
|
493
|
+
};
|
|
494
|
+
_hover: {
|
|
495
|
+
[x: string]: string | {
|
|
496
|
+
[x: string]: string;
|
|
497
|
+
};
|
|
498
|
+
_dark: {
|
|
499
|
+
[x: string]: string;
|
|
500
|
+
};
|
|
501
|
+
};
|
|
502
|
+
_active: {
|
|
503
|
+
[x: string]: string | {
|
|
504
|
+
[x: string]: string;
|
|
505
|
+
};
|
|
506
|
+
_dark: {
|
|
507
|
+
[x: string]: string;
|
|
508
|
+
};
|
|
509
|
+
};
|
|
510
|
+
_focusVisible: {
|
|
511
|
+
boxShadow: string;
|
|
512
|
+
};
|
|
513
|
+
bg: string;
|
|
514
|
+
} | undefined;
|
|
515
|
+
sizes?: {
|
|
516
|
+
lg: {
|
|
517
|
+
[x: string]: string;
|
|
518
|
+
fontSize: string;
|
|
519
|
+
};
|
|
520
|
+
md: {
|
|
521
|
+
[x: string]: string;
|
|
522
|
+
fontSize: string;
|
|
523
|
+
};
|
|
524
|
+
sm: {
|
|
525
|
+
[x: string]: string;
|
|
526
|
+
fontSize: string;
|
|
527
|
+
};
|
|
528
|
+
} | undefined;
|
|
529
|
+
variants?: {
|
|
530
|
+
[key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
|
|
531
|
+
} | undefined;
|
|
532
|
+
defaultProps?: {
|
|
533
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
534
|
+
variant?: string | number | undefined;
|
|
535
|
+
colorScheme?: string | undefined;
|
|
536
|
+
} | undefined;
|
|
537
|
+
};
|
|
482
538
|
};
|
|
@@ -19,4 +19,28 @@ export declare const colors: {
|
|
|
19
19
|
600: string;
|
|
20
20
|
700: string;
|
|
21
21
|
};
|
|
22
|
+
whiteAlpha: {
|
|
23
|
+
50: string;
|
|
24
|
+
100: string;
|
|
25
|
+
200: string;
|
|
26
|
+
300: string;
|
|
27
|
+
400: string;
|
|
28
|
+
500: string;
|
|
29
|
+
600: string;
|
|
30
|
+
700: string;
|
|
31
|
+
800: string;
|
|
32
|
+
900: string;
|
|
33
|
+
};
|
|
34
|
+
blackAlpha: {
|
|
35
|
+
50: string;
|
|
36
|
+
100: string;
|
|
37
|
+
200: string;
|
|
38
|
+
300: string;
|
|
39
|
+
400: string;
|
|
40
|
+
500: string;
|
|
41
|
+
600: string;
|
|
42
|
+
700: string;
|
|
43
|
+
800: string;
|
|
44
|
+
900: string;
|
|
45
|
+
};
|
|
22
46
|
};
|
|
@@ -30,6 +30,30 @@ export declare const tokens: {
|
|
|
30
30
|
600: string;
|
|
31
31
|
700: string;
|
|
32
32
|
};
|
|
33
|
+
whiteAlpha: {
|
|
34
|
+
50: string;
|
|
35
|
+
100: string;
|
|
36
|
+
200: string;
|
|
37
|
+
300: string;
|
|
38
|
+
400: string;
|
|
39
|
+
500: string;
|
|
40
|
+
600: string;
|
|
41
|
+
700: string;
|
|
42
|
+
800: string;
|
|
43
|
+
900: string;
|
|
44
|
+
};
|
|
45
|
+
blackAlpha: {
|
|
46
|
+
50: string;
|
|
47
|
+
100: string;
|
|
48
|
+
200: string;
|
|
49
|
+
300: string;
|
|
50
|
+
400: string;
|
|
51
|
+
500: string;
|
|
52
|
+
600: string;
|
|
53
|
+
700: string;
|
|
54
|
+
800: string;
|
|
55
|
+
900: string;
|
|
56
|
+
};
|
|
33
57
|
};
|
|
34
58
|
fontSizes: {
|
|
35
59
|
sm: string;
|
|
@@ -57,6 +81,7 @@ export declare const tokens: {
|
|
|
57
81
|
radii: {
|
|
58
82
|
none: string;
|
|
59
83
|
base: string;
|
|
84
|
+
md: string;
|
|
60
85
|
full: string;
|
|
61
86
|
};
|
|
62
87
|
shadows: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nycplanning/streetscape",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -14,9 +14,11 @@
|
|
|
14
14
|
"build-storybook": "storybook build",
|
|
15
15
|
"lint": "eslint . --ext ts,tsx,js,jsx",
|
|
16
16
|
"typecheck": "tsc",
|
|
17
|
+
"test-storybook": "test-storybook",
|
|
17
18
|
"theme-typings": "if [[ $PWD == *\"node_modules\"* ]]; then TOKENS_PATH=\"dist/index.d.ts\"; else TOKENS_PATH=\"src/index.ts\"; fi; chakra-cli tokens $TOKENS_PATH --strict-token-types --strict-component-types",
|
|
18
19
|
"watch:theme-typings": "npm run theme-typings -- --watch src/theme",
|
|
19
20
|
"postinstall": "npm run theme-typings",
|
|
21
|
+
"commit": "git-cz",
|
|
20
22
|
"prepare": "husky install"
|
|
21
23
|
},
|
|
22
24
|
"dependencies": {
|
|
@@ -34,20 +36,26 @@
|
|
|
34
36
|
},
|
|
35
37
|
"devDependencies": {
|
|
36
38
|
"@chakra-ui/storybook-addon": "^5.0.1",
|
|
39
|
+
"@commitlint/cli": "^18.6.0",
|
|
40
|
+
"@commitlint/config-conventional": "^18.6.0",
|
|
41
|
+
"@commitlint/cz-commitlint": "^18.6.0",
|
|
37
42
|
"@storybook/addon-a11y": "^7.4.1",
|
|
38
43
|
"@storybook/addon-essentials": "^7.4.1",
|
|
39
|
-
"@storybook/addon-interactions": "^7.
|
|
44
|
+
"@storybook/addon-interactions": "^7.6.17",
|
|
40
45
|
"@storybook/addon-links": "^7.4.1",
|
|
41
46
|
"@storybook/addon-onboarding": "^1.0.8",
|
|
42
47
|
"@storybook/blocks": "^7.4.1",
|
|
43
48
|
"@storybook/react": "^7.4.1",
|
|
44
49
|
"@storybook/react-vite": "^7.4.1",
|
|
50
|
+
"@storybook/test": "^8.0.2",
|
|
51
|
+
"@storybook/test-runner": "^0.17.0",
|
|
45
52
|
"@storybook/testing-library": "^0.2.0",
|
|
46
53
|
"@types/react": "^18.2.15",
|
|
47
54
|
"@types/react-dom": "^18.2.7",
|
|
48
55
|
"@typescript-eslint/eslint-plugin": "^6.7.0",
|
|
49
56
|
"@typescript-eslint/parser": "^6.7.0",
|
|
50
57
|
"@vitejs/plugin-react": "^4.0.3",
|
|
58
|
+
"commitizen": "^4.3.0",
|
|
51
59
|
"concurrently": "^8.2.1",
|
|
52
60
|
"eslint": "^8.49.0",
|
|
53
61
|
"eslint-config-prettier": "^9.0.0",
|
|
@@ -56,6 +64,7 @@
|
|
|
56
64
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
57
65
|
"eslint-plugin-storybook": "^0.6.13",
|
|
58
66
|
"husky": "^8.0.3",
|
|
67
|
+
"inquirer": "^8.2.6",
|
|
59
68
|
"lint-staged": "^14.0.1",
|
|
60
69
|
"prettier": "3.0.3",
|
|
61
70
|
"storybook": "^7.4.1",
|
|
@@ -69,5 +78,10 @@
|
|
|
69
78
|
"bash -c 'npm run typecheck'",
|
|
70
79
|
"npm run lint -- --fix"
|
|
71
80
|
]
|
|
81
|
+
},
|
|
82
|
+
"config": {
|
|
83
|
+
"commitizen": {
|
|
84
|
+
"path": "@commitlint/cz-commitlint"
|
|
85
|
+
}
|
|
72
86
|
}
|
|
73
87
|
}
|