@dt-dds/react-icon-button 1.0.0-beta.28 → 1.0.0-beta.30

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # @dt-ui/react-icon-button
2
2
 
3
+ ## 1.0.0-beta.30
4
+
5
+ ### Patch Changes
6
+
7
+ - chore: update to ESLint 10
8
+ - chore: update to ESLint 9
9
+ - fix: default icon type in themes
10
+ - Updated dependencies
11
+ - Updated dependencies
12
+ - Updated dependencies
13
+ - @dt-dds/react-core@1.0.0-beta.60
14
+ - @dt-dds/themes@1.0.0-beta.15
15
+
16
+ ## 1.0.0-beta.29
17
+
18
+ ### Patch Changes
19
+
20
+ - fix: add displayName to Icon and IconButton for production builds
21
+
3
22
  ## 1.0.0-beta.28
4
23
 
5
24
  ### Minor Changes
package/dist/index.d.mts CHANGED
@@ -14,7 +14,10 @@ interface IconButtonProps extends ComponentPropsWithoutRef<'button'>, BaseProps
14
14
  size?: ComponentSize;
15
15
  cssOverrides?: ReturnType<typeof css>;
16
16
  }
17
- declare const IconButton: ({ children, dataTestId, isDisabled, ariaLabel, variant, size, onClick, cssOverrides, ...props }: IconButtonProps) => react_jsx_runtime.JSX.Element;
17
+ declare const IconButton: {
18
+ ({ children, dataTestId, isDisabled, ariaLabel, variant, size, onClick, cssOverrides, ...props }: IconButtonProps): react_jsx_runtime.JSX.Element;
19
+ displayName: string;
20
+ };
18
21
 
19
22
  declare module '@emotion/react' {
20
23
  interface Theme extends CustomTheme {
package/dist/index.d.ts CHANGED
@@ -14,7 +14,10 @@ interface IconButtonProps extends ComponentPropsWithoutRef<'button'>, BaseProps
14
14
  size?: ComponentSize;
15
15
  cssOverrides?: ReturnType<typeof css>;
16
16
  }
17
- declare const IconButton: ({ children, dataTestId, isDisabled, ariaLabel, variant, size, onClick, cssOverrides, ...props }: IconButtonProps) => react_jsx_runtime.JSX.Element;
17
+ declare const IconButton: {
18
+ ({ children, dataTestId, isDisabled, ariaLabel, variant, size, onClick, cssOverrides, ...props }: IconButtonProps): react_jsx_runtime.JSX.Element;
19
+ displayName: string;
20
+ };
18
21
 
19
22
  declare module '@emotion/react' {
20
23
  interface Theme extends CustomTheme {
package/dist/index.js CHANGED
@@ -178,7 +178,7 @@ var IconButton = (_a) => {
178
178
  }
179
179
  e.preventDefault();
180
180
  e.stopPropagation();
181
- onClick && onClick(e);
181
+ onClick == null ? void 0 : onClick(e);
182
182
  };
183
183
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
184
184
  IconButtonStyled,
@@ -195,6 +195,7 @@ var IconButton = (_a) => {
195
195
  })
196
196
  );
197
197
  };
198
+ IconButton.displayName = "IconButton";
198
199
  // Annotate the CommonJS export names for ESM import in node:
199
200
  0 && (module.exports = {
200
201
  IconButton
package/dist/index.mjs CHANGED
@@ -145,7 +145,7 @@ var IconButton = (_a) => {
145
145
  }
146
146
  e.preventDefault();
147
147
  e.stopPropagation();
148
- onClick && onClick(e);
148
+ onClick == null ? void 0 : onClick(e);
149
149
  };
150
150
  return /* @__PURE__ */ jsx(
151
151
  IconButtonStyled,
@@ -162,6 +162,7 @@ var IconButton = (_a) => {
162
162
  })
163
163
  );
164
164
  };
165
+ IconButton.displayName = "IconButton";
165
166
  export {
166
167
  IconButton
167
168
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dt-dds/react-icon-button",
3
- "version": "1.0.0-beta.28",
3
+ "version": "1.0.0-beta.30",
4
4
  "license": "MIT",
5
5
  "exports": {
6
6
  ".": "./dist/index.js"
@@ -20,15 +20,15 @@
20
20
  "test:update:snapshot": "jest -u"
21
21
  },
22
22
  "dependencies": {
23
- "@dt-dds/react-core": "1.0.0-beta.59",
24
- "@dt-dds/themes": "1.0.0-beta.14"
23
+ "@dt-dds/react-core": "1.0.0-beta.60",
24
+ "@dt-dds/themes": "1.0.0-beta.15"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@babel/core": "^7.22.9",
28
28
  "@babel/preset-env": "^7.22.9",
29
29
  "@babel/preset-react": "^7.22.5",
30
30
  "@babel/preset-typescript": "^7.23.3",
31
- "@dt-dds/react-icon": "1.0.0-beta.62",
31
+ "@dt-dds/react-icon": "1.0.0-beta.64",
32
32
  "@emotion/babel-plugin": "^11.11.0",
33
33
  "@emotion/css": "^11.7.1",
34
34
  "@emotion/jest": "^11.10.0",