@ceed/ads 0.0.63 → 0.0.65

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/dist/index.js CHANGED
@@ -222,7 +222,7 @@ function Breadcrumbs(props) {
222
222
  const { crumbs, collapsed, size, ...innerProps } = props;
223
223
  const [needCollapsed, setNeedCollapsed] = useState(false);
224
224
  const firstCrumb = crumbs[0];
225
- const restCrumbs = crumbs.slice(-(MAX_CRUMBS - 1));
225
+ const restCrumbs = crumbs.length === 1 ? [] : crumbs.slice(-(MAX_CRUMBS - 1));
226
226
  const collapsingCrumbs = crumbs.slice(1, -(MAX_CRUMBS - 1));
227
227
  return /* @__PURE__ */ React4.createElement(JoyBreadcrumbs, { size, ...innerProps }, firstCrumb, collapsingCrumbs.length && (collapsed && !needCollapsed ? /* @__PURE__ */ React4.createElement(Button_default, { size, variant: "plain", color: "neutral", onClick: () => setNeedCollapsed(true) }, "\u2022\u2022\u2022") : collapsingCrumbs), restCrumbs);
228
228
  }
package/framer/index.js CHANGED
@@ -34690,7 +34690,7 @@ function Breadcrumbs3(props) {
34690
34690
  const _a = props, { crumbs, collapsed, size } = _a, innerProps = __objRest(_a, ["crumbs", "collapsed", "size"]);
34691
34691
  const [needCollapsed, setNeedCollapsed] = useState23(false);
34692
34692
  const firstCrumb = crumbs[0];
34693
- const restCrumbs = crumbs.slice(-(MAX_CRUMBS - 1));
34693
+ const restCrumbs = crumbs.length === 1 ? [] : crumbs.slice(-(MAX_CRUMBS - 1));
34694
34694
  const collapsingCrumbs = crumbs.slice(1, -(MAX_CRUMBS - 1));
34695
34695
  return /* @__PURE__ */ jsxs2(Breadcrumbs_default, __spreadProps(__spreadValues({ size }, innerProps), { children: [
34696
34696
  firstCrumb,
@@ -41739,8 +41739,8 @@ var breadcrumbsPropertyControls = {
41739
41739
  },
41740
41740
  defaultValue: []
41741
41741
  },
41742
- separatorIcon: {
41743
- title: "Separator Icon",
41742
+ separator: {
41743
+ title: "Separator",
41744
41744
  type: ControlType5.ComponentInstance
41745
41745
  },
41746
41746
  size: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ceed/ads",
3
- "version": "0.0.63",
3
+ "version": "0.0.65",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",