@nypl/design-system-react-components 1.6.0-vite-rc → 1.6.0-vite-rc-2

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 (57) hide show
  1. package/dist/design-system-react-components.cjs +100 -75
  2. package/dist/design-system-react-components.js +25200 -25817
  3. package/dist/src/components/Breadcrumbs/Breadcrumbs.d.ts +7 -1
  4. package/dist/src/components/Button/Button.d.ts +6 -3
  5. package/dist/src/components/ButtonGroup/ButtonGroup.d.ts +2 -1
  6. package/dist/src/components/Card/Card.d.ts +2 -2
  7. package/dist/src/components/DatePicker/DatePicker.d.ts +2 -1
  8. package/dist/src/components/FeedbackBox/FeedbackBox.d.ts +6 -5
  9. package/dist/src/components/Form/Form.d.ts +2 -2
  10. package/dist/src/components/Grid/SimpleGrid.d.ts +2 -1
  11. package/dist/src/components/Header/Header.d.ts +1 -2
  12. package/dist/src/components/Header/components/HeaderLogin.d.ts +1 -1
  13. package/dist/src/components/Header/components/HeaderLoginButton.d.ts +1 -2
  14. package/dist/src/components/Header/components/HeaderLowerNav.d.ts +1 -2
  15. package/dist/src/components/Header/components/HeaderMobileIconNav.d.ts +1 -2
  16. package/dist/src/components/Header/components/HeaderMobileNav.d.ts +1 -2
  17. package/dist/src/components/Header/components/HeaderMobileNavButton.d.ts +1 -2
  18. package/dist/src/components/Header/components/HeaderSearchButton.d.ts +1 -2
  19. package/dist/src/components/Header/components/HeaderSearchForm.d.ts +1 -2
  20. package/dist/src/components/Header/components/HeaderSitewideAlerts.d.ts +1 -2
  21. package/dist/src/components/Header/components/HeaderUpperNav.d.ts +1 -2
  22. package/dist/src/components/Header/context/headerContext.d.ts +1 -1
  23. package/dist/src/components/Heading/Heading.d.ts +4 -2
  24. package/dist/src/components/Hero/Hero.d.ts +2 -1
  25. package/dist/src/components/Icons/Icon.d.ts +7 -8
  26. package/dist/src/components/Icons/IconSvgs.d.ts +160 -53
  27. package/dist/src/components/Icons/iconVariables.d.ts +6 -0
  28. package/dist/src/components/Image/Image.d.ts +6 -3
  29. package/dist/src/components/Link/Link.d.ts +2 -1
  30. package/dist/src/components/Logo/LogoSvgs.d.ts +154 -51
  31. package/dist/src/components/Modal/Modal.d.ts +1 -1
  32. package/dist/src/components/MultiSelect/MultiSelect.d.ts +2 -1
  33. package/dist/src/components/MultiSelectGroup/MultiSelectGroup.d.ts +2 -0
  34. package/dist/src/components/Notification/Notification.d.ts +4 -3
  35. package/dist/src/components/ProgressIndicator/ProgressIndicator.d.ts +4 -2
  36. package/dist/src/components/Select/Select.d.ts +4 -2
  37. package/dist/src/components/SkeletonLoader/SkeletonLoader.d.ts +2 -1
  38. package/dist/src/components/StatusBadge/StatusBadge.d.ts +2 -1
  39. package/dist/src/components/StyleGuide/ColorCard.d.ts +298 -2
  40. package/dist/src/components/TagSet/TagSet.d.ts +1 -10
  41. package/dist/src/components/TagSet/TagSetExplore.d.ts +4 -3
  42. package/dist/src/components/TagSet/TagSetFilter.d.ts +1 -2
  43. package/dist/src/components/TagSet/TooltipWrapper.d.ts +9 -0
  44. package/dist/src/components/Template/Template.d.ts +11 -11
  45. package/dist/src/components/Text/Text.d.ts +2 -1
  46. package/dist/src/components/TextInput/TextInput.d.ts +2 -1
  47. package/dist/src/components/Toggle/Toggle.d.ts +2 -1
  48. package/dist/src/components/VideoPlayer/VideoPlayer.d.ts +4 -2
  49. package/dist/src/helpers/types.d.ts +2 -1
  50. package/dist/src/index.d.ts +1 -0
  51. package/dist/src/theme/components/breadcrumb.d.ts +0 -13
  52. package/dist/src/theme/provider.d.ts +1 -1
  53. package/dist/src/utils/colorUtils.d.ts +5 -0
  54. package/package.json +21 -18
  55. package/dist/src/components/Icons/IconColors.d.ts +0 -3
  56. package/dist/src/components/Icons/IconNames.d.ts +0 -3
  57. /package/dist/{style.css → styles.css} +0 -0
@@ -1,54 +1,157 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: {
2
- appleAppStoreBlack: string;
3
- appleAppStoreWhite: string;
4
- bplBlack: string;
5
- bplWhite: string;
6
- cleverBadgeColor: string;
7
- cleverColor: string;
8
- cleverWhite: string;
9
- digitalCollectionsBlack: string;
10
- digitalCollectionsWhite: string;
11
- firstbookColor: string;
12
- firstbookColorNegative: string;
13
- googlePlayBlack: string;
14
- lpaBlack: string;
15
- lpaColor: string;
16
- lpaWhite: string;
17
- mlnBlack: string;
18
- mlnColor: string;
19
- mlnWhite: string;
20
- nycdoeBlack: string;
21
- nycdoeColor: string;
22
- nycdoeWhite: string;
23
- nyplFullBlack: string;
24
- nyplFullWhite: string;
25
- nyplLionBlack: string;
26
- nyplLionWhite: string;
27
- nyplTextBlack: string;
28
- nyplTextWhite: string;
29
- openebooksColor: string;
30
- openebooksNegative: string;
31
- openebooksWithTextColor: string;
32
- openebooksWithTextNegative: string;
33
- qplAltBlack: string;
34
- qplAltWhite: string;
35
- qplBlack: string;
36
- qplColor: string;
37
- qplWhite: string;
38
- reservoirIconColor: string;
39
- reservoirVerticalColor: string;
40
- schomburgBlack: string;
41
- schomburgCircleBlack: string;
42
- schomburgCircleColor: string;
43
- schomburgCircleWhite: string;
44
- schomburgColor: string;
45
- schomburgWhite: string;
46
- simplyeBlack: string;
47
- simplyeWhite: string;
48
- simplyeColor: string;
49
- snflBlack: string;
50
- snflWhite: string;
51
- treasuresColor: string;
52
- treasuresColorNegative: string;
3
+ appleAppStoreBlack: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
4
+ title?: string;
5
+ }>;
6
+ appleAppStoreWhite: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
7
+ title?: string;
8
+ }>;
9
+ bplBlack: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
10
+ title?: string;
11
+ }>;
12
+ bplWhite: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
13
+ title?: string;
14
+ }>;
15
+ cleverBadgeColor: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
16
+ title?: string;
17
+ }>;
18
+ cleverColor: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
19
+ title?: string;
20
+ }>;
21
+ cleverWhite: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
22
+ title?: string;
23
+ }>;
24
+ digitalCollectionsBlack: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
25
+ title?: string;
26
+ }>;
27
+ digitalCollectionsWhite: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
28
+ title?: string;
29
+ }>;
30
+ firstbookColor: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
31
+ title?: string;
32
+ }>;
33
+ firstbookColorNegative: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
34
+ title?: string;
35
+ }>;
36
+ googlePlayBlack: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
37
+ title?: string;
38
+ }>;
39
+ lpaBlack: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
40
+ title?: string;
41
+ }>;
42
+ lpaColor: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
43
+ title?: string;
44
+ }>;
45
+ lpaWhite: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
46
+ title?: string;
47
+ }>;
48
+ mlnBlack: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
49
+ title?: string;
50
+ }>;
51
+ mlnColor: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
52
+ title?: string;
53
+ }>;
54
+ mlnWhite: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
55
+ title?: string;
56
+ }>;
57
+ nycdoeBlack: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
58
+ title?: string;
59
+ }>;
60
+ nycdoeColor: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
61
+ title?: string;
62
+ }>;
63
+ nycdoeWhite: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
64
+ title?: string;
65
+ }>;
66
+ nyplFullBlack: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
67
+ title?: string;
68
+ }>;
69
+ nyplFullWhite: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
70
+ title?: string;
71
+ }>;
72
+ nyplLionBlack: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
73
+ title?: string;
74
+ }>;
75
+ nyplLionWhite: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
76
+ title?: string;
77
+ }>;
78
+ nyplTextBlack: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
79
+ title?: string;
80
+ }>;
81
+ nyplTextWhite: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
82
+ title?: string;
83
+ }>;
84
+ openebooksColor: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
85
+ title?: string;
86
+ }>;
87
+ openebooksNegative: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
88
+ title?: string;
89
+ }>;
90
+ openebooksWithTextColor: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
91
+ title?: string;
92
+ }>;
93
+ openebooksWithTextNegative: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
94
+ title?: string;
95
+ }>;
96
+ qplAltBlack: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
97
+ title?: string;
98
+ }>;
99
+ qplAltWhite: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
100
+ title?: string;
101
+ }>;
102
+ qplBlack: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
103
+ title?: string;
104
+ }>;
105
+ qplColor: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
106
+ title?: string;
107
+ }>;
108
+ qplWhite: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
109
+ title?: string;
110
+ }>;
111
+ reservoirIconColor: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
112
+ title?: string;
113
+ }>;
114
+ reservoirVerticalColor: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
115
+ title?: string;
116
+ }>;
117
+ schomburgBlack: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
118
+ title?: string;
119
+ }>;
120
+ schomburgCircleBlack: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
121
+ title?: string;
122
+ }>;
123
+ schomburgCircleColor: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
124
+ title?: string;
125
+ }>;
126
+ schomburgCircleWhite: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
127
+ title?: string;
128
+ }>;
129
+ schomburgColor: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
130
+ title?: string;
131
+ }>;
132
+ schomburgWhite: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
133
+ title?: string;
134
+ }>;
135
+ simplyeBlack: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
136
+ title?: string;
137
+ }>;
138
+ simplyeWhite: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
139
+ title?: string;
140
+ }>;
141
+ simplyeColor: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
142
+ title?: string;
143
+ }>;
144
+ snflBlack: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
145
+ title?: string;
146
+ }>;
147
+ snflWhite: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
148
+ title?: string;
149
+ }>;
150
+ treasuresColor: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
151
+ title?: string;
152
+ }>;
153
+ treasuresColorNegative: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
154
+ title?: string;
155
+ }>;
53
156
  };
54
157
  export default _default;
@@ -30,6 +30,6 @@ export declare const ModalTrigger: import("@chakra-ui/react").ChakraComponent<Re
30
30
  export declare function useModal(): {
31
31
  onClose: () => void;
32
32
  onOpen: () => void;
33
- Modal: import("@chakra-ui/react").ChakraComponent<({ bodyContent, closeButtonLabel, headingText, id, ...rest }: React.PropsWithChildren<BaseModalProps>) => JSX.Element, {}>;
33
+ Modal: import("@chakra-ui/react").ChakraComponent<({ bodyContent, closeButtonLabel, headingText, id, ...rest }: React.PropsWithChildren<BaseModalProps>) => import("@emotion/react/jsx-runtime").JSX.Element, {}>;
34
34
  };
35
35
  export {};
@@ -4,7 +4,8 @@ export interface MultiSelectItem {
4
4
  name: string;
5
5
  children?: MultiSelectItem[];
6
6
  }
7
- export type MultiSelectWidths = "default" | "fitContent" | "full";
7
+ export declare const multiSelectWidthsArray: readonly ["default", "fitContent", "full"];
8
+ export type MultiSelectWidths = typeof multiSelectWidthsArray[number];
8
9
  export interface SelectedItems {
9
10
  [name: string]: {
10
11
  items: string[];
@@ -5,7 +5,9 @@ export interface MultiSelectGroupProps {
5
5
  children: React.ReactNode;
6
6
  /** Additional className to use. */
7
7
  className?: string;
8
+ /** The id of the MultiSelectGroup. */
8
9
  id: string;
10
+ /** The label text rendered within the MultiSelectGroup. */
9
11
  labelText: string;
10
12
  /** Renders the layout of `MultiSelect` components in a row or column. */
11
13
  layout?: LayoutTypes;
@@ -1,5 +1,6 @@
1
1
  import React from "react";
2
- export type NotificationTypes = "standard" | "announcement" | "warning";
2
+ export declare const notificationTypesArray: readonly ["standard", "announcement", "warning"];
3
+ export type NotificationTypes = typeof notificationTypesArray[number];
3
4
  interface BaseProps {
4
5
  /** Optional prop to control text alignment in `NotificationContent` */
5
6
  alignText?: boolean;
@@ -38,11 +39,11 @@ export interface NotificationProps extends BasePropsWithoutAlignText {
38
39
  /**
39
40
  * NotificationHeading child-component.
40
41
  */
41
- export declare const NotificationHeading: import("@chakra-ui/react").ChakraComponent<(props: React.PropsWithChildren<NotificationHeadingProps>) => JSX.Element, {}>;
42
+ export declare const NotificationHeading: import("@chakra-ui/react").ChakraComponent<(props: React.PropsWithChildren<NotificationHeadingProps>) => import("@emotion/react/jsx-runtime").JSX.Element, {}>;
42
43
  /**
43
44
  * NotificationContent child-component.
44
45
  */
45
- export declare const NotificationContent: import("@chakra-ui/react").ChakraComponent<(props: React.PropsWithChildren<NotificationContentProps>) => JSX.Element, {}>;
46
+ export declare const NotificationContent: import("@chakra-ui/react").ChakraComponent<(props: React.PropsWithChildren<NotificationContentProps>) => import("@emotion/react/jsx-runtime").JSX.Element, {}>;
46
47
  /**
47
48
  * Component used to present users with three different levels of notifications:
48
49
  * standard, announcement, and warning.
@@ -1,6 +1,8 @@
1
1
  import React from "react";
2
- export type ProgressIndicatorSizes = "default" | "small";
3
- export type ProgressIndicatorTypes = "circular" | "linear";
2
+ export declare const progressIndicatorSizesArray: readonly ["default", "small"];
3
+ export declare const progressIndicatorTypesArray: readonly ["circular", "linear"];
4
+ export type ProgressIndicatorSizes = typeof progressIndicatorSizesArray[number];
5
+ export type ProgressIndicatorTypes = typeof progressIndicatorTypesArray[number];
4
6
  export interface ProgressIndicatorProps {
5
7
  /** The darkMode prop is deprecated and should no longer be used. */
6
8
  darkMode?: boolean;
@@ -1,7 +1,9 @@
1
1
  import React from "react";
2
2
  import { HelperErrorTextType } from "../HelperErrorText/HelperErrorText";
3
- export type SelectTypes = "default" | "searchbar";
4
- export type LabelPositions = "default" | "inline";
3
+ export declare const selectTypesArray: string[];
4
+ export declare const labelPositionsArray: string[];
5
+ export type SelectTypes = typeof selectTypesArray[number];
6
+ export type LabelPositions = typeof labelPositionsArray[number];
5
7
  export interface SelectProps {
6
8
  /** A class name for the `div` parent element. */
7
9
  className?: string;
@@ -1,6 +1,7 @@
1
1
  import React from "react";
2
2
  import { LayoutTypes } from "../../helpers/types";
3
- export type SkeletonLoaderImageRatios = "landscape" | "portrait" | "square";
3
+ export declare const skeletonLoaderImageRatiosArray: readonly ["landscape", "portrait", "square"];
4
+ export type SkeletonLoaderImageRatios = typeof skeletonLoaderImageRatiosArray[number];
4
5
  export interface SkeletonLoaderProps {
5
6
  /** Additional class name for the Skeleton component. */
6
7
  className?: string;
@@ -1,5 +1,6 @@
1
1
  import React from "react";
2
- export type StatusBadgeTypes = "low" | "medium" | "high";
2
+ export declare const statusBadgeTypeArray: readonly ["low", "medium", "high"];
3
+ export type StatusBadgeTypes = typeof statusBadgeTypeArray[number];
3
4
  export interface StatusBadgeProps {
4
5
  /** Additional class for the component */
5
6
  className?: string;
@@ -1,4 +1,300 @@
1
1
  import * as React from "react";
2
+ export declare const colorContrastData: {
3
+ brand: {
4
+ primary: {
5
+ dataBlackColor: string[];
6
+ dataWhiteColor: string[];
7
+ textColor: string;
8
+ };
9
+ secondary: {
10
+ dataBlackColor: string[];
11
+ dataWhiteColor: string[];
12
+ textColor: string;
13
+ };
14
+ };
15
+ ui: {
16
+ black: {
17
+ dataBlackColor: string[];
18
+ dataWhiteColor: string[];
19
+ textColor: string;
20
+ };
21
+ gray: {
22
+ xxxxDark: {
23
+ dataBlackColor: any[];
24
+ dataWhiteColor: any[];
25
+ textColor: string;
26
+ };
27
+ xxxDark: {
28
+ dataBlackColor: any[];
29
+ dataWhiteColor: any[];
30
+ textColor: string;
31
+ };
32
+ xxDark: {
33
+ dataBlackColor: any[];
34
+ dataWhiteColor: any[];
35
+ textColor: string;
36
+ };
37
+ xDark: {
38
+ dataBlackColor: any[];
39
+ dataWhiteColor: any[];
40
+ textColor: string;
41
+ };
42
+ dark: {
43
+ dataBlackColor: any[];
44
+ dataWhiteColor: any[];
45
+ textColor: string;
46
+ };
47
+ semiDark: {
48
+ dataBlackColor: any[];
49
+ dataWhiteColor: any[];
50
+ textColor: string;
51
+ };
52
+ medium: {
53
+ dataBlackColor: any[];
54
+ dataWhiteColor: any[];
55
+ textColor: string;
56
+ };
57
+ semiMedium: {
58
+ dataBlackColor: any[];
59
+ dataWhiteColor: any[];
60
+ textColor: string;
61
+ };
62
+ lightCool: {
63
+ dataBlackColor: string[];
64
+ dataWhiteColor: string[];
65
+ textColor: string;
66
+ };
67
+ xLightCool: {
68
+ dataBlackColor: string[];
69
+ dataWhiteColor: string[];
70
+ textColor: string;
71
+ };
72
+ xxLightCool: {
73
+ dataBlackColor: string[];
74
+ dataWhiteColor: string[];
75
+ textColor: string;
76
+ };
77
+ lightWarm: {
78
+ dataBlackColor: string[];
79
+ dataWhiteColor: string[];
80
+ textColor: string;
81
+ };
82
+ xLightWarm: {
83
+ dataBlackColor: string[];
84
+ dataWhiteColor: string[];
85
+ textColor: string;
86
+ };
87
+ };
88
+ white: {
89
+ dataBlackColor: string[];
90
+ dataWhiteColor: string[];
91
+ textColor: string;
92
+ };
93
+ };
94
+ dark: {
95
+ ui: {
96
+ gray: {
97
+ xxDark: {
98
+ dataHeadingColor: string[];
99
+ dataBodyColor: string[];
100
+ };
101
+ xDark: {
102
+ dataHeadingColor: string[];
103
+ dataBodyColor: string[];
104
+ };
105
+ };
106
+ };
107
+ };
108
+ };
109
+ export declare const cssVars: {
110
+ brand: {
111
+ name: string;
112
+ dataBlackColor: string[];
113
+ dataWhiteColor: string[];
114
+ textColor: string;
115
+ }[];
116
+ blogs: {
117
+ colorSource: string;
118
+ name: string;
119
+ dataBlackColor: any[];
120
+ dataWhiteColor: any[];
121
+ textColor: string;
122
+ }[];
123
+ booksAndMore: {
124
+ colorSource: string;
125
+ name: string;
126
+ dataBlackColor: string[];
127
+ dataWhiteColor: string[];
128
+ textColor: string;
129
+ }[];
130
+ education: {
131
+ name: string;
132
+ dataBlackColor: string[];
133
+ dataWhiteColor: string[];
134
+ textColor: string;
135
+ }[];
136
+ locations: {
137
+ colorSource: string;
138
+ name: string;
139
+ dataBlackColor: string[];
140
+ dataWhiteColor: string[];
141
+ textColor: string;
142
+ }[];
143
+ research: {
144
+ name: string;
145
+ dataBlackColor: string[];
146
+ dataWhiteColor: string[];
147
+ textColor: string;
148
+ }[];
149
+ researchLibraries: ({
150
+ name: string;
151
+ dataBlackColor: string[];
152
+ dataWhiteColor: string[];
153
+ textColor: string;
154
+ colorSource?: undefined;
155
+ } | {
156
+ colorSource: string;
157
+ name: string;
158
+ dataBlackColor: string[];
159
+ dataWhiteColor: string[];
160
+ textColor: string;
161
+ })[];
162
+ whatsOn: ({
163
+ name: string;
164
+ dataBlackColor: string[];
165
+ dataWhiteColor: string[];
166
+ textColor: string;
167
+ colorSource?: undefined;
168
+ } | {
169
+ colorSource: string;
170
+ name: string;
171
+ dataBlackColor: string[];
172
+ dataWhiteColor: string[];
173
+ textColor: string;
174
+ })[];
175
+ ui: ({
176
+ colorSource: string;
177
+ name: string;
178
+ dataBlackColor: any[];
179
+ dataWhiteColor: any[];
180
+ textColor: string;
181
+ dataBgPageColor?: undefined;
182
+ dataBgDefaultColor?: undefined;
183
+ dataBrandPrimaryColor?: undefined;
184
+ dataBrandSecondaryColor?: undefined;
185
+ } | {
186
+ colorSource: string;
187
+ name: string;
188
+ dataBlackColor: any[];
189
+ dataWhiteColor: any[];
190
+ dataBgPageColor: string[];
191
+ dataBgDefaultColor: string[];
192
+ textColor: string;
193
+ dataBrandPrimaryColor?: undefined;
194
+ dataBrandSecondaryColor?: undefined;
195
+ } | {
196
+ name: string;
197
+ dataBlackColor: any[];
198
+ dataWhiteColor: any[];
199
+ dataBgPageColor: any[];
200
+ dataBgDefaultColor: any[];
201
+ textColor: string;
202
+ colorSource?: undefined;
203
+ dataBrandPrimaryColor?: undefined;
204
+ dataBrandSecondaryColor?: undefined;
205
+ } | {
206
+ colorSource: string;
207
+ name: string;
208
+ dataBlackColor: string[];
209
+ dataWhiteColor: string[];
210
+ dataBrandPrimaryColor: any[];
211
+ dataBrandSecondaryColor: any[];
212
+ dataBgPageColor: string[];
213
+ dataBgDefaultColor: any[];
214
+ textColor: string;
215
+ })[];
216
+ grayscaleRoot: {
217
+ name: string;
218
+ dataBlackColor: string[];
219
+ dataWhiteColor: string[];
220
+ textColor: string;
221
+ }[];
222
+ grayscaleCool: {
223
+ name: string;
224
+ dataBlackColor: any[];
225
+ dataWhiteColor: any[];
226
+ textColor: string;
227
+ }[];
228
+ grayscaleWarm: {
229
+ name: string;
230
+ dataBlackColor: string[];
231
+ dataWhiteColor: string[];
232
+ textColor: string;
233
+ }[];
234
+ dark: ({
235
+ colorSource: string;
236
+ name: string;
237
+ dataBlackColor: any[];
238
+ dataWhiteColor: any[];
239
+ dataHeadingColor: string[];
240
+ dataBodyColor: string[];
241
+ textColor: string;
242
+ dataDarkBgPageColor?: undefined;
243
+ dataDarkBgDefaultColor?: undefined;
244
+ dataBrandPrimaryColor?: undefined;
245
+ dataBrandSecondaryColor?: undefined;
246
+ } | {
247
+ colorSource: string;
248
+ name: string;
249
+ dataBlackColor: any[];
250
+ dataWhiteColor: any[];
251
+ dataDarkBgPageColor: any[];
252
+ dataDarkBgDefaultColor: any[];
253
+ textColor: string;
254
+ dataHeadingColor?: undefined;
255
+ dataBodyColor?: undefined;
256
+ dataBrandPrimaryColor?: undefined;
257
+ dataBrandSecondaryColor?: undefined;
258
+ } | {
259
+ name: string;
260
+ dataBlackColor: any[];
261
+ dataWhiteColor: any[];
262
+ dataDarkBgPageColor: any[];
263
+ dataDarkBgDefaultColor: any[];
264
+ textColor: string;
265
+ colorSource?: undefined;
266
+ dataHeadingColor?: undefined;
267
+ dataBodyColor?: undefined;
268
+ dataBrandPrimaryColor?: undefined;
269
+ dataBrandSecondaryColor?: undefined;
270
+ } | {
271
+ name: string;
272
+ dataDarkBgPageColor: string[];
273
+ dataDarkBgDefaultColor: string[];
274
+ dataBlackColor: string[];
275
+ dataWhiteColor: string[];
276
+ dataHeadingColor: string[];
277
+ dataBodyColor: string[];
278
+ textColor: string;
279
+ colorSource?: undefined;
280
+ dataBrandPrimaryColor?: undefined;
281
+ dataBrandSecondaryColor?: undefined;
282
+ } | {
283
+ colorSource: string;
284
+ name: string;
285
+ dataBlackColor: any[];
286
+ dataWhiteColor: any[];
287
+ dataBrandPrimaryColor: any[];
288
+ dataBrandSecondaryColor: any[];
289
+ dataDarkBgPageColor: any[];
290
+ dataDarkBgDefaultColor: any[];
291
+ textColor: string;
292
+ dataHeadingColor?: undefined;
293
+ dataBodyColor?: undefined;
294
+ })[];
295
+ };
296
+ export declare const makeColorCard: (data: any) => import("@emotion/react/jsx-runtime").JSX.Element;
297
+ export declare const getColorCards: (category: any) => any[];
2
298
  export interface DataTableProps {
3
299
  /** Contrast and WCAG compliance data related to the color ui.bg.page when
4
300
  * used with the current color. */
@@ -41,6 +337,6 @@ export interface ColorCardProps extends DataTableProps {
41
337
  /** The name of the color that the current color is based on. */
42
338
  colorSource: string;
43
339
  }
44
- export declare const DataTable: (props: React.PropsWithChildren<DataTableProps>) => JSX.Element;
45
- export declare const ColorCard: (props: React.PropsWithChildren<ColorCardProps>) => JSX.Element;
340
+ export declare const DataTable: (props: React.PropsWithChildren<DataTableProps>) => import("@emotion/react/jsx-runtime").JSX.Element;
341
+ export declare const ColorCard: (props: React.PropsWithChildren<ColorCardProps>) => import("@emotion/react/jsx-runtime").JSX.Element;
46
342
  export default ColorCard;
@@ -1,4 +1,3 @@
1
- import { As } from "@chakra-ui/react";
2
1
  import React from "react";
3
2
  import { TagSetExploreProps } from "./TagSetExplore";
4
3
  import { TagSetFilterProps } from "./TagSetFilter";
@@ -9,14 +8,6 @@ export interface BaseTagSetProps {
9
8
  export type TagSetTypeProps = TagSetFilterProps | TagSetExploreProps;
10
9
  export type TagSetProps = BaseTagSetProps & TagSetTypeProps;
11
10
  export declare function isFilterType(type: TagSetProps["type"]): type is "filter";
12
- /**
13
- * This helper component wrapper renders a DS `Tooltip` component if the text is
14
- * long or a React fragment. This assumes that the `label` prop is a rather
15
- * simple single root JSX element, such as `<Link ...>....</Link>`.
16
- */
17
- export declare const TooltipWrapper: ({ label, children, }: React.PropsWithChildren<{
18
- label: any;
19
- }>) => JSX.Element;
20
11
  /**
21
12
  * The `TagSet` component renders a group of individual tags which have two
22
13
  * variants: "explore" and "filter". The "explore" tags are meant to be used for
@@ -29,5 +20,5 @@ export declare const TooltipWrapper: ({ label, children, }: React.PropsWithChild
29
20
  * The full label text will be automatically revealed when the tag is hovered
30
21
  * with a DS `Tooltip` component.
31
22
  */
32
- export declare const TagSet: import("@chakra-ui/react").ChakraComponent<As<TagSetProps>, TagSetProps>;
23
+ export declare const TagSet: import("@chakra-ui/react").ChakraComponent<React.ForwardRefExoticComponent<TagSetProps & React.RefAttributes<HTMLDivElement>>, {}>;
33
24
  export default TagSet;
@@ -9,9 +9,10 @@ export interface TagSetExploreDataProps {
9
9
  export interface TagSetExploreProps {
10
10
  /** ID that other components can cross reference for accessibility purposes. */
11
11
  id?: string;
12
- /** Whether the tags should be removable. */
12
+ /** Whether the tags should be removable. This prop is not used in the "explore" variant. */
13
13
  isDismissible?: never;
14
- /** The function to perform when a tag is clicked when `isDismissible` is true. */
14
+ /** The function to perform when a tag is clicked when `isDismissible` is
15
+ * true. This prop is not used in the "explore" variant.*/
15
16
  onClick?: never;
16
17
  /** The array of data to display as tags. */
17
18
  tagSetData: TagSetExploreDataProps[];
@@ -23,5 +24,5 @@ export interface TagSetExploreProps {
23
24
  * The `label` property in the `tagSetData` prop should be set to a link-type
24
25
  * JSX component for linking to specific content.
25
26
  */
26
- export declare const TagSetExplore: import("@chakra-ui/react").ChakraComponent<(props: TagSetExploreProps) => JSX.Element, {}>;
27
+ export declare const TagSetExplore: import("@chakra-ui/react").ChakraComponent<(props: TagSetExploreProps) => import("@emotion/react/jsx-runtime").JSX.Element, {}>;
27
28
  export default TagSetExplore;