@dt-dds/react-sidebar 1.0.0-beta.6 → 1.0.0-beta.7

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,14 @@
1
1
  # @dt-dds/react-sidebar
2
2
 
3
+ ## 1.0.0-beta.7
4
+
5
+ ### Patch Changes
6
+
7
+ - fix: add displayName to Icon and IconButton for production builds
8
+ - Updated dependencies
9
+ - @dt-dds/react-icon@1.0.0-beta.63
10
+ - @dt-dds/react-icon-button@1.0.0-beta.29
11
+
3
12
  ## 1.0.0-beta.6
4
13
 
5
14
  ### Minor Changes
package/dist/index.js CHANGED
@@ -311,7 +311,7 @@ var findDirectSidebarItems = (node) => {
311
311
  var isIconElement = (child) => {
312
312
  if (!(0, import_react5.isValidElement)(child)) return false;
313
313
  const componentType = child.type;
314
- if ((componentType == null ? void 0 : componentType.displayName) === "Icon" || (componentType == null ? void 0 : componentType.displayName) === "IconButton" || (componentType == null ? void 0 : componentType.displayName) === "SidebarToggle")
314
+ if ((componentType == null ? void 0 : componentType.displayName) === "Icon" || (componentType == null ? void 0 : componentType.displayName) === "IconButton" || (componentType == null ? void 0 : componentType.displayName) === "Sidebar.Toggle")
315
315
  return true;
316
316
  if (typeof child.type === "function" && (child.type.name === "Icon" || child.type.name === "IconButton" || child.type.name === "SidebarToggle"))
317
317
  return true;
@@ -321,7 +321,7 @@ var isIconElement = (child) => {
321
321
  var isSidebarToggleElement = (child) => {
322
322
  if (!(0, import_react5.isValidElement)(child)) return false;
323
323
  const componentType = child.type;
324
- if ((componentType == null ? void 0 : componentType.displayName) === "SidebarToggle") return true;
324
+ if ((componentType == null ? void 0 : componentType.displayName) === "Sidebar.Toggle") return true;
325
325
  if (typeof child.type === "function" && child.type.name === "SidebarToggle")
326
326
  return true;
327
327
  return false;
package/dist/index.mjs CHANGED
@@ -289,7 +289,7 @@ var findDirectSidebarItems = (node) => {
289
289
  var isIconElement = (child) => {
290
290
  if (!isValidElement(child)) return false;
291
291
  const componentType = child.type;
292
- if ((componentType == null ? void 0 : componentType.displayName) === "Icon" || (componentType == null ? void 0 : componentType.displayName) === "IconButton" || (componentType == null ? void 0 : componentType.displayName) === "SidebarToggle")
292
+ if ((componentType == null ? void 0 : componentType.displayName) === "Icon" || (componentType == null ? void 0 : componentType.displayName) === "IconButton" || (componentType == null ? void 0 : componentType.displayName) === "Sidebar.Toggle")
293
293
  return true;
294
294
  if (typeof child.type === "function" && (child.type.name === "Icon" || child.type.name === "IconButton" || child.type.name === "SidebarToggle"))
295
295
  return true;
@@ -299,7 +299,7 @@ var isIconElement = (child) => {
299
299
  var isSidebarToggleElement = (child) => {
300
300
  if (!isValidElement(child)) return false;
301
301
  const componentType = child.type;
302
- if ((componentType == null ? void 0 : componentType.displayName) === "SidebarToggle") return true;
302
+ if ((componentType == null ? void 0 : componentType.displayName) === "Sidebar.Toggle") return true;
303
303
  if (typeof child.type === "function" && child.type.name === "SidebarToggle")
304
304
  return true;
305
305
  return false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dt-dds/react-sidebar",
3
- "version": "1.0.0-beta.6",
3
+ "version": "1.0.0-beta.7",
4
4
  "license": "MIT",
5
5
  "exports": {
6
6
  ".": "./dist/index.js"
@@ -21,11 +21,11 @@
21
21
  },
22
22
  "dependencies": {
23
23
  "@dt-dds/react-core": "1.0.0-beta.59",
24
- "@dt-dds/react-icon": "1.0.0-beta.62",
24
+ "@dt-dds/react-icon": "1.0.0-beta.63",
25
25
  "@dt-dds/themes": "1.0.0-beta.14",
26
26
  "@dt-dds/react-tooltip": "1.0.0-beta.69",
27
27
  "@dt-dds/react-typography": "1.0.0-beta.50",
28
- "@dt-dds/react-icon-button": "1.0.0-beta.28"
28
+ "@dt-dds/react-icon-button": "1.0.0-beta.29"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@babel/core": "^7.22.9",