themed-markdown 0.1.76 → 0.1.77

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.mjs CHANGED
@@ -2312,9 +2312,11 @@ var createIndustryMarkdownComponents = ({
2312
2312
  fontSize: theme2.fontSizes[5],
2313
2313
  lineHeight: theme2.lineHeights.heading,
2314
2314
  fontWeight: theme2.fontWeights.bold,
2315
- marginTop: index === 0 ? 0 : theme2.space[4],
2315
+ marginTop: theme2.space[4],
2316
2316
  marginBottom: theme2.space[4],
2317
2317
  fontFamily: theme2.fonts.heading,
2318
+ paddingBottom: theme2.space[2],
2319
+ borderBottom: `1px solid ${theme2.colors.border}`,
2318
2320
  ...headerStyles
2319
2321
  },
2320
2322
  ...props
@@ -2325,9 +2327,11 @@ var createIndustryMarkdownComponents = ({
2325
2327
  fontSize: theme2.fontSizes[4],
2326
2328
  lineHeight: theme2.lineHeights.heading,
2327
2329
  fontWeight: theme2.fontWeights.bold,
2328
- marginTop: index === 0 ? 0 : theme2.space[4],
2330
+ marginTop: theme2.space[4],
2329
2331
  marginBottom: theme2.space[3],
2330
2332
  fontFamily: theme2.fonts.heading,
2333
+ paddingBottom: theme2.space[2],
2334
+ borderBottom: `1px solid ${theme2.colors.border}`,
2331
2335
  ...headerStyles
2332
2336
  },
2333
2337
  ...props
@@ -2338,12 +2342,48 @@ var createIndustryMarkdownComponents = ({
2338
2342
  fontSize: theme2.fontSizes[3],
2339
2343
  lineHeight: theme2.lineHeights.heading,
2340
2344
  fontWeight: theme2.fontWeights.semibold,
2341
- marginTop: index === 0 ? 0 : theme2.space[4],
2345
+ marginTop: theme2.space[4],
2342
2346
  marginBottom: theme2.space[3],
2343
2347
  fontFamily: theme2.fonts.heading
2344
2348
  },
2345
2349
  ...props
2346
2350
  }, children),
2351
+ h4: ({ children, ...props }) => /* @__PURE__ */ React9.createElement("h4", {
2352
+ style: {
2353
+ color: theme2.colors.text,
2354
+ fontSize: theme2.fontSizes[2],
2355
+ lineHeight: theme2.lineHeights.heading,
2356
+ fontWeight: theme2.fontWeights.semibold,
2357
+ marginTop: theme2.space[3],
2358
+ marginBottom: theme2.space[2],
2359
+ fontFamily: theme2.fonts.heading
2360
+ },
2361
+ ...props
2362
+ }, children),
2363
+ h5: ({ children, ...props }) => /* @__PURE__ */ React9.createElement("h5", {
2364
+ style: {
2365
+ color: theme2.colors.text,
2366
+ fontSize: theme2.fontSizes[1],
2367
+ lineHeight: theme2.lineHeights.heading,
2368
+ fontWeight: theme2.fontWeights.semibold,
2369
+ marginTop: theme2.space[3],
2370
+ marginBottom: theme2.space[1],
2371
+ fontFamily: theme2.fonts.heading
2372
+ },
2373
+ ...props
2374
+ }, children),
2375
+ h6: ({ children, ...props }) => /* @__PURE__ */ React9.createElement("h6", {
2376
+ style: {
2377
+ color: theme2.colors.text,
2378
+ fontSize: theme2.fontSizes[1],
2379
+ lineHeight: theme2.lineHeights.heading,
2380
+ fontWeight: theme2.fontWeights.medium,
2381
+ marginTop: theme2.space[3],
2382
+ marginBottom: theme2.space[1],
2383
+ fontFamily: theme2.fonts.heading
2384
+ },
2385
+ ...props
2386
+ }, children),
2347
2387
  p: ({ children, ...props }) => /* @__PURE__ */ React9.createElement("p", {
2348
2388
  style: {
2349
2389
  color: theme2.colors.text,
@@ -2704,7 +2744,7 @@ var createIndustryMarkdownComponents = ({
2704
2744
  }), "Fill & Copy (", placeholders.length, ")"))), isPrompt ? /* @__PURE__ */ React9.createElement("div", {
2705
2745
  style: {
2706
2746
  margin: 0,
2707
- padding: theme2.space[5],
2747
+ padding: theme2.space[1],
2708
2748
  backgroundColor: "transparent",
2709
2749
  fontSize: theme2.fontSizes[1],
2710
2750
  lineHeight: theme2.lineHeights.body,
@@ -2731,7 +2771,7 @@ var createIndustryMarkdownComponents = ({
2731
2771
  })) : /* @__PURE__ */ React9.createElement("pre", {
2732
2772
  style: {
2733
2773
  margin: 0,
2734
- padding: theme2.space[4],
2774
+ padding: theme2.space[1],
2735
2775
  backgroundColor: "transparent",
2736
2776
  overflow: "auto",
2737
2777
  fontSize: theme2.fontSizes[1],
@@ -27,6 +27,9 @@ export declare const createIndustryMarkdownComponents: ({ theme, slideIdPrefix,
27
27
  h1: ({ children, ...props }: HeadingProps) => React.JSX.Element;
28
28
  h2: ({ children, ...props }: HeadingProps) => React.JSX.Element;
29
29
  h3: ({ children, ...props }: HeadingProps) => React.JSX.Element;
30
+ h4: ({ children, ...props }: HeadingProps) => React.JSX.Element;
31
+ h5: ({ children, ...props }: HeadingProps) => React.JSX.Element;
32
+ h6: ({ children, ...props }: HeadingProps) => React.JSX.Element;
30
33
  p: ({ children, ...props }: MarkdownComponentProps) => React.JSX.Element;
31
34
  ul: ({ children, ...props }: MarkdownComponentProps) => React.JSX.Element;
32
35
  ol: ({ children, ...props }: MarkdownComponentProps) => React.JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"IndustryMarkdownComponents.d.ts","sourceRoot":"","sources":["../../../industryMarkdown/components/IndustryMarkdownComponents.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAC;AACtD,OAAO,EACL,kBAAkB,EAClB,iBAAiB,EACjB,cAAc,EAEf,MAAM,+BAA+B,CAAC;AAEvC,OAAO,KAAoC,MAAM,OAAO,CAAC;AAEzD,OAAO,EACL,sBAAsB,EACtB,YAAY,EACZ,aAAa,EACb,SAAS,EACT,UAAU,EACV,SAAS,EACT,WAAW,EAEZ,MAAM,6BAA6B,CAAC;AAMrC,UAAU,+BAA+B;IACvC,KAAK,EAAE,KAAK,CAAC;IACb,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;IACzD,gBAAgB,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACtF,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACtC,eAAe,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;IAC/E,aAAa,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,oBAAoB,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,EAAE,EAAE,aAAa,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/E,oBAAoB,CAAC,EAAE,CACrB,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,kBAAkB,KACzB,OAAO,CAAC,iBAAiB,CAAC,CAAC;IAChC,gBAAgB,EAAE,OAAO,CAAC;IAC1B,4BAA4B,CAAC,EAAE,MAAM,CAAC;IACtC,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAgKD;;;GAGG;AACH,eAAO,MAAM,gCAAgC,GAAI,iPAgB9C,+BAA+B;iCAqBD,YAAY;iCAiBZ,YAAY;iCAiBZ,YAAY;gCAkBb,sBAAsB;iCAgBrB,sBAAsB;iCAgBtB,sBAAsB;iCAgBtB,aAAa;oCAwGV,sBAAsB;oCAsBtB,sBAAsB;iCAUzB,sBAAsB;iCActB,sBAAsB;sCAcjB,SAAS;kCAWb,UAAU;sCAWN,sBAAsB;oCAKxB,sBAAsB;2CAkBf,WAAW;oDAyBF,SAAS;CAiT5D,CAAC"}
1
+ {"version":3,"file":"IndustryMarkdownComponents.d.ts","sourceRoot":"","sources":["../../../industryMarkdown/components/IndustryMarkdownComponents.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAC;AACtD,OAAO,EACL,kBAAkB,EAClB,iBAAiB,EACjB,cA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AAY;iCAmBZ,YAAY;iCAmBZ,YAAY;iCAgBZ,YAAY;iCAgBZ,YAAY;iCAgBZ,YAAY;gCAkBb,sBAAsB;iCAgBrB,sBAAsB;iCAgBtB,sBAAsB;iCAgBtB,aAAa;oCAwGV,sBAAsB;oCAsBtB,sBAAsB;iCAUzB,sBAAsB;iCActB,sBAAsB;sCAcjB,SAAS;kCAWb,UAAU;sCAWN,sBAAsB;oCAKxB,sBAAsB;2CAkBf,WAAW;oDAyBF,SAAS;CAiT5D,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "themed-markdown",
3
- "version": "0.1.76",
3
+ "version": "0.1.77",
4
4
  "description": "Industry-themed markdown renderer with presentation capabilities",
5
5
  "type": "module",
6
6
  "main": "dist/index.mjs",