@chaibuilder/sdk 2.0.11 → 2.0.12

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/core.js CHANGED
@@ -8045,14 +8045,12 @@ const selectParent = (o, n) => {
8045
8045
  return /* @__PURE__ */ jsxs("div", { className: "space-y-0.5", children: [
8046
8046
  /* @__PURE__ */ jsx(Label, { className: "text-sm text-slate-800", children: startCase(o) }),
8047
8047
  /* @__PURE__ */ jsx(
8048
- ChaiSelect,
8048
+ "select",
8049
8049
  {
8050
- defaultValue: n,
8051
- options: a.map((l) => ({
8052
- value: l.family,
8053
- label: l.family
8054
- })),
8055
- onValueChange: r
8050
+ className: "mt-1 w-full cursor-pointer rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
8051
+ value: n,
8052
+ onChange: (l) => r(l.target.value),
8053
+ children: a.map((l) => /* @__PURE__ */ jsx("option", { value: l.family, children: l.family }, l.family))
8056
8054
  }
8057
8055
  )
8058
8056
  ] });
@@ -8120,22 +8118,22 @@ const selectParent = (o, n) => {
8120
8118
  l.length > 0 && /* @__PURE__ */ jsxs("div", { className: "flex gap-2 py-2", children: [
8121
8119
  /* @__PURE__ */ jsxs("div", { className: "w-full", children: [
8122
8120
  /* @__PURE__ */ jsx(Label, { className: "text-sm text-slate-800", children: g("Presets") }),
8123
- /* @__PURE__ */ jsx(
8124
- ChaiSelect,
8121
+ /* @__PURE__ */ jsxs(
8122
+ "select",
8125
8123
  {
8126
- defaultValue: r,
8127
- options: l.map((v) => ({
8128
- value: Object.keys(v)[0],
8129
- label: capitalize(Object.keys(v)[0])
8130
- })),
8131
- onValueChange: (v) => m(v)
8124
+ value: r,
8125
+ onChange: (v) => m(v.target.value),
8126
+ className: "w-full space-y-0.5 rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
8127
+ children: [
8128
+ /* @__PURE__ */ jsx("option", { value: "", children: "Select preset" }),
8129
+ Array.isArray(l) && l.map((v) => /* @__PURE__ */ jsx("option", { value: Object.keys(v)[0], children: capitalize(Object.keys(v)[0]) }, Object.keys(v)[0]))
8130
+ ]
8132
8131
  }
8133
8132
  )
8134
8133
  ] }),
8135
8134
  /* @__PURE__ */ jsx("div", { className: "flex w-[30%] items-end", children: /* @__PURE__ */ jsx(
8136
8135
  Button,
8137
8136
  {
8138
- size: "sm",
8139
8137
  className: "w-full text-sm",
8140
8138
  disabled: r === "",
8141
8139
  variant: "default",
package/dist/render.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { ChaiGoogleFont } from '@chaibuilder/runtime';
1
+ import { ChaiFontViaUrl } from '@chaibuilder/runtime';
2
2
 
3
3
  declare type BorderRadiusValue = false | string;
4
4
 
@@ -35,9 +35,9 @@ export declare const getChaiThemeCssVariables: (chaiTheme: Partial<ChaiBuilderTh
35
35
 
36
36
  export declare const getStylesForBlocks: (blocks: ChaiBlock[], themeOptions?: ChaiBuilderThemeOptions, includeBaseStyles?: boolean) => Promise<string>;
37
37
 
38
- export declare const getThemeFontsCSSImport: (fonts: ChaiGoogleFont[]) => any;
38
+ export declare const getThemeFontsCSSImport: (fonts: ChaiFontViaUrl[]) => any;
39
39
 
40
- export declare const getThemeFontsLinkMarkup: (fonts: ChaiGoogleFont[]) => any;
40
+ export declare const getThemeFontsLinkMarkup: (fonts: ChaiFontViaUrl[]) => any;
41
41
 
42
42
  declare type HSLColor = string;
43
43
 
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "author": "Suraj Air",
6
6
  "license": "BSD-3-Clause",
7
7
  "homepage": "https://chaibuilder.com",
8
- "version": "2.0.11",
8
+ "version": "2.0.12",
9
9
  "type": "module",
10
10
  "repository": {
11
11
  "type": "git",
@@ -53,7 +53,7 @@
53
53
  }
54
54
  },
55
55
  "peerDependencies": {
56
- "@chaibuilder/runtime": "2.0.5",
56
+ "@chaibuilder/runtime": "2.0.6",
57
57
  "@types/react": "*",
58
58
  "@types/react-dom": "*",
59
59
  "jotai": "2.12.1",
@@ -70,7 +70,7 @@
70
70
  },
71
71
  "dependencies": {
72
72
  "@ai-sdk/react": "^1.2.2",
73
- "@chaibuilder/runtime": "2.0.5",
73
+ "@chaibuilder/runtime": "2.0.6",
74
74
  "@floating-ui/dom": "1.6.13",
75
75
  "@floating-ui/react-dom": "2.1.2",
76
76
  "@mhsdesign/jit-browser-tailwindcss": "0.4.2",