@nypl/design-system-react-components 3.0.0-react-chakra-rc3 → 3.0.0-react-chakra-rc4

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.
@@ -21,7 +21,7 @@ export interface MultiSelectProps {
21
21
  /** The number of items that will be visible in the list when the component first loads. */
22
22
  defaultItemsVisible?: number;
23
23
  /** The action to perform for clear/reset button of MultiSelect. */
24
- onClear?: () => void;
24
+ onClearAll?: () => void;
25
25
  /** The action to perform on the checkbox's onChange function. */
26
26
  onChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
27
27
  /** The action to perform for a mixed state checkbox (parent checkbox). */
@@ -15,7 +15,7 @@ export interface MultiSelectItemsCountButtonProps {
15
15
  /** The callback function for the menu toggle. */
16
16
  onMenuToggle?: () => void;
17
17
  /** The action to perform for clear/reset button of MultiSelect. */
18
- onClear?: () => void;
18
+ onClearAll?: () => void;
19
19
  /** The action to perform for key down event. */
20
20
  onKeyDown?: () => void;
21
21
  /** Ref to the Accordion Button element. */
@@ -5,6 +5,8 @@ import { TagSetFilterProps } from "./TagSetFilter";
5
5
  export interface BaseTagSetProps {
6
6
  /** Additional class for the component. */
7
7
  className?: string;
8
+ /** ID that other components can cross reference for accessibility purposes. */
9
+ id?: string;
8
10
  }
9
11
  export type TagSetTypeProps = TagSetFilterProps | TagSetExploreProps;
10
12
  export type TagSetProps = BaseTagSetProps & TagSetTypeProps;
@@ -3,16 +3,20 @@ import { IconNames } from "../Icons/Icon";
3
3
  export interface TagSetExploreDataProps {
4
4
  /** The name of the SVG `Icon` to render before the tag label. */
5
5
  iconName?: IconNames;
6
+ /** The ID of the tag. */
7
+ id?: string;
6
8
  /** The content to display; should be a link-type component. */
7
9
  label: JSX.Element;
8
10
  }
9
11
  export interface TagSetExploreProps {
10
- /** ID that other components can cross reference for accessibility purposes. */
11
- id?: string;
12
- /** Whether the tags should be removable. This prop is not used in the "explore" variant. */
12
+ /** Whether the tags should be removable. This prop is not used in the
13
+ * "explore" variant. */
13
14
  isDismissible?: never;
15
+ /** The function to perform when the Clear All button is clicked. This prop
16
+ * is not used in the "explore" variant. */
17
+ onClear?: never;
14
18
  /** The function to perform when a tag is clicked when `isDismissible` is
15
- * true. This prop is not used in the "explore" variant.*/
19
+ * true. This prop is not used in the "explore" variant. */
16
20
  onClick?: never;
17
21
  /** The array of data to display as tags. */
18
22
  tagSetData: TagSetExploreDataProps[];
@@ -1,10 +1,14 @@
1
- import React from "react";
1
+ /// <reference types="react" />
2
2
  import { IconNames } from "../Icons/Icon";
3
3
  export interface TagSetFilterDataProps {
4
4
  /** The name of the SVG `Icon` to render before the tag label. */
5
5
  iconName?: IconNames;
6
+ /** The ID of the tag. */
7
+ id: string;
6
8
  /** The string label to display. */
7
9
  label: string;
10
+ /** Any other properties the consuming app may need for app logic filtering. */
11
+ [key: string]: string;
8
12
  }
9
13
  export interface TagSetFilterProps {
10
14
  /** ID that other components can cross reference for accessibility purposes. */
@@ -12,7 +16,7 @@ export interface TagSetFilterProps {
12
16
  /** Whether the tags should be removable. */
13
17
  isDismissible?: boolean;
14
18
  /** The function to perform when a tag is clicked when `isDismissible` is true. */
15
- onClick?: (tagLabel: string) => void;
19
+ onClick?: (tagSet: TagSetFilterDataProps) => void;
16
20
  /** The array of data to display as tags. */
17
21
  tagSetData: TagSetFilterDataProps[];
18
22
  /** The `TagSet` variant to render; "filter" by default. */
@@ -29,6 +29,16 @@ declare const Breadcrumb: {
29
29
  color: string;
30
30
  textDecoration: string;
31
31
  };
32
+ _focus: {
33
+ boxShadow: string;
34
+ outline: string;
35
+ outlineOffset: string;
36
+ outlineColor: any;
37
+ zIndex: string;
38
+ _dark: {
39
+ outlineColor: any;
40
+ };
41
+ };
32
42
  };
33
43
  "li:last-child": {
34
44
  fontWeight: {
@@ -102,6 +112,16 @@ declare const Breadcrumb: {
102
112
  color: string;
103
113
  };
104
114
  };
115
+ _focus: {
116
+ boxShadow: string;
117
+ outline: string;
118
+ outlineOffset: string;
119
+ outlineColor: any;
120
+ zIndex: string;
121
+ _dark: {
122
+ outlineColor: any;
123
+ };
124
+ };
105
125
  };
106
126
  "li:last-child": {
107
127
  ".chakra-breadcrumb__link": {
@@ -1,6 +1,16 @@
1
1
  /** Export "mixin" styles. */
2
2
  export { screenreaderOnly, wrapperStyles } from "./globalMixins";
3
3
  /** Reusable component styles. */
4
+ declare const customFocusColor: (focusColor: any, focusColorDark: any) => {
5
+ boxShadow: string;
6
+ outline: string;
7
+ outlineOffset: string;
8
+ outlineColor: any;
9
+ zIndex: string;
10
+ _dark: {
11
+ outlineColor: any;
12
+ };
13
+ };
4
14
  declare const activeFocus: (darkMode?: boolean) => {
5
15
  boxShadow: string;
6
16
  outline: string;
@@ -139,4 +149,4 @@ declare const textMargin: {
139
149
  margin: string;
140
150
  marginBottom: string;
141
151
  };
142
- export { activeFocus, checkboxRadioControlSize, checkboxRadioGroupStyles, checkboxRadioHelperErrorTextStyle, checkboxRadioHoverStyles, checkboxRadioLabelStyles, defaultElementSizes, labelLegendText, selectTextInputDisabledStyles, selectTextInputFocusStyles, textMargin, };
152
+ export { activeFocus, checkboxRadioControlSize, checkboxRadioGroupStyles, checkboxRadioHelperErrorTextStyle, checkboxRadioHoverStyles, checkboxRadioLabelStyles, customFocusColor, defaultElementSizes, labelLegendText, selectTextInputDisabledStyles, selectTextInputFocusStyles, textMargin, };
@@ -18,6 +18,7 @@ declare const MultiSelectItemsCountButton: {
18
18
  };
19
19
  width: string;
20
20
  zIndex: number;
21
+ py: string;
21
22
  _hover: {
22
23
  borderColor: string;
23
24
  };
@@ -47,6 +47,18 @@ declare const Notification: {
47
47
  _dark: {
48
48
  color: string;
49
49
  };
50
+ _focus: {
51
+ ":not([disabled])": {
52
+ boxShadow: string;
53
+ outline: string;
54
+ outlineOffset: string;
55
+ outlineColor: any;
56
+ zIndex: string;
57
+ _dark: {
58
+ outlineColor: any;
59
+ };
60
+ };
61
+ };
50
62
  _hover: {
51
63
  bg: string;
52
64
  };
@@ -1,5 +1,6 @@
1
1
  declare const StatusBadge: {
2
2
  baseStyle?: {
3
+ alignItems: string;
3
4
  bgColor: string;
4
5
  borderLeft: string;
5
6
  borderColor: string;
@@ -11,7 +12,6 @@ declare const StatusBadge: {
11
12
  py: string;
12
13
  paddingInlineEnd: string;
13
14
  paddingInlineStart: string;
14
- textAlign: string;
15
15
  whiteSpace: string;
16
16
  width: string;
17
17
  _dark: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nypl/design-system-react-components",
3
- "version": "3.0.0-react-chakra-rc3",
3
+ "version": "3.0.0-react-chakra-rc4",
4
4
  "description": "NYPL Reservoir Design System React Components",
5
5
  "repository": {
6
6
  "type": "git",