@nypl/design-system-react-components 4.1.4 → 4.1.6

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,9 +1,9 @@
1
1
  interface ComponentWrapperProps {
2
- hasChildren: boolean;
2
+ hasHelperText: boolean;
3
3
  }
4
4
  declare const ComponentWrapper: {
5
5
  parts: string[];
6
- baseStyle: ({ hasChildren }: ComponentWrapperProps) => {
6
+ baseStyle: ({ hasHelperText }: ComponentWrapperProps) => {
7
7
  helperErrorText: {
8
8
  marginTop: string;
9
9
  };
@@ -10,6 +10,7 @@ declare const iconRotation: Record<string, {
10
10
  interface IconBaseStyle extends StyleFunctionProps {
11
11
  align: keyof typeof align;
12
12
  color: string;
13
+ hasChildSVG: boolean;
13
14
  iconRotation: keyof typeof iconRotation;
14
15
  size: keyof typeof iconSizeStyles;
15
16
  }
@@ -24,13 +25,13 @@ declare const Icon: {
24
25
  marginStart?: string;
25
26
  display: string;
26
27
  };
27
- height: string;
28
- width: string;
29
- transform: string;
30
- fill: string;
28
+ height?: string;
29
+ width?: string;
30
+ transform?: string;
31
+ fill?: string;
31
32
  marginEnd?: string;
32
33
  marginStart?: string;
33
- display: string;
34
+ display?: string;
34
35
  };
35
36
  sizes?: {
36
37
  [key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
@@ -108,6 +108,19 @@ declare const Select: {
108
108
  "div[data-testid='ds-helperErrorText']": {
109
109
  marginLeft: string;
110
110
  };
111
+ /**
112
+ * Overriding Chakra default styles with styles that are RTL-aware to
113
+ * properly position the dropdown icon.
114
+ *
115
+ * To work properly, the `right` attribute needs to be unset before the
116
+ * `inset-inline-end` attribute is set. Additionally, `insetInlineEnd`
117
+ * which should map to `inset-inline-end` actually maps to `right`,
118
+ * which does not solve the problem. Maybe these are bugs in Chakra.
119
+ * */
120
+ ".chakra-select__icon-wrapper": {
121
+ right: string;
122
+ "inset-inline-end": string;
123
+ };
111
124
  };
112
125
  sizes?: {
113
126
  [key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nypl/design-system-react-components",
3
- "version": "4.1.4",
3
+ "version": "4.1.6",
4
4
  "description": "NYPL Reservoir Design System React Components",
5
5
  "repository": {
6
6
  "type": "git",
@@ -50,6 +50,7 @@
50
50
  "trailingComma": "es5"
51
51
  },
52
52
  "overrides": {
53
+ "@microsoft/api-extractor": "7.34.4",
53
54
  "types-ramda": "0.29.4"
54
55
  },
55
56
  "dependencies": {
@@ -125,7 +126,7 @@
125
126
  "tslib": "2.3.0",
126
127
  "typescript": "4.9.5",
127
128
  "vite": "5.4.18",
128
- "vite-plugin-dts": "2.1.0",
129
+ "vite-plugin-dts": "2.3.0",
129
130
  "vite-plugin-svgr": "4.3.0"
130
131
  }
131
132
  }