@nypl/design-system-react-components 3.2.0-tooltip-rc-2 → 3.2.0-tooltip-rc-4

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,5 +1,5 @@
1
- import { ChakraComponent } from "@chakra-ui/react";
2
1
  import React from "react";
2
+ import { ChakraComponent } from "@chakra-ui/react";
3
3
  import { LayoutTypes } from "../../helpers/types";
4
4
  import { ComponentImageProps } from "../Image/Image";
5
5
  interface CardBaseProps {
@@ -8,6 +8,8 @@ export type LabelPositions = typeof labelPositionsArray[number];
8
8
  export interface SelectProps {
9
9
  /** A class name for the `div` parent element. */
10
10
  className?: string;
11
+ /** The initial value of an uncontrolled component */
12
+ defaultValue?: string;
11
13
  /** Optional string to populate the `HelperErrorText` for the standard state. */
12
14
  helperText?: HelperErrorTextType;
13
15
  /** ID that other components can cross reference for accessibility purposes */
@@ -14,9 +14,9 @@ export interface TooltipProps {
14
14
  /** Wraps the children of the tooltip in `ComponentWrapper` with `tabIndex=0` when true. */
15
15
  shouldWrapChildren?: boolean;
16
16
  /** The placement of the tooltip relative to its children. */
17
- placement?: "top" | "left" | "bottom" | "right";
18
- /** The marginTop of the tooltip. */
19
- elevation?: number;
17
+ placement?: "top" | "left" | "bottom" | "right" | "auto";
18
+ /** The main and cross-axis offset to displace the tooltip from its reference element. */
19
+ offset?: [number, number];
20
20
  }
21
21
  export declare const Tooltip: ChakraComponent<React.ForwardRefExoticComponent<React.PropsWithChildren<TooltipProps> & React.RefAttributes<HTMLDivElement>>, React.PropsWithChildren<TooltipProps>>;
22
22
  export default Tooltip;
@@ -5,14 +5,54 @@ declare const SearchBar: {
5
5
  base: string;
6
6
  md: string;
7
7
  };
8
+ ".textInput": {
9
+ flexGrow: number;
10
+ "div > input": {
11
+ borderRightRadius: number;
12
+ };
13
+ };
8
14
  flexFlow: {
9
15
  base: string;
10
16
  md: string;
11
17
  };
12
- ".textInput": {
13
- flexGrow: string;
18
+ ".searchButton": {
19
+ minWidth: string;
20
+ borderLeftRadius: string;
21
+ lineHeight: string;
22
+ marginBottom: string;
23
+ paddingTop: {
24
+ base: string;
25
+ md: string;
26
+ };
27
+ paddingLeft: {
28
+ base: string;
29
+ md: string;
30
+ };
31
+ paddingBottom: {
32
+ base: string;
33
+ md: string;
34
+ };
35
+ paddingRight: {
36
+ base: string;
37
+ md: string;
38
+ };
39
+ gap: string;
40
+ borderRightRadius: string;
41
+ " > span": {
42
+ display: {
43
+ base: string;
44
+ md: string;
45
+ };
46
+ };
47
+ " > svg": {
48
+ margin: number;
49
+ };
14
50
  };
15
51
  select: {
52
+ paddingBottom: {
53
+ base: "xs";
54
+ md: "unset";
55
+ };
16
56
  flexShrink: string;
17
57
  marginBottom: {
18
58
  base: "-1px";
@@ -10,6 +10,7 @@ declare const Tooltip: {
10
10
  fontSize: string;
11
11
  marginBottom: string;
12
12
  maxWidth: string;
13
+ marginTop: string;
13
14
  px: string;
14
15
  py: string;
15
16
  _dark: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nypl/design-system-react-components",
3
- "version": "3.2.0-tooltip-rc-2",
3
+ "version": "3.2.0-tooltip-rc-4",
4
4
  "description": "NYPL Reservoir Design System React Components",
5
5
  "repository": {
6
6
  "type": "git",