@nycplanning/streetscape 0.20.0 → 0.21.1

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 (51) hide show
  1. package/dist/StreetscapeProvider.d.ts +0 -1
  2. package/dist/components/Accordion/Accordion.d.ts +4 -4
  3. package/dist/components/Button/ButtonGroup.d.ts +1 -1
  4. package/dist/components/Button/IconButton.d.ts +1 -1
  5. package/dist/components/Checkbox/Checkbox.d.ts +1 -1
  6. package/dist/components/CloseButton/CloseButton.d.ts +1 -1
  7. package/dist/components/Combobox/Combobox.d.ts +29 -0
  8. package/dist/components/Combobox/index.d.ts +2 -0
  9. package/dist/components/Drawer/Drawer.d.ts +6 -6
  10. package/dist/components/FormControl/FormControl.d.ts +1 -1
  11. package/dist/components/FormControl/FormErrorMessage.d.ts +1 -1
  12. package/dist/components/FormControl/FormLabel.d.ts +1 -1
  13. package/dist/components/Icon/MapPinIcon.d.ts +2 -0
  14. package/dist/components/Icon/index.d.ts +1 -0
  15. package/dist/components/Input/Input.d.ts +1 -1
  16. package/dist/components/Modal/Modal.d.ts +6 -6
  17. package/dist/components/NumberInput/Number-Decrement-Stepper.d.ts +1 -1
  18. package/dist/components/NumberInput/Number-Increment-Stepper.d.ts +1 -1
  19. package/dist/components/NumberInput/Number-Input-Field.d.ts +1 -1
  20. package/dist/components/NumberInput/Number-Input-Stepper.d.ts +1 -1
  21. package/dist/components/NumberInput/Number-Input.d.ts +1 -1
  22. package/dist/components/Popover/Popover.d.ts +21 -0
  23. package/dist/components/Popover/index.d.ts +2 -0
  24. package/dist/components/Skeleton/Skeleton.d.ts +1 -1
  25. package/dist/components/Slider/Slider.d.ts +16 -0
  26. package/dist/components/Slider/index.d.ts +2 -0
  27. package/dist/components/Switch/Switch.d.ts +1 -1
  28. package/dist/components/Table/Table.d.ts +9 -9
  29. package/dist/components/Tabs/Tabs.d.ts +5 -5
  30. package/dist/components/Tag/Tag.d.ts +5 -5
  31. package/dist/components/Toast/index.d.ts +2 -0
  32. package/dist/components/index.d.ts +4 -0
  33. package/dist/index.js +1356 -2326
  34. package/dist/index.js.map +1 -1
  35. package/dist/theme/components/alert.d.ts +75 -0
  36. package/dist/theme/components/close-button.d.ts +1 -1
  37. package/dist/theme/components/combobox.d.ts +123 -0
  38. package/dist/theme/components/form-control.d.ts +2 -2
  39. package/dist/theme/components/form-error.d.ts +2 -2
  40. package/dist/theme/components/index.d.ts +302 -17
  41. package/dist/theme/components/popover.d.ts +83 -0
  42. package/dist/theme/components/slider.d.ts +53 -0
  43. package/dist/theme/components/switch.d.ts +24 -6
  44. package/dist/theme/components/tabs.d.ts +5 -2
  45. package/dist/theme/components/tag.d.ts +2 -2
  46. package/dist/theme/semantic-tokens/colors.d.ts +1 -0
  47. package/dist/theme/semantic-tokens/index.d.ts +1 -0
  48. package/dist/theme/tokens/colors.d.ts +1 -0
  49. package/dist/theme/tokens/font-sizes.d.ts +1 -0
  50. package/dist/theme/tokens/index.d.ts +2 -0
  51. package/package.json +3 -1
@@ -0,0 +1,83 @@
1
+ export declare const popoverTheme: {
2
+ baseStyle?: {
3
+ content: {
4
+ border: string;
5
+ borderColor: string;
6
+ borderRadius: string;
7
+ background: string;
8
+ padding: number;
9
+ boxShadow: string;
10
+ display: string;
11
+ flexDirection: string;
12
+ justifyContent: string;
13
+ alignItems: string;
14
+ gap: string;
15
+ width: string;
16
+ bg?: string | undefined;
17
+ _dark?: {
18
+ [x: string]: string;
19
+ } | undefined;
20
+ zIndex?: string | undefined;
21
+ _focusVisible?: {
22
+ outline: number;
23
+ boxShadow: string;
24
+ } | undefined;
25
+ };
26
+ header: {
27
+ borderColor: string;
28
+ color: string;
29
+ fontWeight: string;
30
+ fontSize: string;
31
+ alignSelf: string;
32
+ paddingBottom: number;
33
+ paddingLeft: number;
34
+ px?: number | undefined;
35
+ py?: number | undefined;
36
+ borderBottomWidth?: string | undefined;
37
+ };
38
+ body: {
39
+ fontSize: string;
40
+ color: string;
41
+ padding: number;
42
+ px?: number | undefined;
43
+ py?: number | undefined;
44
+ };
45
+ closeButton: {
46
+ position: string;
47
+ top: string;
48
+ right: string;
49
+ borderRadius?: string | undefined;
50
+ insetEnd?: number | undefined;
51
+ padding?: number | undefined;
52
+ };
53
+ footer: {
54
+ borderTop: string;
55
+ padding: number;
56
+ display: string;
57
+ alignSelf: string;
58
+ alignItems: string;
59
+ alignContent: string;
60
+ gap: string;
61
+ justifyContent: string;
62
+ px?: number | undefined;
63
+ py?: number | undefined;
64
+ borderTopWidth?: string | undefined;
65
+ };
66
+ } | undefined;
67
+ sizes?: {
68
+ [key: string]: import('@chakra-ui/styled-system').PartsStyleInterpolation<{
69
+ keys: ("content" | "body" | "header" | "footer" | "closeButton" | "popper" | "arrow")[];
70
+ }>;
71
+ } | undefined;
72
+ variants?: {
73
+ [key: string]: import('@chakra-ui/styled-system').PartsStyleInterpolation<{
74
+ keys: ("content" | "body" | "header" | "footer" | "closeButton" | "popper" | "arrow")[];
75
+ }>;
76
+ } | undefined;
77
+ defaultProps?: {
78
+ size?: string | number | undefined;
79
+ variant?: string | number | undefined;
80
+ colorScheme?: string | undefined;
81
+ } | undefined;
82
+ parts: ("content" | "body" | "header" | "footer" | "closeButton" | "popper" | "arrow")[];
83
+ };
@@ -0,0 +1,53 @@
1
+ declare const $thumbSize: {
2
+ variable: string;
3
+ reference: string;
4
+ };
5
+ declare const $trackSize: {
6
+ variable: string;
7
+ reference: string;
8
+ };
9
+ declare const $bg: {
10
+ variable: string;
11
+ reference: string;
12
+ };
13
+ export declare const sliderThemeExtension: {
14
+ baseStyle?: (() => {
15
+ container: {};
16
+ track: {
17
+ [$bg.variable]: string;
18
+ borderRadius: string;
19
+ border: string;
20
+ borderColor: string;
21
+ };
22
+ thumb: {
23
+ border: string;
24
+ borderColor: string;
25
+ bg: string;
26
+ boxShadow: string;
27
+ };
28
+ filledTrack: {
29
+ [$bg.variable]: string;
30
+ };
31
+ }) | undefined;
32
+ sizes?: {
33
+ md: {
34
+ container: {
35
+ [$thumbSize.variable]: string;
36
+ [$trackSize.variable]: string;
37
+ };
38
+ };
39
+ } | undefined;
40
+ variants?: {
41
+ [key: string]: import('@chakra-ui/system').PartsStyleInterpolation<{
42
+ keys: ("container" | "track" | "thumb" | "filledTrack" | "mark")[];
43
+ }>;
44
+ } | undefined;
45
+ defaultProps?: {
46
+ size?: "md" | undefined;
47
+ variant?: string | number | undefined;
48
+ colorScheme?: string | undefined;
49
+ } | undefined;
50
+ parts: ("container" | "track" | "thumb" | "filledTrack" | "mark")[];
51
+ };
52
+ export declare const sliderTheme: any;
53
+ export {};
@@ -1,3 +1,19 @@
1
+ declare const $width: {
2
+ variable: string;
3
+ reference: string;
4
+ };
5
+ declare const $height: {
6
+ variable: string;
7
+ reference: string;
8
+ };
9
+ declare const $diff: {
10
+ variable: string;
11
+ reference: string;
12
+ };
13
+ declare const $translateX: {
14
+ variable: string;
15
+ reference: string;
16
+ };
1
17
  export declare const switchTheme: {
2
18
  baseStyle?: (() => {
3
19
  track: {
@@ -17,11 +33,10 @@ export declare const switchTheme: {
17
33
  };
18
34
  };
19
35
  container: {
20
- [x: string]: string | {
21
- [x: string]: string;
22
- };
36
+ [$diff.variable]: string;
37
+ [$translateX.variable]: string;
23
38
  _rtl: {
24
- [x: string]: string;
39
+ [$translateX.variable]: string;
25
40
  };
26
41
  };
27
42
  thumb: {
@@ -40,12 +55,14 @@ export declare const switchTheme: {
40
55
  sizes?: {
41
56
  sm: {
42
57
  container: {
43
- [x: string]: string;
58
+ [$width.variable]: string;
59
+ [$height.variable]: string;
44
60
  };
45
61
  };
46
62
  lg: {
47
63
  container: {
48
- [x: string]: string;
64
+ [$width.variable]: string;
65
+ [$height.variable]: string;
49
66
  };
50
67
  };
51
68
  } | undefined;
@@ -59,3 +76,4 @@ export declare const switchTheme: {
59
76
  } | undefined;
60
77
  parts: ("container" | "track" | "thumb")[];
61
78
  };
79
+ export {};
@@ -1,5 +1,5 @@
1
1
  export declare const tabsTheme: {
2
- baseStyle?: ((props: import('@chakra-ui/styled-system').StyleFunctionProps) => {
2
+ baseStyle?: ((props: import('@chakra-ui/system').StyleFunctionProps) => {
3
3
  root: {
4
4
  display: string;
5
5
  alignItems: string;
@@ -13,7 +13,6 @@ export declare const tabsTheme: {
13
13
  paddingY: number;
14
14
  background: string;
15
15
  textAlign: string;
16
- fontFamily: string;
17
16
  fontWeight: number;
18
17
  fontSize: string;
19
18
  _focusVisible: {
@@ -59,6 +58,10 @@ export declare const tabsTheme: {
59
58
  root: {
60
59
  boxShadow: string;
61
60
  borderRadius: string;
61
+ backgroundColor: string;
62
+ };
63
+ tablist: {
64
+ boxShadow: string;
62
65
  };
63
66
  tab: {
64
67
  borderRadius: number;
@@ -46,12 +46,12 @@ export declare const tagTheme: {
46
46
  } | undefined;
47
47
  } | undefined;
48
48
  sizes?: {
49
- [key: string]: import('@chakra-ui/styled-system').PartsStyleInterpolation<{
49
+ [key: string]: import('@chakra-ui/system').PartsStyleInterpolation<{
50
50
  keys: ("container" | "label" | "closeButton")[];
51
51
  }>;
52
52
  } | undefined;
53
53
  variants?: {
54
- [key: string]: import('@chakra-ui/styled-system').PartsStyleInterpolation<{
54
+ [key: string]: import('@chakra-ui/system').PartsStyleInterpolation<{
55
55
  keys: ("container" | "label" | "closeButton")[];
56
56
  }>;
57
57
  } | undefined;
@@ -1,5 +1,6 @@
1
1
  export declare const colors: {
2
2
  "primary.50": string;
3
+ "primary.100": string;
3
4
  "primary.500": string;
4
5
  "primary.600": string;
5
6
  "primary.700": string;
@@ -1,6 +1,7 @@
1
1
  export declare const semanticTokens: {
2
2
  colors: {
3
3
  "primary.50": string;
4
+ "primary.100": string;
4
5
  "primary.500": string;
5
6
  "primary.600": string;
6
7
  "primary.700": string;
@@ -15,6 +15,7 @@ export declare const colors: {
15
15
  };
16
16
  teal: {
17
17
  50: string;
18
+ 100: string;
18
19
  500: string;
19
20
  600: string;
20
21
  700: string;
@@ -1,4 +1,5 @@
1
1
  export declare const fontSizes: {
2
+ "2xs": string;
2
3
  xs: string;
3
4
  sm: string;
4
5
  md: string;
@@ -26,6 +26,7 @@ export declare const tokens: {
26
26
  };
27
27
  teal: {
28
28
  50: string;
29
+ 100: string;
29
30
  500: string;
30
31
  600: string;
31
32
  700: string;
@@ -56,6 +57,7 @@ export declare const tokens: {
56
57
  };
57
58
  };
58
59
  fontSizes: {
60
+ "2xs": string;
59
61
  xs: string;
60
62
  sm: string;
61
63
  md: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nycplanning/streetscape",
3
- "version": "0.20.0",
3
+ "version": "0.21.1",
4
4
  "type": "module",
5
5
  "main": "dist/index",
6
6
  "types": "dist/index.d.ts",
@@ -22,11 +22,13 @@
22
22
  "prepare": "husky install"
23
23
  },
24
24
  "dependencies": {
25
+ "@ark-ui/react": "^5.31.0",
25
26
  "@chakra-ui/cli": "^2.4.1",
26
27
  "@chakra-ui/icons": "^2.2.4",
27
28
  "@chakra-ui/layout": "^2.3.1",
28
29
  "@chakra-ui/media-query": "^3.3.0",
29
30
  "@chakra-ui/react": "^2.8.1",
31
+ "@chakra-ui/styled-system": "^2.12.0",
30
32
  "@chakra-ui/theme-tools": "^2.2.6",
31
33
  "@emotion/react": "^11.14.0",
32
34
  "@emotion/styled": "^11.14.1",