@garretapp/sdk 0.1.0 → 0.1.1
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/react.cjs +2 -2
- package/dist/react.d.cts +2 -1
- package/dist/react.d.ts +2 -1
- package/dist/react.js +2 -2
- package/package.json +1 -1
package/dist/react.cjs
CHANGED
|
@@ -236,10 +236,10 @@ function getGarret() {
|
|
|
236
236
|
};
|
|
237
237
|
}
|
|
238
238
|
function EmptyState({ children }) {
|
|
239
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "gx-empty", children });
|
|
239
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "gx-empty", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "gx-empty-msg", children }) });
|
|
240
240
|
}
|
|
241
241
|
function ErrorState({ children }) {
|
|
242
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "gx-error", children });
|
|
242
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "gx-error", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "gx-empty-msg", children }) });
|
|
243
243
|
}
|
|
244
244
|
function Scroll({ children }) {
|
|
245
245
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "gx-scroll", children });
|
package/dist/react.d.cts
CHANGED
|
@@ -11,7 +11,8 @@ import './protocol-Do0BJdeE.cjs';
|
|
|
11
11
|
* Import from `@garretapp/sdk/react`.
|
|
12
12
|
*/
|
|
13
13
|
type Tone = 'neutral' | 'accent' | 'success' | 'warning' | 'danger';
|
|
14
|
-
/** Centered muted message (supports rich children).
|
|
14
|
+
/** Centered muted message (supports rich children). The inner wrapper keeps the message a single flow
|
|
15
|
+
* so it centers as one block (rather than each inline piece becoming its own flex/grid line). */
|
|
15
16
|
declare function EmptyState({ children }: {
|
|
16
17
|
children: ReactNode;
|
|
17
18
|
}): JSX.Element;
|
package/dist/react.d.ts
CHANGED
|
@@ -11,7 +11,8 @@ import './protocol-Do0BJdeE.js';
|
|
|
11
11
|
* Import from `@garretapp/sdk/react`.
|
|
12
12
|
*/
|
|
13
13
|
type Tone = 'neutral' | 'accent' | 'success' | 'warning' | 'danger';
|
|
14
|
-
/** Centered muted message (supports rich children).
|
|
14
|
+
/** Centered muted message (supports rich children). The inner wrapper keeps the message a single flow
|
|
15
|
+
* so it centers as one block (rather than each inline piece becoming its own flex/grid line). */
|
|
15
16
|
declare function EmptyState({ children }: {
|
|
16
17
|
children: ReactNode;
|
|
17
18
|
}): JSX.Element;
|
package/dist/react.js
CHANGED
|
@@ -5,10 +5,10 @@ import { useState, useMemo, useEffect, useRef, useCallback } from 'react';
|
|
|
5
5
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
6
6
|
|
|
7
7
|
function EmptyState({ children }) {
|
|
8
|
-
return /* @__PURE__ */ jsx("div", { className: "gx-empty", children });
|
|
8
|
+
return /* @__PURE__ */ jsx("div", { className: "gx-empty", children: /* @__PURE__ */ jsx("div", { className: "gx-empty-msg", children }) });
|
|
9
9
|
}
|
|
10
10
|
function ErrorState({ children }) {
|
|
11
|
-
return /* @__PURE__ */ jsx("div", { className: "gx-error", children });
|
|
11
|
+
return /* @__PURE__ */ jsx("div", { className: "gx-error", children: /* @__PURE__ */ jsx("div", { className: "gx-empty-msg", children }) });
|
|
12
12
|
}
|
|
13
13
|
function Scroll({ children }) {
|
|
14
14
|
return /* @__PURE__ */ jsx("div", { className: "gx-scroll", children });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@garretapp/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Build extensions for Garret — one SDK for both web widgets and full-access native extensions. Host runtime (defineHost), UI client + React hooks. See docs/garret.html.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Sudharsan Selvaraj",
|