funda-ui 4.1.354 → 4.1.356

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/Tree/index.js CHANGED
@@ -4060,7 +4060,8 @@ function TreeList(props) {
4060
4060
  onCollapse === null || onCollapse === void 0 ? void 0 : onCollapse(e, {
4061
4061
  key: hyperlink.dataset.key,
4062
4062
  slug: hyperlink.dataset.slug,
4063
- link: hyperlink.dataset.link
4063
+ link: hyperlink.dataset.link,
4064
+ optiondata: hyperlink.dataset.optiondata
4064
4065
  }, fetchFunc);
4065
4066
 
4066
4067
  // hide child if expandedLink doesn't exist, on the contrary
@@ -4101,7 +4102,8 @@ function TreeList(props) {
4101
4102
  onSelect === null || onSelect === void 0 ? void 0 : onSelect(e, {
4102
4103
  key: hyperlink.dataset.key,
4103
4104
  slug: hyperlink.dataset.slug,
4104
- link: hyperlink.dataset.link
4105
+ link: hyperlink.dataset.link,
4106
+ optiondata: hyperlink.dataset.optiondata
4105
4107
  }, typeof evInitValue !== 'function' ? function () {
4106
4108
  return void 0;
4107
4109
  } : evInitValue);
@@ -4244,7 +4246,8 @@ function TreeList(props) {
4244
4246
  "aria-disabled": "true",
4245
4247
  "data-link": item.link,
4246
4248
  "data-slug": item.slug,
4247
- "data-key": item.key
4249
+ "data-key": item.key,
4250
+ "data-optiondata": JSON.stringify(item)
4248
4251
  }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", null, item.icon ? item.icon.indexOf('</svg>') < 0 ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Fragment, null, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("i", {
4249
4252
  className: item.icon
4250
4253
  }), " ") : /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("var", {
@@ -4271,7 +4274,8 @@ function TreeList(props) {
4271
4274
  onClick: handleCollapse,
4272
4275
  "data-link": item.link,
4273
4276
  "data-slug": item.slug,
4274
- "data-key": item.key
4277
+ "data-key": item.key,
4278
+ "data-optiondata": JSON.stringify(item)
4275
4279
  }, arrowGenerator()) : '', /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", {
4276
4280
  className: "checkbox-trigger"
4277
4281
  }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
@@ -4307,6 +4311,7 @@ function TreeList(props) {
4307
4311
  "data-link": item.link,
4308
4312
  "data-slug": item.slug,
4309
4313
  "data-key": item.key,
4314
+ "data-optiondata": JSON.stringify(item),
4310
4315
  onMouseEnter: typeof item.itemLinkMouseEnterCallback !== 'undefined' ? item.itemLinkMouseEnterCallback : function () {
4311
4316
  return void 0;
4312
4317
  },
@@ -4060,7 +4060,8 @@ function TreeList(props) {
4060
4060
  onCollapse === null || onCollapse === void 0 ? void 0 : onCollapse(e, {
4061
4061
  key: hyperlink.dataset.key,
4062
4062
  slug: hyperlink.dataset.slug,
4063
- link: hyperlink.dataset.link
4063
+ link: hyperlink.dataset.link,
4064
+ optiondata: hyperlink.dataset.optiondata
4064
4065
  }, fetchFunc);
4065
4066
 
4066
4067
  // hide child if expandedLink doesn't exist, on the contrary
@@ -4101,7 +4102,8 @@ function TreeList(props) {
4101
4102
  onSelect === null || onSelect === void 0 ? void 0 : onSelect(e, {
4102
4103
  key: hyperlink.dataset.key,
4103
4104
  slug: hyperlink.dataset.slug,
4104
- link: hyperlink.dataset.link
4105
+ link: hyperlink.dataset.link,
4106
+ optiondata: hyperlink.dataset.optiondata
4105
4107
  }, typeof evInitValue !== 'function' ? function () {
4106
4108
  return void 0;
4107
4109
  } : evInitValue);
@@ -4244,7 +4246,8 @@ function TreeList(props) {
4244
4246
  "aria-disabled": "true",
4245
4247
  "data-link": item.link,
4246
4248
  "data-slug": item.slug,
4247
- "data-key": item.key
4249
+ "data-key": item.key,
4250
+ "data-optiondata": JSON.stringify(item)
4248
4251
  }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", null, item.icon ? item.icon.indexOf('</svg>') < 0 ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Fragment, null, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("i", {
4249
4252
  className: item.icon
4250
4253
  }), " ") : /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("var", {
@@ -4271,7 +4274,8 @@ function TreeList(props) {
4271
4274
  onClick: handleCollapse,
4272
4275
  "data-link": item.link,
4273
4276
  "data-slug": item.slug,
4274
- "data-key": item.key
4277
+ "data-key": item.key,
4278
+ "data-optiondata": JSON.stringify(item)
4275
4279
  }, arrowGenerator()) : '', /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", {
4276
4280
  className: "checkbox-trigger"
4277
4281
  }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
@@ -4307,6 +4311,7 @@ function TreeList(props) {
4307
4311
  "data-link": item.link,
4308
4312
  "data-slug": item.slug,
4309
4313
  "data-key": item.key,
4314
+ "data-optiondata": JSON.stringify(item),
4310
4315
  onMouseEnter: typeof item.itemLinkMouseEnterCallback !== 'undefined' ? item.itemLinkMouseEnterCallback : function () {
4311
4316
  return void 0;
4312
4317
  },
@@ -202,7 +202,8 @@ export default function TreeList(props: TreeListProps) {
202
202
  onCollapse?.(e, {
203
203
  key: hyperlink.dataset.key,
204
204
  slug: hyperlink.dataset.slug,
205
- link: hyperlink.dataset.link
205
+ link: hyperlink.dataset.link,
206
+ optiondata: hyperlink.dataset.optiondata
206
207
  }, fetchFunc);
207
208
 
208
209
 
@@ -262,7 +263,8 @@ export default function TreeList(props: TreeListProps) {
262
263
  onSelect?.(e, {
263
264
  key: hyperlink.dataset.key,
264
265
  slug: hyperlink.dataset.slug,
265
- link: hyperlink.dataset.link
266
+ link: hyperlink.dataset.link,
267
+ optiondata: hyperlink.dataset.optiondata
266
268
  }, typeof evInitValue !== 'function' ? ()=>void(0) : evInitValue);
267
269
 
268
270
  if ( disableArrow ) {
@@ -434,6 +436,7 @@ export default function TreeList(props: TreeListProps) {
434
436
  data-link={item.link}
435
437
  data-slug={item.slug}
436
438
  data-key={item.key}
439
+ data-optiondata={JSON.stringify(item)}
437
440
  >
438
441
  <span>{item.icon ? item.icon.indexOf('</svg>') < 0 ? <><i className={item.icon}></i> </> : <var dangerouslySetInnerHTML={{ __html: `${item.icon}` }} /> : null}<i dangerouslySetInnerHTML={{ __html: `${item.title}` }}></i></span>
439
442
  </a>
@@ -447,7 +450,7 @@ export default function TreeList(props: TreeListProps) {
447
450
  onMouseLeave={typeof item.itemMouseLeaveCallback !== 'undefined' ? item.itemMouseLeaveCallback : () => void(0)}
448
451
  >
449
452
 
450
- {(item.children && item.children.length) || item.childrenAsync ? <span aria-expanded={item.active ? 'true' : 'false'} className={item.active ? `arrow active ${_async} ${_cusIcons}` : `arrow ${_async} ${_cusIcons}`} onClick={handleCollapse} data-link={item.link} data-slug={item.slug} data-key={item.key}>{arrowGenerator()}</span> : ''}
453
+ {(item.children && item.children.length) || item.childrenAsync ? <span aria-expanded={item.active ? 'true' : 'false'} className={item.active ? `arrow active ${_async} ${_cusIcons}` : `arrow ${_async} ${_cusIcons}`} onClick={handleCollapse} data-link={item.link} data-slug={item.slug} data-key={item.key} data-optiondata={JSON.stringify(item)}>{arrowGenerator()}</span> : ''}
451
454
 
452
455
  <span className="checkbox-trigger">
453
456
 
@@ -483,6 +486,7 @@ export default function TreeList(props: TreeListProps) {
483
486
  data-link={item.link}
484
487
  data-slug={item.slug}
485
488
  data-key={item.key}
489
+ data-optiondata={JSON.stringify(item)}
486
490
  onMouseEnter={typeof item.itemLinkMouseEnterCallback !== 'undefined' ? item.itemLinkMouseEnterCallback : () => void(0)}
487
491
  onMouseLeave={typeof item.itemLinkMouseLeaveCallback !== 'undefined' ? item.itemLinkMouseLeaveCallback : () => void(0)}
488
492
  >
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "author": "UIUX Lab",
3
3
  "email": "uiuxlab@gmail.com",
4
4
  "name": "funda-ui",
5
- "version": "4.1.354",
5
+ "version": "4.1.356",
6
6
  "description": "React components using pure Bootstrap 5+ which does not contain any external style and script libraries.",
7
7
  "repository": {
8
8
  "type": "git",