@nypl/design-system-react-components 2.1.4-checkboxgroup-bugfix → 2.1.5-rc

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.
@@ -1,10 +1,9 @@
1
1
  import React from "react";
2
- import type { CheckboxProps } from "../Checkbox/Checkbox";
3
2
  import { HelperErrorTextType } from "../HelperErrorText/HelperErrorText";
4
3
  import { LayoutTypes } from "../../helpers/types";
5
4
  export interface CheckboxGroupProps {
6
5
  /** Any child node passed to the component. */
7
- children?: React.ReactNode;
6
+ children: React.ReactNode;
8
7
  /** Populates the initial value of the input */
9
8
  defaultValue?: string[];
10
9
  /** Optional string to populate the HelperErrorText for standard state */
@@ -41,8 +40,6 @@ export interface CheckboxGroupProps {
41
40
  showRequiredLabel?: boolean;
42
41
  /** The values to programmatically update the selected `Checkbox`es. */
43
42
  value?: string[];
44
- /** Objects representing the checkboxes that will be rendered as children. Recommended when CheckboxGroup values is updated programatically, as in the Storybook example. */
45
- checkboxData?: CheckboxProps[];
46
43
  }
47
44
  /**
48
45
  * Wrapper component to wrap `Checkbox` components. Can be displayed in a
@@ -9,5 +9,7 @@ declare const useNYPLBreakpoints: () => {
9
9
  isLargerThanMobile: any;
10
10
  isLargerThanLarge: any;
11
11
  isLargerThanXLarge: any;
12
+ isSmallerThanMedium: any;
13
+ isSmallerThanDesktop: any;
12
14
  };
13
15
  export default useNYPLBreakpoints;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nypl/design-system-react-components",
3
- "version": "v2.1.4-checkboxgroup-bugfix",
3
+ "version": "2.1.5-rc",
4
4
  "description": "NYPL Reservoir Design System React Components",
5
5
  "repository": {
6
6
  "type": "git",
@@ -141,4 +141,4 @@
141
141
  "vite": "4.3.9",
142
142
  "vite-plugin-dts": "2.1.0"
143
143
  }
144
- }
144
+ }