@umami/shiso 0.52.0 → 0.54.0

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
@@ -97,16 +97,14 @@ var import_react_zen10 = require("@umami/react-zen");
97
97
 
98
98
  // src/components/CodeBlock.tsx
99
99
  var import_react2 = require("react");
100
+ var import_classnames2 = __toESM(require("classnames"));
100
101
  var import_react_zen2 = require("@umami/react-zen");
101
- var import_google = require("next/font/google");
102
102
 
103
103
  // css-modules:E:\dev\umami-shiso\src\components\CodeBlock.module.css
104
104
  var CodeBlock_default = { "container": "CodeBlock_container__OGZlM", "button": "CodeBlock_button__Y2Y2Z", "copy": "CodeBlock_copy__NWI2Y", "check": "CodeBlock_check__YzQzO" };
105
105
 
106
106
  // src/components/CodeBlock.tsx
107
- var import_classnames2 = __toESM(require("classnames"));
108
107
  var import_jsx_runtime2 = require("react/jsx-runtime");
109
- var mono = (0, import_google.JetBrains_Mono)({ subsets: ["latin"] });
110
108
  function CodeBlock(props) {
111
109
  const textInput = (0, import_react2.useRef)(null);
112
110
  const [copied, setCopied] = (0, import_react2.useState)(false);
@@ -117,7 +115,7 @@ function CodeBlock(props) {
117
115
  setCopied(false);
118
116
  }, 1e3);
119
117
  };
120
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("pre", { ref: textInput, className: (0, import_classnames2.default)(CodeBlock_default.container, mono.className, "dark-theme"), children: [
118
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("pre", { ref: textInput, className: (0, import_classnames2.default)(CodeBlock_default.container, "dark-theme"), children: [
121
119
  props.children,
122
120
  /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("button", { "aria-label": "Copy code", className: CodeBlock_default.button, onClick: handleCopy, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_react_zen2.Icon, { size: "sm", className: copied ? CodeBlock_default.check : CodeBlock_default.copy, children: copied ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_react_zen2.Icons.Check, {}) : /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_react_zen2.Icons.Copy, {}) }) })
123
121
  ] });
package/dist/index.mjs CHANGED
@@ -60,16 +60,14 @@ import { Code } from "@umami/react-zen";
60
60
 
61
61
  // src/components/CodeBlock.tsx
62
62
  import { useState as useState2, useRef } from "react";
63
+ import classNames2 from "classnames";
63
64
  import { Icon, Icons } from "@umami/react-zen";
64
- import { JetBrains_Mono } from "next/font/google";
65
65
 
66
66
  // css-modules:E:\dev\umami-shiso\src\components\CodeBlock.module.css
67
67
  var CodeBlock_default = { "container": "CodeBlock_container__OGZlM", "button": "CodeBlock_button__Y2Y2Z", "copy": "CodeBlock_copy__NWI2Y", "check": "CodeBlock_check__YzQzO" };
68
68
 
69
69
  // src/components/CodeBlock.tsx
70
- import classNames2 from "classnames";
71
70
  import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
72
- var mono = JetBrains_Mono({ subsets: ["latin"] });
73
71
  function CodeBlock(props) {
74
72
  const textInput = useRef(null);
75
73
  const [copied, setCopied] = useState2(false);
@@ -80,7 +78,7 @@ function CodeBlock(props) {
80
78
  setCopied(false);
81
79
  }, 1e3);
82
80
  };
83
- return /* @__PURE__ */ jsxs2("pre", { ref: textInput, className: classNames2(CodeBlock_default.container, mono.className, "dark-theme"), children: [
81
+ return /* @__PURE__ */ jsxs2("pre", { ref: textInput, className: classNames2(CodeBlock_default.container, "dark-theme"), children: [
84
82
  props.children,
85
83
  /* @__PURE__ */ jsx2("button", { "aria-label": "Copy code", className: CodeBlock_default.button, onClick: handleCopy, children: /* @__PURE__ */ jsx2(Icon, { size: "sm", className: copied ? CodeBlock_default.check : CodeBlock_default.copy, children: copied ? /* @__PURE__ */ jsx2(Icons.Check, {}) : /* @__PURE__ */ jsx2(Icons.Copy, {}) }) })
86
84
  ] });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umami/shiso",
3
- "version": "0.52.0",
3
+ "version": "0.54.0",
4
4
  "description": "A content layer for Next.js",
5
5
  "homepage": "https://shiso.umami.is",
6
6
  "repository": {
@@ -45,10 +45,12 @@
45
45
  ]
46
46
  },
47
47
  "dependencies": {
48
+ "@fontsource/inter": "^5.2.5",
49
+ "@fontsource/jetbrains-mono": "^5.2.5",
48
50
  "@mdx-js/loader": "^3.0.0",
49
51
  "@mdx-js/mdx": "^3.1.0",
50
52
  "@mdx-js/react": "^3.0.0",
51
- "@umami/react-zen": "^0.88.0",
53
+ "@umami/react-zen": "^0.89.0",
52
54
  "classnames": "^2.5.1",
53
55
  "date-fns": "^4.1.0",
54
56
  "glob": "^10.3.10",
package/styles.css CHANGED
@@ -3086,30 +3086,31 @@ body a.Button_button__NDYwM {
3086
3086
  }
3087
3087
 
3088
3088
  /* virtual-css:css:190b71b0b870ea6c0882d0c839c39b19 */
3089
- .Dialog_dialog__ZmY2N {
3089
+ .Dialog_dialog__YzZhN {
3090
3090
  position: relative;
3091
3091
  outline: none;
3092
+ overflow: auto;
3092
3093
  }
3093
- .Dialog_title__Yzg1Y {
3094
+ .Dialog_title__NjZlN {
3094
3095
  font-size: var(--font-size-4);
3095
3096
  font-weight: 700;
3096
3097
  margin-bottom: var(--spacing-3);
3097
3098
  }
3098
- .Dialog_modal__OWRhY {
3099
+ .Dialog_modal__YjEzN {
3099
3100
  padding: var(--spacing-6);
3100
3101
  box-shadow: var(--box-shadow-4);
3101
3102
  background: var(--background-color);
3102
3103
  border: var(--border);
3103
3104
  border-radius: var(--border-radius);
3104
3105
  }
3105
- .Dialog_menu__YmJjN {
3106
+ .Dialog_menu__ZmFhN {
3106
3107
  padding: var(--spacing-2);
3107
3108
  box-shadow: var(--box-shadow-3);
3108
3109
  background: var(--background-color);
3109
3110
  border: var(--border);
3110
3111
  border-radius: var(--border-radius);
3111
3112
  }
3112
- .Dialog_sheet__Mjk2Y {
3113
+ .Dialog_sheet__NzkxM {
3113
3114
  background: var(--background-color);
3114
3115
  width: 100%;
3115
3116
  height: 100%;