@chaibuilder/sdk 1.2.103 → 1.2.105

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.
@@ -1 +0,0 @@
1
- "use strict";const r=require("lodash-es"),u=require("tailwindcss-palette-generator"),b=require("./plugin-KIpT3NWi.cjs"),f=o=>{const t=r.get(o,"primaryColor","#000"),c=r.get(o,"secondaryColor","#ccc"),i=r.get(o,"headingFont","Inter"),l=r.get(o,"bodyFont","Inter"),n=r.get(o,"roundedCorners","0"),a=r.get(o,"bodyBgLightColor","#fff"),d=r.get(o,"bodyBgDarkColor","#000"),g=r.get(o,"bodyTextLightColor","#000"),e=r.get(o,"bodyTextDarkColor","#fff"),s=u([{color:t,name:"primary"},{color:c,name:"secondary"}]),y={"bg-light":a,"bg-dark":d,"text-dark":e,"text-light":g};return{container:{center:!0,padding:"1rem",screens:{"2xl":"1400px"}},fontFamily:{heading:[i],body:[l]},borderRadius:{DEFAULT:`${n||"0px"}px`},colors:{...s,...y}}},C=b.plugin(function({addBase:o,theme:t}){o({"h1,h2,h3,h4,h5,h6":{fontFamily:t("fontFamily.heading")},body:{fontFamily:t("fontFamily.body"),color:t("colors.text-light"),backgroundColor:t("colors.bg-light")},".dark body":{color:t("colors.text-dark"),backgroundColor:t("colors.bg-dark")}})});exports.chaiBuilderPlugin=C;exports.getChaiBuilderTheme=f;
@@ -1 +0,0 @@
1
- "use strict";function a(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var c={},f={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return l}});function u(n,t){return{handler:n,config:t}}u.withOptions=function(n,t=()=>({})){const r=function(i){return{__options:i,handler:n(i),config:t(i)}};return r.__isOptionsFunction=!0,r.__pluginFunction=n,r.__configFunction=t,r};const l=u})(f);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n}});const u=l(f);function l(t){return t&&t.__esModule?t:{default:t}}const n=u.default})(c);let o=c;var _=(o.__esModule?o:{default:o}).default;const d=a(_);exports.getDefaultExportFromCjs=a;exports.plugin=d;
@@ -1,43 +0,0 @@
1
- import { get as r } from "lodash-es";
2
- import e from "tailwindcss-palette-generator";
3
- import { p as f } from "./plugin-ooqqxWRQ.js";
4
- const C = (o) => {
5
- const n = r(o, "primaryColor", "#000"), a = r(o, "secondaryColor", "#ccc"), c = r(o, "headingFont", "Inter"), d = r(o, "bodyFont", "Inter"), t = r(o, "roundedCorners", "0"), l = r(o, "bodyBgLightColor", "#fff"), i = r(o, "bodyBgDarkColor", "#000"), s = r(o, "bodyTextLightColor", "#000"), g = r(o, "bodyTextDarkColor", "#fff"), y = e([
6
- { color: n, name: "primary" },
7
- { color: a, name: "secondary" }
8
- ]), b = {
9
- "bg-light": l,
10
- "bg-dark": i,
11
- "text-dark": g,
12
- "text-light": s
13
- };
14
- return {
15
- container: {
16
- center: !0,
17
- padding: "1rem",
18
- screens: { "2xl": "1400px" }
19
- },
20
- fontFamily: { heading: [c], body: [d] },
21
- borderRadius: { DEFAULT: `${t || "0px"}px` },
22
- colors: { ...y, ...b }
23
- };
24
- }, F = f(function({ addBase: o, theme: n }) {
25
- o({
26
- "h1,h2,h3,h4,h5,h6": {
27
- fontFamily: n("fontFamily.heading")
28
- },
29
- body: {
30
- fontFamily: n("fontFamily.body"),
31
- color: n("colors.text-light"),
32
- backgroundColor: n("colors.bg-light")
33
- },
34
- ".dark body": {
35
- color: n("colors.text-dark"),
36
- backgroundColor: n("colors.bg-dark")
37
- }
38
- });
39
- });
40
- export {
41
- F as c,
42
- C as g
43
- };
@@ -1,55 +0,0 @@
1
- function f(e) {
2
- return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
3
- }
4
- var i = {}, c = {};
5
- (function(e) {
6
- Object.defineProperty(e, "__esModule", {
7
- value: !0
8
- }), Object.defineProperty(e, "default", {
9
- enumerable: !0,
10
- get: function() {
11
- return l;
12
- }
13
- });
14
- function u(n, t) {
15
- return {
16
- handler: n,
17
- config: t
18
- };
19
- }
20
- u.withOptions = function(n, t = () => ({})) {
21
- const r = function(a) {
22
- return {
23
- __options: a,
24
- handler: n(a),
25
- config: t(a)
26
- };
27
- };
28
- return r.__isOptionsFunction = !0, r.__pluginFunction = n, r.__configFunction = t, r;
29
- };
30
- const l = u;
31
- })(c);
32
- (function(e) {
33
- Object.defineProperty(e, "__esModule", {
34
- value: !0
35
- }), Object.defineProperty(e, "default", {
36
- enumerable: !0,
37
- get: function() {
38
- return n;
39
- }
40
- });
41
- const u = /* @__PURE__ */ l(c);
42
- function l(t) {
43
- return t && t.__esModule ? t : {
44
- default: t
45
- };
46
- }
47
- const n = u.default;
48
- })(i);
49
- let o = i;
50
- var _ = (o.__esModule ? o : { default: o }).default;
51
- const d = /* @__PURE__ */ f(_);
52
- export {
53
- f as g,
54
- d as p
55
- };