@measured/puck-plugin-heading-analyzer 0.7.1-canary.9b15c6b → 0.8.0-canary.06b145b

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.css CHANGED
@@ -1,36 +1,51 @@
1
1
  /* css-module:/home/runner/work/puck/puck/packages/core/components/SidebarSection/styles.module.css/#css-module-data */
2
- ._SidebarSection_1y6bv_1 {
2
+ ._SidebarSection_ivnrs_1 {
3
3
  display: flex;
4
4
  position: relative;
5
5
  flex-direction: column;
6
6
  }
7
- ._SidebarSection_1y6bv_1:last-of-type {
7
+ ._SidebarSection_ivnrs_1:last-of-type {
8
8
  flex-grow: 1;
9
9
  }
10
- ._SidebarSection-title_1y6bv_11 {
10
+ ._SidebarSection-title_ivnrs_11 {
11
11
  background: white;
12
12
  padding: 16px;
13
13
  border-bottom: 1px solid var(--puck-color-grey-8);
14
+ overflow-x: scroll;
14
15
  }
15
- ._SidebarSection-content_1y6bv_17 {
16
+ ._SidebarSection-content_ivnrs_18 {
16
17
  border-bottom: 1px solid var(--puck-color-grey-8);
17
18
  padding: 16px;
18
19
  }
19
- ._SidebarSection--noPadding_1y6bv_22 ._SidebarSection-content_1y6bv_17 {
20
+ ._SidebarSection--noPadding_ivnrs_23 ._SidebarSection-content_ivnrs_18 {
20
21
  padding: 0px;
21
22
  }
22
- ._SidebarSection_1y6bv_1:last-of-type ._SidebarSection-content_1y6bv_17 {
23
+ ._SidebarSection_ivnrs_1:last-of-type ._SidebarSection-content_ivnrs_18 {
23
24
  border-bottom: none;
24
25
  flex-grow: 1;
25
26
  }
26
- ._SidebarSection-breadcrumb_1y6bv_31 {
27
+ ._SidebarSection-breadcrumbLabel_ivnrs_32 {
27
28
  color: var(--puck-color-azure-3);
29
+ flex-shrink: 0;
28
30
  }
29
- ._SidebarSection-breadcrumb_1y6bv_31:hover {
31
+ ._SidebarSection-breadcrumbLabel_ivnrs_32:hover {
30
32
  color: var(--puck-color-azure-4);
31
33
  cursor: pointer;
32
34
  text-decoration: underline;
33
35
  }
36
+ ._SidebarSection-breadcrumbs_ivnrs_43 {
37
+ align-items: center;
38
+ display: flex;
39
+ gap: 4px;
40
+ }
41
+ ._SidebarSection-breadcrumb_ivnrs_32 {
42
+ align-items: center;
43
+ display: flex;
44
+ gap: 4px;
45
+ }
46
+ ._SidebarSection-heading_ivnrs_55 {
47
+ padding-right: 16px;
48
+ }
34
49
 
35
50
  /* css-module:/home/runner/work/puck/puck/packages/core/components/Heading/styles.module.css/#css-module-data */
36
51
  ._Heading_1y35v_1 {
package/dist/index.js CHANGED
@@ -1081,7 +1081,7 @@ init_react_import();
1081
1081
 
1082
1082
  // css-module:/home/runner/work/puck/puck/packages/core/components/SidebarSection/styles.module.css#css-module
1083
1083
  init_react_import();
1084
- var styles_module_default = { "SidebarSection": "_SidebarSection_1y6bv_1", "SidebarSection-title": "_SidebarSection-title_1y6bv_11", "SidebarSection-content": "_SidebarSection-content_1y6bv_17", "SidebarSection--noPadding": "_SidebarSection--noPadding_1y6bv_22", "SidebarSection-breadcrumb": "_SidebarSection-breadcrumb_1y6bv_31" };
1084
+ var styles_module_default = { "SidebarSection": "_SidebarSection_ivnrs_1", "SidebarSection-title": "_SidebarSection-title_ivnrs_11", "SidebarSection-content": "_SidebarSection-content_ivnrs_18", "SidebarSection--noPadding": "_SidebarSection--noPadding_ivnrs_23", "SidebarSection-breadcrumbLabel": "_SidebarSection-breadcrumbLabel_ivnrs_32", "SidebarSection-breadcrumbs": "_SidebarSection-breadcrumbs_ivnrs_43", "SidebarSection-breadcrumb": "_SidebarSection-breadcrumb_ivnrs_32", "SidebarSection-heading": "_SidebarSection-heading_ivnrs_55" };
1085
1085
 
1086
1086
  // ../core/lib/get-class-name-factory.ts
1087
1087
  init_react_import();
@@ -1217,29 +1217,18 @@ var SidebarSection = ({
1217
1217
  children,
1218
1218
  title,
1219
1219
  background,
1220
- breadcrumb,
1220
+ breadcrumbs = [],
1221
1221
  breadcrumbClick,
1222
1222
  noPadding
1223
1223
  }) => {
1224
- return /* @__PURE__ */ import_react.default.createElement("div", { className: getClassName2({ noPadding }), style: { background } }, /* @__PURE__ */ import_react.default.createElement("div", { className: getClassName2("title") }, /* @__PURE__ */ import_react.default.createElement(
1225
- "span",
1224
+ return /* @__PURE__ */ import_react.default.createElement("div", { className: getClassName2({ noPadding }), style: { background } }, /* @__PURE__ */ import_react.default.createElement("div", { className: getClassName2("title") }, /* @__PURE__ */ import_react.default.createElement("div", { className: getClassName2("breadcrumbs") }, breadcrumbs.map((breadcrumb, i) => /* @__PURE__ */ import_react.default.createElement("div", { key: i, className: getClassName2("breadcrumb") }, /* @__PURE__ */ import_react.default.createElement(
1225
+ "div",
1226
1226
  {
1227
- style: {
1228
- display: "flex",
1229
- gap: 4,
1230
- alignItems: "center"
1231
- }
1227
+ className: getClassName2("breadcrumbLabel"),
1228
+ onClick: () => breadcrumbClick && breadcrumbClick(breadcrumb)
1232
1229
  },
1233
- breadcrumb && /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
1234
- "div",
1235
- {
1236
- className: getClassName2("breadcrumb"),
1237
- onClick: breadcrumbClick
1238
- },
1239
- breadcrumb
1240
- ), /* @__PURE__ */ import_react.default.createElement(chevron_right_default, { size: 16 })),
1241
- /* @__PURE__ */ import_react.default.createElement(Heading, { rank: 2, size: "xs" }, title)
1242
- )), /* @__PURE__ */ import_react.default.createElement("div", { className: getClassName2("content") }, children));
1230
+ breadcrumb.label
1231
+ ), /* @__PURE__ */ import_react.default.createElement(chevron_right_default, { size: 16 }))), /* @__PURE__ */ import_react.default.createElement("div", { className: getClassName2("heading") }, /* @__PURE__ */ import_react.default.createElement(Heading, { rank: 2, size: "xs" }, title)))), /* @__PURE__ */ import_react.default.createElement("div", { className: getClassName2("content") }, children));
1243
1232
  };
1244
1233
 
1245
1234
  // ../core/components/OutlineList/index.tsx
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@measured/puck-plugin-heading-analyzer",
3
- "version": "0.7.1-canary.9b15c6b",
3
+ "version": "0.8.0-canary.06b145b",
4
4
  "private": false,
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -14,7 +14,7 @@
14
14
  "dist"
15
15
  ],
16
16
  "devDependencies": {
17
- "@measured/puck": "^0.7.1-canary.9b15c6b",
17
+ "@measured/puck": "^0.8.0-canary.06b145b",
18
18
  "@types/react": "^18.2.0",
19
19
  "@types/react-dom": "^18.2.0",
20
20
  "eslint": "^7.32.0",