@chaibuilder/sdk 2.0.9 → 2.0.11
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/{ChaiThemeFn-Cort9tch.js → chai-theme-helpers-BpnwYsLZ.js} +72 -54
- package/dist/chai-theme-helpers-D2bHv81c.cjs +22 -0
- package/dist/core.cjs +5 -5
- package/dist/core.js +79 -113
- package/dist/fonts/GeistMonoVF.woff +0 -0
- package/dist/fonts/GeistVF.woff +0 -0
- package/dist/{plugin-kUMxtQR5.js → plugin-D56-CF7U.js} +1 -1
- package/dist/plugin-PDQQ8m4D.cjs +1 -0
- package/dist/render.cjs +2 -2
- package/dist/render.d.ts +4 -4
- package/dist/render.js +46 -43
- package/dist/tailwind.cjs +1 -1
- package/dist/tailwind.d.ts +4 -4
- package/dist/tailwind.js +1 -1
- package/package.json +3 -3
- package/dist/ChaiThemeFn-DQu-2Eh9.cjs +0 -13
- package/dist/plugin-2xcljWGM.cjs +0 -1
package/dist/core.js
CHANGED
|
@@ -16,9 +16,9 @@ import { useFloating, shift } from "@floating-ui/react-dom";
|
|
|
16
16
|
import { PinTopIcon, PinBottomIcon, PinLeftIcon, PinRightIcon, ArrowUpIcon, PlusIcon, CopyIcon, TrashIcon, DragHandleDots2Icon, BoxModelIcon, DotsVerticalIcon, MobileIcon, LaptopIcon, DesktopIcon, Cross2Icon, InfoCircledIcon, EyeOpenIcon, EyeClosedIcon, BorderAllIcon, WidthIcon, HeightIcon, ArrowRightIcon, ArrowDownIcon, ArrowLeftIcon, ArrowTopLeftIcon, ArrowTopRightIcon, ArrowBottomRightIcon, ArrowBottomLeftIcon, AlignLeftIcon, AlignCenterHorizontallyIcon, AlignRightIcon, StretchHorizontallyIcon, FontItalicIcon, UnderlineIcon, OverlineIcon, LetterCaseUppercaseIcon, Cross1Icon, BoxIcon, MinusIcon, TriangleDownIcon, RowSpacingIcon, CrossCircledIcon, CaretRightIcon, CardStackIcon, CardStackPlusIcon, ScissorsIcon, CheckIcon, SunIcon, ResetIcon, EraserIcon, ZoomInIcon, MixerHorizontalIcon, LightningBoltIcon } from "@radix-ui/react-icons";
|
|
17
17
|
import { useThrottledCallback, useDebouncedCallback, useResizeObserver, useIntervalEffect } from "@react-hookz/web";
|
|
18
18
|
import { useFeature, FlagsProvider } from "flagged";
|
|
19
|
-
import { getRegisteredChaiBlock, getDefaultBlockProps, useRegisteredChaiBlocks, getBlockFormSchemas, syncBlocksWithDefaults } from "@chaibuilder/runtime";
|
|
19
|
+
import { getRegisteredChaiBlock, getDefaultBlockProps, useRegisteredFonts, useRegisteredChaiBlocks, getBlockFormSchemas, syncBlocksWithDefaults } from "@chaibuilder/runtime";
|
|
20
20
|
import { registerChaiBlock as Ue } from "@chaibuilder/runtime";
|
|
21
|
-
import { e as getDefaultExportFromCjs, d as defaultThemeOptions, g as getChaiThemeOptions, p as plugin, a as getChaiThemeCssVariables, c as getThemeFontsLinkMarkup } from "./
|
|
21
|
+
import { e as getDefaultExportFromCjs, d as defaultThemeOptions, g as getChaiThemeOptions, p as plugin, a as getChaiThemeCssVariables, c as getThemeFontsLinkMarkup, f as getThemeCustomFontFace } from "./chai-theme-helpers-BpnwYsLZ.js";
|
|
22
22
|
import { PlusIcon as PlusIcon$1, ChevronRight, DatabaseIcon, ChevronLeft, Bold, Italic, Underline as Underline$1, Strikethrough, List, ListOrdered, AlignLeft, AlignCenter, AlignRight, Link as Link$1, Unlink, Maximize2, X, Plus, PlusCircle, ChevronDown, Loader, SparklesIcon, Globe, PencilIcon, FileJson, Zap, EyeOff, MoreVertical, Eye, ChevronsDown, ChevronsUp, Languages, FileEdit, Recycle, SmileIcon, ShuffleIcon, Moon, Sparkles, Loader2, Image as Image$1, Send, DatabaseZapIcon, Edit2, Paintbrush, Layers } from "lucide-react";
|
|
23
23
|
import RjForm from "@rjsf/core";
|
|
24
24
|
import validator from "@rjsf/validator-ajv8";
|
|
@@ -41,10 +41,10 @@ import { ErrorBoundary } from "react-error-boundary";
|
|
|
41
41
|
import { useHotkeys } from "react-hotkeys-hook";
|
|
42
42
|
import { motion } from "framer-motion";
|
|
43
43
|
import TreeModel from "tree-model";
|
|
44
|
-
import typography from "@tailwindcss/typography";
|
|
45
|
-
import forms from "@tailwindcss/forms";
|
|
46
44
|
import aspectRatio from "@tailwindcss/aspect-ratio";
|
|
47
45
|
import containerQueries from "@tailwindcss/container-queries";
|
|
46
|
+
import forms from "@tailwindcss/forms";
|
|
47
|
+
import typography from "@tailwindcss/typography";
|
|
48
48
|
import ReactDOM from "react-dom";
|
|
49
49
|
import { Resizable } from "re-resizable";
|
|
50
50
|
const isSelfAtom = (o, n) => o.unstable_is ? o.unstable_is(n) : n === o, hasInitialValue = (o) => "init" in o, isActuallyWritableAtom = (o) => !!o.write, isAtomStateInitialized = (o) => "v" in o || "e" in o, returnAtomValue = (o) => {
|
|
@@ -3793,7 +3793,9 @@ const useHandleCanvasDblClick = (o, n) => {
|
|
|
3793
3793
|
);
|
|
3794
3794
|
useEffect(() => {
|
|
3795
3795
|
a ? d == null || d.documentElement.classList.add("dark") : d == null || d.documentElement.classList.remove("dark");
|
|
3796
|
-
}, [a, d])
|
|
3796
|
+
}, [a, d]);
|
|
3797
|
+
const f = useRegisteredFonts();
|
|
3798
|
+
useEffect(() => {
|
|
3797
3799
|
!p || !p.tailwind || (p.tailwind.config = {
|
|
3798
3800
|
darkMode: "class",
|
|
3799
3801
|
theme: {
|
|
@@ -3813,22 +3815,22 @@ const useHandleCanvasDblClick = (o, n) => {
|
|
|
3813
3815
|
forms,
|
|
3814
3816
|
aspectRatio,
|
|
3815
3817
|
containerQueries,
|
|
3816
|
-
plugin(function({ addBase:
|
|
3817
|
-
|
|
3818
|
+
plugin(function({ addBase: S, theme: B }) {
|
|
3819
|
+
S({
|
|
3818
3820
|
"h1,h2,h3,h4,h5,h6": {
|
|
3819
|
-
fontFamily:
|
|
3821
|
+
fontFamily: B("fontFamily.heading")
|
|
3820
3822
|
},
|
|
3821
3823
|
body: {
|
|
3822
|
-
fontFamily:
|
|
3823
|
-
color:
|
|
3824
|
-
backgroundColor:
|
|
3824
|
+
fontFamily: B("fontFamily.body"),
|
|
3825
|
+
color: B("colors.foreground"),
|
|
3826
|
+
backgroundColor: B("colors.background")
|
|
3825
3827
|
}
|
|
3826
3828
|
});
|
|
3827
3829
|
})
|
|
3828
3830
|
]
|
|
3829
3831
|
});
|
|
3830
3832
|
}, [o, n, p]), useEffect(() => {
|
|
3831
|
-
g && (g.textContent = `${map(r, (
|
|
3833
|
+
g && (g.textContent = `${map(r, (S) => `[data-block-id="${S}"]`).join(",")}{
|
|
3832
3834
|
outline: 1px solid ${r.length === 1 ? "#42a1fc !important" : "orange !important"}; outline-offset: -1px;
|
|
3833
3835
|
}`);
|
|
3834
3836
|
}, [r, g]), useEffect(() => {
|
|
@@ -3836,19 +3838,26 @@ const useHandleCanvasDblClick = (o, n) => {
|
|
|
3836
3838
|
}, [i, h]), useEffect(() => {
|
|
3837
3839
|
u && (u.textContent = '[data-highlighted="true"]{ outline: 1px solid #42a1fc !important; outline-offset: -1px;}');
|
|
3838
3840
|
}, [u]), useEffect(() => {
|
|
3839
|
-
m && (m.textContent = `${map(l, ({ id:
|
|
3841
|
+
m && (m.textContent = `${map(l, ({ id: S }) => `[data-style-id="${S}"]`).join(",")}{
|
|
3840
3842
|
outline: 1px solid orange !important; outline-offset: -1px;
|
|
3841
3843
|
}`);
|
|
3842
3844
|
}, [l, m]), useEffect(() => {
|
|
3843
3845
|
d.querySelector("#drop-target-block").innerHTML = c ? `[data-block-id="${c}"]{ outline: 1px dashed orange !important; outline-offset: -1px;}` : "";
|
|
3844
3846
|
}, [c, d]);
|
|
3845
|
-
const
|
|
3846
|
-
|
|
3847
|
-
|
|
3848
|
-
|
|
3847
|
+
const x = useMemo(() => getChaiThemeCssVariables(o), [o]), b = useMemo(() => {
|
|
3848
|
+
const { heading: S, body: B } = {
|
|
3849
|
+
heading: get(o, "fontFamily.heading"),
|
|
3850
|
+
body: get(o, "fontFamily.body")
|
|
3851
|
+
};
|
|
3852
|
+
return f.filter((E) => E.family === S || E.family === B);
|
|
3853
|
+
}, [o == null ? void 0 : o.fontFamily, f]), y = useMemo(() => getThemeFontsLinkMarkup(filter(b, (S) => has(S, "url"))), [b]), v = useMemo(
|
|
3854
|
+
() => getThemeCustomFontFace(filter(b, (S) => has(S, "src"))),
|
|
3855
|
+
[b]
|
|
3856
|
+
);
|
|
3849
3857
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
3850
|
-
/* @__PURE__ */ jsx("style", { id: "chai-theme", children:
|
|
3851
|
-
/* @__PURE__ */ jsx("span", { id: "chai-fonts", dangerouslySetInnerHTML: { __html:
|
|
3858
|
+
/* @__PURE__ */ jsx("style", { id: "chai-theme", children: x }),
|
|
3859
|
+
/* @__PURE__ */ jsx("span", { id: "chai-fonts", dangerouslySetInnerHTML: { __html: y } }),
|
|
3860
|
+
/* @__PURE__ */ jsx("style", { id: "chai-custom-fonts", dangerouslySetInnerHTML: { __html: v } })
|
|
3852
3861
|
] });
|
|
3853
3862
|
}, ResizableCanvasWrapper = ({ children: o, onMount: n, onResize: r }) => {
|
|
3854
3863
|
const [, a] = useSelectedBlockIds(), [, l] = useSelectedStylingBlocks(), i = useRef(null), c = useDebouncedCallback(
|
|
@@ -7991,74 +8000,22 @@ const selectParent = (o, n) => {
|
|
|
7991
8000
|
) }),
|
|
7992
8001
|
/* @__PURE__ */ jsx(PasteAtRootContextMenu, { parentContext, setParentContext })
|
|
7993
8002
|
] });
|
|
7994
|
-
},
|
|
7995
|
-
|
|
7996
|
-
|
|
7997
|
-
|
|
7998
|
-
{ title: "Lato", value: "Lato" },
|
|
7999
|
-
{ title: "Poppins", value: "Poppins" },
|
|
8000
|
-
{ title: "Oswald", value: "Oswald" },
|
|
8001
|
-
{ title: "Raleway", value: "Raleway" },
|
|
8002
|
-
{ title: "Ubuntu", value: "Ubuntu" },
|
|
8003
|
-
{ title: "Nunito", value: "Nunito" },
|
|
8004
|
-
{ title: "Merriweather", value: "Merriweather" },
|
|
8005
|
-
{ title: "Nunito Sans", value: "Nunito Sans" },
|
|
8006
|
-
{ title: "Playfair Display", value: "Playfair Display" },
|
|
8007
|
-
{ title: "Rubik", value: "Rubik" },
|
|
8008
|
-
{ title: "Inter", value: "Inter" },
|
|
8009
|
-
{ title: "Lora", value: "Lora" },
|
|
8010
|
-
{ title: "Kanit", value: "Kanit" },
|
|
8011
|
-
{ title: "Fira Sans", value: "Fira Sans" },
|
|
8012
|
-
{ title: "Hind", value: "Hind" },
|
|
8013
|
-
{ title: "Quicksand", value: "Quicksand" },
|
|
8014
|
-
{ title: "Mulish", value: "Mulish" },
|
|
8015
|
-
{ title: "Barlow", value: "Barlow" },
|
|
8016
|
-
{ title: "Inconsolata", value: "Inconsolata" },
|
|
8017
|
-
{ title: "Titillium Web", value: "Titillium Web" },
|
|
8018
|
-
{ title: "Heebo", value: "Heebo" },
|
|
8019
|
-
{ title: "IBM Plex Sans", value: "IBM Plex Sans" },
|
|
8020
|
-
{ title: "DM Sans", value: "DM Sans" },
|
|
8021
|
-
{ title: "Nanum Gothic", value: "Nanum Gothic" },
|
|
8022
|
-
{ title: "Karla", value: "Karla" },
|
|
8023
|
-
{ title: "Arimo", value: "Arimo" },
|
|
8024
|
-
{ title: "Cabin", value: "Cabin" },
|
|
8025
|
-
{ title: "Oxygen", value: "Oxygen" },
|
|
8026
|
-
{ title: "Overpass", value: "Overpass" },
|
|
8027
|
-
{ title: "Assistant", value: "Assistant" },
|
|
8028
|
-
{ title: "Tajawal", value: "Tajawal" },
|
|
8029
|
-
{ title: "Play", value: "Play" },
|
|
8030
|
-
{ title: "Exo", value: "Exo" },
|
|
8031
|
-
{ title: "Cinzel", value: "Cinzel" },
|
|
8032
|
-
{ title: "Faustina", value: "Faustina" },
|
|
8033
|
-
{ title: "Philosopher", value: "Philosopher" },
|
|
8034
|
-
{ title: "Gelasio", value: "Gelasio" },
|
|
8035
|
-
{ title: "Sofia Sans Condensed", value: "Sofia Sans Condensed" },
|
|
8036
|
-
{ title: "Noto Sans Devanagari", value: "Noto Sans Devanagari" },
|
|
8037
|
-
{ title: "Actor", value: "Actor" },
|
|
8038
|
-
{ title: "Epilogue", value: "Epilogue" },
|
|
8039
|
-
{ title: "Glegoo", value: "Glegoo" },
|
|
8040
|
-
{ title: "Overlock", value: "Overlock" },
|
|
8041
|
-
{ title: "Lustria", value: "Lustria" },
|
|
8042
|
-
{ title: "Ovo", value: "Ovo" },
|
|
8043
|
-
{ title: "Suranna", value: "Suranna" },
|
|
8044
|
-
{ title: "Bebas Neue", value: "Bebas Neue" },
|
|
8045
|
-
{ title: "Manrope", value: "Manrope" }
|
|
8046
|
-
], FontSelector = ({
|
|
8047
|
-
label: o,
|
|
8048
|
-
value: n,
|
|
8049
|
-
onChange: r
|
|
8050
|
-
}) => /* @__PURE__ */ jsxs("div", { className: "space-y-0.5", children: [
|
|
8051
|
-
/* @__PURE__ */ jsx(Label, { className: "text-sm text-slate-800", children: startCase(o) }),
|
|
8052
|
-
/* @__PURE__ */ jsx(
|
|
8053
|
-
"select",
|
|
8003
|
+
}, BorderRadiusInput = ({ value: o, onChange: n, disabled: r }) => {
|
|
8004
|
+
const a = debounce((l) => n(l), 200);
|
|
8005
|
+
return /* @__PURE__ */ jsx(
|
|
8006
|
+
"input",
|
|
8054
8007
|
{
|
|
8055
|
-
|
|
8056
|
-
|
|
8057
|
-
|
|
8058
|
-
|
|
8008
|
+
type: "range",
|
|
8009
|
+
min: "0",
|
|
8010
|
+
step: "1",
|
|
8011
|
+
max: "30",
|
|
8012
|
+
disabled: r,
|
|
8013
|
+
defaultValue: o.replace("px", ""),
|
|
8014
|
+
onChange: (l) => a(l.target.value),
|
|
8015
|
+
className: "flex-1 cursor-pointer"
|
|
8059
8016
|
}
|
|
8060
|
-
)
|
|
8061
|
-
|
|
8017
|
+
);
|
|
8018
|
+
}, ColorPickerInput = ({ value: o, onChange: n }) => {
|
|
8062
8019
|
const r = debounce((a) => n(a), 200);
|
|
8063
8020
|
return /* @__PURE__ */ jsx(
|
|
8064
8021
|
"div",
|
|
@@ -8079,21 +8036,26 @@ const selectParent = (o, n) => {
|
|
|
8079
8036
|
)
|
|
8080
8037
|
}
|
|
8081
8038
|
);
|
|
8082
|
-
},
|
|
8083
|
-
|
|
8084
|
-
|
|
8085
|
-
|
|
8086
|
-
|
|
8087
|
-
|
|
8088
|
-
|
|
8089
|
-
|
|
8090
|
-
|
|
8091
|
-
|
|
8092
|
-
|
|
8093
|
-
|
|
8094
|
-
|
|
8095
|
-
|
|
8096
|
-
|
|
8039
|
+
}, FontSelector = ({
|
|
8040
|
+
label: o,
|
|
8041
|
+
value: n,
|
|
8042
|
+
onChange: r
|
|
8043
|
+
}) => {
|
|
8044
|
+
const a = useRegisteredFonts();
|
|
8045
|
+
return /* @__PURE__ */ jsxs("div", { className: "space-y-0.5", children: [
|
|
8046
|
+
/* @__PURE__ */ jsx(Label, { className: "text-sm text-slate-800", children: startCase(o) }),
|
|
8047
|
+
/* @__PURE__ */ jsx(
|
|
8048
|
+
ChaiSelect,
|
|
8049
|
+
{
|
|
8050
|
+
defaultValue: n,
|
|
8051
|
+
options: a.map((l) => ({
|
|
8052
|
+
value: l.family,
|
|
8053
|
+
label: l.family
|
|
8054
|
+
})),
|
|
8055
|
+
onValueChange: r
|
|
8056
|
+
}
|
|
8057
|
+
)
|
|
8058
|
+
] });
|
|
8097
8059
|
}, ThemeConfigPanel = React.memo(({ className: o = "" }) => {
|
|
8098
8060
|
const [n] = useDarkMode(), [r, a] = React.useState(""), l = useBuilderProp("themePresets", []), i = useBuilderProp("themePanelComponent", null), { hasPermission: c } = usePermissions(), [d, p] = useTheme(), u = useThemeOptions(), { t: g } = useTranslation(), m = (v) => {
|
|
8099
8061
|
a(v);
|
|
@@ -8158,22 +8120,22 @@ const selectParent = (o, n) => {
|
|
|
8158
8120
|
l.length > 0 && /* @__PURE__ */ jsxs("div", { className: "flex gap-2 py-2", children: [
|
|
8159
8121
|
/* @__PURE__ */ jsxs("div", { className: "w-full", children: [
|
|
8160
8122
|
/* @__PURE__ */ jsx(Label, { className: "text-sm text-slate-800", children: g("Presets") }),
|
|
8161
|
-
/* @__PURE__ */
|
|
8162
|
-
|
|
8123
|
+
/* @__PURE__ */ jsx(
|
|
8124
|
+
ChaiSelect,
|
|
8163
8125
|
{
|
|
8164
|
-
|
|
8165
|
-
|
|
8166
|
-
|
|
8167
|
-
|
|
8168
|
-
|
|
8169
|
-
|
|
8170
|
-
]
|
|
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)
|
|
8171
8132
|
}
|
|
8172
8133
|
)
|
|
8173
8134
|
] }),
|
|
8174
8135
|
/* @__PURE__ */ jsx("div", { className: "flex w-[30%] items-end", children: /* @__PURE__ */ jsx(
|
|
8175
8136
|
Button,
|
|
8176
8137
|
{
|
|
8138
|
+
size: "sm",
|
|
8177
8139
|
className: "w-full text-sm",
|
|
8178
8140
|
disabled: r === "",
|
|
8179
8141
|
variant: "default",
|
|
@@ -9460,7 +9422,11 @@ const RootLayout = () => {
|
|
|
9460
9422
|
y.preventDefault();
|
|
9461
9423
|
}, u = (y) => {
|
|
9462
9424
|
n(o === y ? null : y);
|
|
9463
|
-
}, g = useSidebarMenuItems(), { t: m } = useTranslation(), h = useMemo(() => [...g, ...c], [g, c]), f = useBuilderProp("htmlDir", "ltr")
|
|
9425
|
+
}, g = useSidebarMenuItems(), { t: m } = useTranslation(), h = useMemo(() => [...g, ...c], [g, c]), f = useBuilderProp("htmlDir", "ltr");
|
|
9426
|
+
useEffect(() => {
|
|
9427
|
+
find(h, { id: o }) || n("outline");
|
|
9428
|
+
}, [o, h]);
|
|
9429
|
+
const x = find(h, { id: o }) ?? first(h), b = get(x, "width", DEFAULT_PANEL_WIDTH);
|
|
9464
9430
|
return /* @__PURE__ */ jsx("div", { dir: f, className: "h-screen max-h-full w-screen overflow-x-hidden bg-background text-foreground", children: /* @__PURE__ */ jsxs(TooltipProvider, { children: [
|
|
9465
9431
|
/* @__PURE__ */ jsxs(
|
|
9466
9432
|
"div",
|
|
@@ -9470,7 +9436,7 @@ const RootLayout = () => {
|
|
|
9470
9436
|
children: [
|
|
9471
9437
|
/* @__PURE__ */ jsx("div", { className: "h-14 w-screen shrink-0 border-b border-border", children: /* @__PURE__ */ jsx(Suspense, { children: /* @__PURE__ */ jsx(TopBar, {}) }) }),
|
|
9472
9438
|
/* @__PURE__ */ jsxs("main", { className: "relative flex h-[calc(100vh-56px)] max-w-full flex-1 flex-row", children: [
|
|
9473
|
-
/* @__PURE__ */ jsxs("div", { className: "flex
|
|
9439
|
+
/* @__PURE__ */ jsxs("div", { className: "flex w-12 flex-col items-center justify-between border-r border-border py-2", children: [
|
|
9474
9440
|
/* @__PURE__ */ jsx("div", { className: "flex flex-col", children: h.map((y, v) => /* @__PURE__ */ jsxs(Tooltip, { children: [
|
|
9475
9441
|
/* @__PURE__ */ jsx(TooltipTrigger, { asChild: !0, children: /* @__PURE__ */ jsx(
|
|
9476
9442
|
Button,
|
|
@@ -9485,7 +9451,7 @@ const RootLayout = () => {
|
|
|
9485
9451
|
/* @__PURE__ */ jsx(TooltipContent, { side: "right", children: /* @__PURE__ */ jsx("p", { children: m(y.label) }) })
|
|
9486
9452
|
] }, "button" + v)) }),
|
|
9487
9453
|
/* @__PURE__ */ jsx("div", { className: "flex flex-col space-y-1" }),
|
|
9488
|
-
/* @__PURE__ */ jsx("div", { className: "flex
|
|
9454
|
+
/* @__PURE__ */ jsx("div", { className: "flex flex-col", children: d == null ? void 0 : d.map((y, v) => /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx("div", {}), children: React__default.createElement(y, {}) }, `sidebar-component-${v}`)) })
|
|
9489
9455
|
] }),
|
|
9490
9456
|
/* @__PURE__ */ jsx(
|
|
9491
9457
|
motion.div,
|
|
@@ -9501,7 +9467,7 @@ const RootLayout = () => {
|
|
|
9501
9467
|
className: `absolute top-2 flex h-10 items-center space-x-1 bg-white py-2 text-base font-bold ${get(x, "isInternal", !1) ? "" : "w-64"}`,
|
|
9502
9468
|
children: [
|
|
9503
9469
|
/* @__PURE__ */ jsx("span", { className: "rtl:ml-2 rtl:inline-block", children: get(x, "icon", null) }),
|
|
9504
|
-
/* @__PURE__ */ jsx("span", { children: m(x
|
|
9470
|
+
/* @__PURE__ */ jsx("span", { children: m(get(x, "label", "")) })
|
|
9505
9471
|
]
|
|
9506
9472
|
}
|
|
9507
9473
|
),
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const o=require("./chai-theme-helpers-D2bHv81c.cjs"),n=(i=o.defaultThemeOptions)=>({container:{center:!0,padding:"1rem",screens:{"2xl":"1400px"}},...o.getChaiThemeOptions(i)}),r=o.plugin(function({addBase:i,theme:e}){i({"h1,h2,h3,h4,h5,h6":{fontFamily:e("fontFamily.heading")},body:{fontFamily:e("fontFamily.body"),color:e("colors.foreground"),backgroundColor:e("colors.background")}})});exports.chaiBuilderPlugin=r;exports.getChaiBuilderTheme=n;
|
package/dist/render.cjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("./chai-theme-helpers-D2bHv81c.cjs"),s=require("lodash-es"),m=require("./getSplitClasses-DodqA_KW.cjs"),F=require("@mhsdesign/jit-browser-tailwindcss"),b=require("@tailwindcss/aspect-ratio"),k=require("@tailwindcss/container-queries"),M=require("@tailwindcss/forms"),N=require("@tailwindcss/typography"),w=require("./plugin-PDQQ8m4D.cjs"),g=require("react/jsx-runtime"),T=require("@chaibuilder/runtime"),p=require("react"),Y=require("tailwind-merge"),I=(e,r="")=>{const{classes:n}=m.getSplitChaiClasses(e),t=n.split(" ").map(i=>i.split(" ").map(a=>{if(a==="")return"";if(a.includes(":")){const u=a.split(":");return u[u.length-1]=r+s.last(u),u.join(":")}return`${r}${a}`}).join(" "));return s.flattenDeep(t).join(" ")},A=e=>{if(!e)return[];try{return JSON.parse(J(e)).filter(n=>!n._type.startsWith("@chai"))}catch{return[{_type:"Paragraph",_id:"error",content:"Invalid JSON. Please check the JSON string."}]}};function J(e){const r=/(asset:\/\/|https:\/\/asset\.localhost\/)(?:localhost\/)?[^"']+/g;return e.replace(r,n=>{const t=decodeURIComponent(n),i=t.indexOf("public");return i!==-1?t.substring(i+6):t})}async function K(e,r,n=[],t="",i){return await F.createTailwindcss({tailwindConfig:{darkMode:"class",safelist:n,theme:{extend:w.getChaiBuilderTheme(e)},plugins:[M,N,b,k,w.chaiBuilderPlugin],corePlugins:{preflight:i},...t?{prefix:`${t}`}:{}}}).generateStylesFromContent(` ${i?"@tailwind base;":""}
|
|
2
2
|
@tailwind components;
|
|
3
|
-
@tailwind utilities;`,r)}const
|
|
3
|
+
@tailwind utilities;`,r)}const V=(e,r,n)=>{const t=JSON.stringify(e).replace(/#styles:([^"]*)/g,(i,o)=>`#styles:${o.replace(/,/g," ")}`.replace(/#styles:/g,""));return K(r,[t],[],"",n)},L=async(e,r=S.defaultThemeOptions,n=!1)=>await V(e,r,n);async function U(e){const r=await(e==null?void 0:e.dataProvider(e.block,e.lang,e.metadata));return s.has(r,"$metadata")&&e.dataProviderMetadataCallback(e.block,r.$metadata),g.jsx(p.Suspense,{children:p.createElement(e.component,{...s.omit(e.props,["dataProvider","dataProviderMetadataCallback"]),...s.omit(r,"$metadata"),key:`${e.block._id}-async`})})}const z=s.memoize((e,r)=>{const{baseClasses:n,classes:t}=m.getSplitChaiClasses(e),i=Y.twMerge(n,t);return r===""?i.replace(m.STYLES_KEY,"").trim():I(i,r).replace(m.STYLES_KEY,"").trim()}),j=(e,r)=>{const n=s.cloneDeep(e);return s.forEach(s.keys(n),t=>{if(s.isString(n[t])){let i=n[t];const o=/\{\{(.*?)\}\}/g,l=i.match(o);l&&l.forEach(a=>{const u=a.slice(2,-2),h=s.get(r,u,a);i=i.replace(a,h)}),n[t]=i}s.isObject(n[t])&&(n[t]=j(n[t],r))}),n};function D(e,r){const n=s.get(e,`${r}_attrs`,{}),t=s.keys(n).join(" ");return s.includes(t,"x-show")&&!s.includes(t,"x-transition")&&(n["x-transition"]=""),n}function W(e,r){const n={};return Object.keys(e).forEach(t=>{if(s.isString(e[t])&&e[t].startsWith(m.STYLES_KEY)){const i=z(e[t],r);n[t]={className:i,...D(e,t)}}}),n}function H(e,r,n){if(s.isEmpty(r))return e;const t=s.cloneDeep(e),i=s.get(n,"i18nProps",[]);return s.forEach(s.keys(t),o=>{i.includes(o)&&!s.isEmpty(r)&&(t[o]=s.get(t,`${o}-${r}`,t[o]))}),t}const Q=s.memoize(e=>{const r=T.getRegisteredChaiBlock(e),n=s.get(r,"schema.properties",{});return Object.fromEntries(Object.entries(n).filter(([,t])=>s.get(t,"runtime",!1)))}),G=(e,r,n)=>s.isEmpty(n)?{}:Object.entries(n).reduce((t,[i,o])=>{const l=[];let a=s.find(e,{_id:r});for(;a;)l.push(a),a=s.find(e,{_id:a._parent});const u=s.find(l,{_type:o.block});return u&&(t[i]=s.get(u,s.get(o,"prop"),null)),t},{}),X=()=>g.jsx("span",{children:"Loading..."});function E({blocks:e,parent:r,classPrefix:n="",externalData:t={},blockModifierCallback:i=null,lang:o="",fallbackLang:l="",metadata:a={},dataProviderMetadataCallback:u=()=>{}}){const h=e,P=c=>W(c,n),$=r?s.filter(e,{_parent:r}):s.filter(e,c=>s.isEmpty(c._parent));return s.uniqBy($,"_id").map((c,q)=>{const y={},v=s.filter(h,{_parent:c._id});y.children=v.length>0?g.jsx(E,{externalData:t,classPrefix:n,parent:c._id,blocks:h,lang:o||l,metadata:a,fallbackLang:l,dataProviderMetadataCallback:u},`${c._id}-children`):null;const d=T.getRegisteredChaiBlock(c._type);if(d!==null){let f=c;const _=d.component;f={...d.defaults,...c},i&&(f=i(f));const x=o===l?"":o,O=G(h,c._id,Q(c._type)),C=j(H(c,x,d),t),B=s.omit({blockProps:{},inBuilder:!1,...f,index:q,...C,...P(C),...y,...O,metadata:a,lang:o||l,key:c._id},["_parent"]);if(s.has(d,"dataProvider")){const R=s.get(d,"suspenseFallback",X);return g.jsx(p.Suspense,{fallback:p.createElement(R),children:g.jsx(U,{dataProviderMetadataCallback:u,lang:o||l,metadata:a,dataProvider:d.dataProvider,block:c,component:_,props:B},`${c._id}-async`)},`${c._id}-suspense`)}return g.jsx(p.Suspense,{children:p.createElement(_,B)},`${c._id}-suspense`)}return g.jsxs("noscript",{children:[c._type," not found"]},`${c._id}-noscript`)})}exports.getChaiThemeCssVariables=S.getChaiThemeCssVariables;exports.getThemeFontsCSSImport=S.getThemeFontsCSSImport;exports.getThemeFontsLinkMarkup=S.getThemeFontsLinkMarkup;exports.RenderChaiBlocks=E;exports.convertToBlocks=A;exports.getStylesForBlocks=L;
|
package/dist/render.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { ChaiGoogleFont } from '@chaibuilder/runtime';
|
|
2
|
+
|
|
1
3
|
declare type BorderRadiusValue = false | string;
|
|
2
4
|
|
|
3
5
|
declare type ChaiBlock<T = Record<string, any>> = {
|
|
@@ -33,11 +35,9 @@ export declare const getChaiThemeCssVariables: (chaiTheme: Partial<ChaiBuilderTh
|
|
|
33
35
|
|
|
34
36
|
export declare const getStylesForBlocks: (blocks: ChaiBlock[], themeOptions?: ChaiBuilderThemeOptions, includeBaseStyles?: boolean) => Promise<string>;
|
|
35
37
|
|
|
36
|
-
export declare const getThemeFontsCSSImport: (
|
|
37
|
-
fontFamily: Record<string, string>;
|
|
38
|
-
}) => any;
|
|
38
|
+
export declare const getThemeFontsCSSImport: (fonts: ChaiGoogleFont[]) => any;
|
|
39
39
|
|
|
40
|
-
export declare const getThemeFontsLinkMarkup: (
|
|
40
|
+
export declare const getThemeFontsLinkMarkup: (fonts: ChaiGoogleFont[]) => any;
|
|
41
41
|
|
|
42
42
|
declare type HSLColor = string;
|
|
43
43
|
|
package/dist/render.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { d as Y } from "./
|
|
2
|
-
import { a as At, b as It, c as Jt } from "./
|
|
3
|
-
import { last as q, flattenDeep as z, has as
|
|
4
|
-
import { g as
|
|
5
|
-
import { createTailwindcss as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
1
|
+
import { d as Y } from "./chai-theme-helpers-BpnwYsLZ.js";
|
|
2
|
+
import { a as At, b as It, c as Jt } from "./chai-theme-helpers-BpnwYsLZ.js";
|
|
3
|
+
import { last as q, flattenDeep as z, has as v, omit as y, memoize as O, get as d, filter as h, isEmpty as g, uniqBy as D, cloneDeep as E, forEach as x, keys as B, isString as R, isObject as Q, find as _, includes as j } from "lodash-es";
|
|
4
|
+
import { g as F, S } from "./getSplitClasses-DphwgQiE.js";
|
|
5
|
+
import { createTailwindcss as G } from "@mhsdesign/jit-browser-tailwindcss";
|
|
6
|
+
import H from "@tailwindcss/aspect-ratio";
|
|
7
|
+
import L from "@tailwindcss/container-queries";
|
|
8
8
|
import X from "@tailwindcss/forms";
|
|
9
9
|
import Z from "@tailwindcss/typography";
|
|
10
|
-
import { g as k, c as tt } from "./plugin-
|
|
10
|
+
import { g as k, c as tt } from "./plugin-D56-CF7U.js";
|
|
11
11
|
import { jsx as p, jsxs as et } from "react/jsx-runtime";
|
|
12
|
-
import { getRegisteredChaiBlock as
|
|
13
|
-
import
|
|
12
|
+
import { getRegisteredChaiBlock as N } from "@chaibuilder/runtime";
|
|
13
|
+
import b, { Suspense as w, createElement as nt } from "react";
|
|
14
14
|
import { twMerge as st } from "tailwind-merge";
|
|
15
15
|
const rt = (t, s = "") => {
|
|
16
|
-
const { classes: n } =
|
|
16
|
+
const { classes: n } = F(t), e = n.split(" ").map((r) => r.split(" ").map((a) => {
|
|
17
17
|
if (a === "") return "";
|
|
18
18
|
if (a.includes(":")) {
|
|
19
19
|
const l = a.split(":");
|
|
@@ -38,12 +38,12 @@ function it(t) {
|
|
|
38
38
|
});
|
|
39
39
|
}
|
|
40
40
|
async function ot(t, s, n = [], e = "", r) {
|
|
41
|
-
return await
|
|
41
|
+
return await G({
|
|
42
42
|
tailwindConfig: {
|
|
43
43
|
darkMode: "class",
|
|
44
44
|
safelist: n,
|
|
45
45
|
theme: { extend: k(t) },
|
|
46
|
-
plugins: [X, Z,
|
|
46
|
+
plugins: [X, Z, H, L, tt],
|
|
47
47
|
corePlugins: { preflight: r },
|
|
48
48
|
...e ? { prefix: `${e}` } : {}
|
|
49
49
|
}
|
|
@@ -57,20 +57,21 @@ async function ot(t, s, n = [], e = "", r) {
|
|
|
57
57
|
const at = (t, s, n) => {
|
|
58
58
|
const e = JSON.stringify(t).replace(/#styles:([^"]*)/g, (r, o) => `#styles:${o.replace(/,/g, " ")}`.replace(/#styles:/g, ""));
|
|
59
59
|
return ot(s, [e], [], "", n);
|
|
60
|
-
},
|
|
60
|
+
}, Ft = async (t, s = Y, n = !1) => await at(t, s, n);
|
|
61
61
|
async function ct(t) {
|
|
62
62
|
const s = await (t == null ? void 0 : t.dataProvider(t.block, t.lang, t.metadata));
|
|
63
|
-
return
|
|
64
|
-
...
|
|
65
|
-
...
|
|
63
|
+
return v(s, "$metadata") && t.dataProviderMetadataCallback(t.block, s.$metadata), /* @__PURE__ */ p(w, { children: b.createElement(t.component, {
|
|
64
|
+
...y(t.props, ["dataProvider", "dataProviderMetadataCallback"]),
|
|
65
|
+
...y(s, "$metadata"),
|
|
66
|
+
key: `${t.block._id}-async`
|
|
66
67
|
}) });
|
|
67
68
|
}
|
|
68
|
-
const lt =
|
|
69
|
-
const { baseClasses: n, classes: e } =
|
|
70
|
-
return s === "" ? r.replace(
|
|
69
|
+
const lt = O((t, s) => {
|
|
70
|
+
const { baseClasses: n, classes: e } = F(t), r = st(n, e);
|
|
71
|
+
return s === "" ? r.replace(S, "").trim() : rt(r, s).replace(S, "").trim();
|
|
71
72
|
}), A = (t, s) => {
|
|
72
73
|
const n = E(t);
|
|
73
|
-
return x(
|
|
74
|
+
return x(B(n), (e) => {
|
|
74
75
|
if (R(n[e])) {
|
|
75
76
|
let r = n[e];
|
|
76
77
|
const o = /\{\{(.*?)\}\}/g, c = r.match(o);
|
|
@@ -79,17 +80,17 @@ const lt = $((t, s) => {
|
|
|
79
80
|
r = r.replace(a, m);
|
|
80
81
|
}), n[e] = r;
|
|
81
82
|
}
|
|
82
|
-
|
|
83
|
+
Q(n[e]) && (n[e] = A(n[e], s));
|
|
83
84
|
}), n;
|
|
84
85
|
};
|
|
85
86
|
function dt(t, s) {
|
|
86
|
-
const n = d(t, `${s}_attrs`, {}), e =
|
|
87
|
+
const n = d(t, `${s}_attrs`, {}), e = B(n).join(" ");
|
|
87
88
|
return j(e, "x-show") && !j(e, "x-transition") && (n["x-transition"] = ""), n;
|
|
88
89
|
}
|
|
89
90
|
function ut(t, s) {
|
|
90
91
|
const n = {};
|
|
91
92
|
return Object.keys(t).forEach((e) => {
|
|
92
|
-
if (R(t[e]) && t[e].startsWith(
|
|
93
|
+
if (R(t[e]) && t[e].startsWith(S)) {
|
|
93
94
|
const r = lt(t[e], s);
|
|
94
95
|
n[e] = {
|
|
95
96
|
className: r,
|
|
@@ -101,12 +102,12 @@ function ut(t, s) {
|
|
|
101
102
|
function pt(t, s, n) {
|
|
102
103
|
if (g(s)) return t;
|
|
103
104
|
const e = E(t), r = d(n, "i18nProps", []);
|
|
104
|
-
return x(
|
|
105
|
+
return x(B(e), (o) => {
|
|
105
106
|
r.includes(o) && !g(s) && (e[o] = d(e, `${o}-${s}`, e[o]));
|
|
106
107
|
}), e;
|
|
107
108
|
}
|
|
108
|
-
const mt =
|
|
109
|
-
const s =
|
|
109
|
+
const mt = O((t) => {
|
|
110
|
+
const s = N(t), n = d(s, "schema.properties", {});
|
|
110
111
|
return Object.fromEntries(Object.entries(n).filter(([, e]) => d(e, "runtime", !1)));
|
|
111
112
|
}), ft = (t, s, n) => g(n) ? {} : Object.entries(n).reduce((e, [r, o]) => {
|
|
112
113
|
const c = [];
|
|
@@ -130,8 +131,8 @@ function ht({
|
|
|
130
131
|
}) {
|
|
131
132
|
const m = t, I = (i) => ut(i, n), J = s ? h(t, { _parent: s }) : h(t, (i) => g(i._parent));
|
|
132
133
|
return D(J, "_id").map((i, M) => {
|
|
133
|
-
const
|
|
134
|
-
|
|
134
|
+
const C = {}, U = h(m, { _parent: i._id });
|
|
135
|
+
C.children = U.length > 0 ? /* @__PURE__ */ p(
|
|
135
136
|
ht,
|
|
136
137
|
{
|
|
137
138
|
externalData: e,
|
|
@@ -139,24 +140,26 @@ function ht({
|
|
|
139
140
|
parent: i._id,
|
|
140
141
|
blocks: m,
|
|
141
142
|
lang: o || c,
|
|
142
|
-
metadata: a
|
|
143
|
+
metadata: a,
|
|
144
|
+
fallbackLang: c,
|
|
145
|
+
dataProviderMetadataCallback: l
|
|
143
146
|
},
|
|
144
|
-
i._id
|
|
147
|
+
`${i._id}-children`
|
|
145
148
|
) : null;
|
|
146
|
-
const u =
|
|
149
|
+
const u = N(i._type);
|
|
147
150
|
if (u !== null) {
|
|
148
151
|
let f = i;
|
|
149
152
|
const P = u.component;
|
|
150
153
|
f = { ...u.defaults, ...i }, r && (f = r(f));
|
|
151
|
-
const V = o === c ? "" : o, K = ft(m, i._id, mt(i._type)),
|
|
154
|
+
const V = o === c ? "" : o, K = ft(m, i._id, mt(i._type)), $ = A(pt(i, V, u), e), T = y(
|
|
152
155
|
{
|
|
153
156
|
blockProps: {},
|
|
154
157
|
inBuilder: !1,
|
|
155
158
|
...f,
|
|
156
159
|
index: M,
|
|
157
|
-
|
|
158
|
-
...I(
|
|
159
|
-
...
|
|
160
|
+
...$,
|
|
161
|
+
...I($),
|
|
162
|
+
...C,
|
|
160
163
|
...K,
|
|
161
164
|
metadata: a,
|
|
162
165
|
lang: o || c,
|
|
@@ -164,9 +167,9 @@ function ht({
|
|
|
164
167
|
},
|
|
165
168
|
["_parent"]
|
|
166
169
|
);
|
|
167
|
-
if (
|
|
170
|
+
if (v(u, "dataProvider")) {
|
|
168
171
|
const W = d(u, "suspenseFallback", gt);
|
|
169
|
-
return /* @__PURE__ */ p(
|
|
172
|
+
return /* @__PURE__ */ p(w, { fallback: nt(W), children: /* @__PURE__ */ p(
|
|
170
173
|
ct,
|
|
171
174
|
{
|
|
172
175
|
dataProviderMetadataCallback: l,
|
|
@@ -177,22 +180,22 @@ function ht({
|
|
|
177
180
|
component: P,
|
|
178
181
|
props: T
|
|
179
182
|
},
|
|
180
|
-
i._id
|
|
181
|
-
) }, i._id);
|
|
183
|
+
`${i._id}-async`
|
|
184
|
+
) }, `${i._id}-suspense`);
|
|
182
185
|
}
|
|
183
|
-
return /* @__PURE__ */ p(
|
|
186
|
+
return /* @__PURE__ */ p(w, { children: b.createElement(P, T) }, `${i._id}-suspense`);
|
|
184
187
|
}
|
|
185
188
|
return /* @__PURE__ */ et("noscript", { children: [
|
|
186
189
|
i._type,
|
|
187
190
|
" not found"
|
|
188
|
-
] }, i._id);
|
|
191
|
+
] }, `${i._id}-noscript`);
|
|
189
192
|
});
|
|
190
193
|
}
|
|
191
194
|
export {
|
|
192
195
|
ht as RenderChaiBlocks,
|
|
193
196
|
Rt as convertToBlocks,
|
|
194
197
|
At as getChaiThemeCssVariables,
|
|
195
|
-
|
|
198
|
+
Ft as getStylesForBlocks,
|
|
196
199
|
It as getThemeFontsCSSImport,
|
|
197
200
|
Jt as getThemeFontsLinkMarkup
|
|
198
201
|
};
|
package/dist/tailwind.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("@tailwindcss/aspect-ratio"),a=require("@tailwindcss/forms"),n=require("@tailwindcss/typography"),d=require("tailwindcss-animate"),r=require("./plugin-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("@tailwindcss/aspect-ratio"),a=require("@tailwindcss/forms"),n=require("@tailwindcss/typography"),d=require("tailwindcss-animate"),r=require("./plugin-PDQQ8m4D.cjs");function i(){return{colors:{border:"hsl(var(--border))",input:"hsl(var(--input))",ring:"hsl(var(--ring))",background:"hsl(var(--background))",foreground:"hsl(var(--foreground))",primary:{DEFAULT:"hsl(var(--primary))",foreground:"hsl(var(--primary-foreground))"},secondary:{DEFAULT:"hsl(var(--secondary))",foreground:"hsl(var(--secondary-foreground))"},destructive:{DEFAULT:"hsl(var(--destructive))",foreground:"hsl(var(--destructive-foreground))"},muted:{DEFAULT:"hsl(var(--muted))",foreground:"hsl(var(--muted-foreground))"},accent:{DEFAULT:"hsl(var(--accent))",foreground:"hsl(var(--accent-foreground))"},popover:{DEFAULT:"hsl(var(--popover))",foreground:"hsl(var(--popover-foreground))"},card:{DEFAULT:"hsl(var(--card))",foreground:"hsl(var(--card-foreground))"}},borderRadius:{lg:"var(--radius)",md:"calc(var(--radius) - 2px)",sm:"calc(var(--radius) - 4px)"},keyframes:{"accordion-down":{from:{height:"0"},to:{height:"var(--radix-accordion-content-height)"}},"accordion-up":{from:{height:"var(--radix-accordion-content-height)"},to:{height:"0"}}},animation:{"accordion-down":"accordion-down 0.2s ease-out","accordion-up":"accordion-up 0.2s ease-out"}}}const t=e=>({darkMode:"class",content:[...e,"node_modules/@chaibuilder/sdk/dist/*.{js,cjs}"],theme:{extend:i()},plugins:[d,n,a,o]});exports.chaiBuilderPlugin=r.chaiBuilderPlugin;exports.getChaiBuilderTheme=r.getChaiBuilderTheme;exports.getChaiBuilderTailwindConfig=t;
|
package/dist/tailwind.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Config } from 'tailwindcss/types/config';
|
|
2
|
-
import { default as default_2 } from '@tailwindcss/
|
|
3
|
-
import { default as default_3 } from '@tailwindcss/
|
|
2
|
+
import { default as default_2 } from '@tailwindcss/forms';
|
|
3
|
+
import { default as default_3 } from '@tailwindcss/typography';
|
|
4
4
|
import { PluginCreator } from 'tailwindcss/types/config';
|
|
5
5
|
|
|
6
6
|
declare type BorderRadiusValue = false | string;
|
|
@@ -93,9 +93,9 @@ export declare const getChaiBuilderTailwindConfig: (content: string[]) => {
|
|
|
93
93
|
};
|
|
94
94
|
};
|
|
95
95
|
};
|
|
96
|
-
plugins: (
|
|
96
|
+
plugins: ({
|
|
97
97
|
handler: () => void;
|
|
98
|
-
})[];
|
|
98
|
+
} | typeof default_2 | typeof default_3)[];
|
|
99
99
|
};
|
|
100
100
|
|
|
101
101
|
export declare const getChaiBuilderTheme: (themeOptions?: ChaiBuilderThemeOptions) => {
|
package/dist/tailwind.js
CHANGED
|
@@ -2,7 +2,7 @@ import o from "@tailwindcss/aspect-ratio";
|
|
|
2
2
|
import e from "@tailwindcss/forms";
|
|
3
3
|
import a from "@tailwindcss/typography";
|
|
4
4
|
import d from "tailwindcss-animate";
|
|
5
|
-
import { c as l, g as v } from "./plugin-
|
|
5
|
+
import { c as l, g as v } from "./plugin-D56-CF7U.js";
|
|
6
6
|
function n() {
|
|
7
7
|
return {
|
|
8
8
|
colors: {
|