@loopr-ai/craft 0.0.0 → 0.2.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.
Files changed (33) hide show
  1. package/dist/TransitionGroupContext-ee5b34c9.js +132 -0
  2. package/dist/assets/theme.css +1 -0
  3. package/dist/components/cell/Button/index.d.ts +19 -4
  4. package/dist/components/cell/Button/index.js +1209 -4
  5. package/dist/components/cell/ProgressBar/index.d.ts +27 -0
  6. package/dist/components/cell/ProgressBar/index.js +325 -0
  7. package/dist/components/cell/Search/index.d.ts +25 -0
  8. package/dist/components/cell/Search/index.js +26539 -0
  9. package/dist/components/cell/Typography/index.d.ts +20 -0
  10. package/dist/components/cell/Typography/index.js +217 -0
  11. package/dist/createTheme-eb26b87a.js +2221 -0
  12. package/dist/emotion-react.browser.esm-ff33c213.js +439 -0
  13. package/dist/exactProp-0925aa6f.js +13 -0
  14. package/dist/global/colors.d.ts +16 -0
  15. package/dist/global/colors.js +22 -0
  16. package/dist/global/constants.js +1 -0
  17. package/dist/global/enums.js +1 -0
  18. package/dist/global/interfaces.d.ts +6 -0
  19. package/dist/global/interfaces.js +1 -0
  20. package/dist/global/theme.d.ts +35 -0
  21. package/dist/global/theme.js +76 -0
  22. package/dist/main.d.ts +6 -2
  23. package/dist/main.js +8 -2
  24. package/dist/providers/CraftThemeProvider.d.ts +16 -0
  25. package/dist/providers/CraftThemeProvider.js +128 -0
  26. package/dist/providers/index.d.ts +2 -0
  27. package/dist/providers/index.js +4 -0
  28. package/dist/styled-b8bfdd6b.js +699 -0
  29. package/dist/useTheme-a9e2b32c.js +10 -0
  30. package/dist/useThemeWithoutDefault-188598a8.js +950 -0
  31. package/package.json +25 -4
  32. package/dist/components/cell/Input/index.d.ts +0 -5
  33. package/dist/components/cell/Input/index.js +0 -6
@@ -0,0 +1,439 @@
1
+ import { s as $, w as L, a as V, u as O, i as q, b as ye, r as ve, g as Ee } from "./useThemeWithoutDefault-188598a8.js";
2
+ import * as S from "react";
3
+ var P = { exports: {} }, i = {};
4
+ /** @license React v16.13.1
5
+ * react-is.production.min.js
6
+ *
7
+ * Copyright (c) Facebook, Inc. and its affiliates.
8
+ *
9
+ * This source code is licensed under the MIT license found in the
10
+ * LICENSE file in the root directory of this source tree.
11
+ */
12
+ var I;
13
+ function be() {
14
+ if (I)
15
+ return i;
16
+ I = 1;
17
+ var t = typeof Symbol == "function" && Symbol.for, o = t ? Symbol.for("react.element") : 60103, u = t ? Symbol.for("react.portal") : 60106, n = t ? Symbol.for("react.fragment") : 60107, m = t ? Symbol.for("react.strict_mode") : 60108, c = t ? Symbol.for("react.profiler") : 60114, s = t ? Symbol.for("react.provider") : 60109, l = t ? Symbol.for("react.context") : 60110, p = t ? Symbol.for("react.async_mode") : 60111, y = t ? Symbol.for("react.concurrent_mode") : 60111, v = t ? Symbol.for("react.forward_ref") : 60112, f = t ? Symbol.for("react.suspense") : 60113, x = t ? Symbol.for("react.suspense_list") : 60120, b = t ? Symbol.for("react.memo") : 60115, _ = t ? Symbol.for("react.lazy") : 60116, C = t ? Symbol.for("react.block") : 60121, T = t ? Symbol.for("react.fundamental") : 60117, R = t ? Symbol.for("react.responder") : 60118, w = t ? Symbol.for("react.scope") : 60119;
18
+ function E(e) {
19
+ if (typeof e == "object" && e !== null) {
20
+ var h = e.$$typeof;
21
+ switch (h) {
22
+ case o:
23
+ switch (e = e.type, e) {
24
+ case p:
25
+ case y:
26
+ case n:
27
+ case c:
28
+ case m:
29
+ case f:
30
+ return e;
31
+ default:
32
+ switch (e = e && e.$$typeof, e) {
33
+ case l:
34
+ case v:
35
+ case _:
36
+ case b:
37
+ case s:
38
+ return e;
39
+ default:
40
+ return h;
41
+ }
42
+ }
43
+ case u:
44
+ return h;
45
+ }
46
+ }
47
+ }
48
+ function d(e) {
49
+ return E(e) === y;
50
+ }
51
+ return i.AsyncMode = p, i.ConcurrentMode = y, i.ContextConsumer = l, i.ContextProvider = s, i.Element = o, i.ForwardRef = v, i.Fragment = n, i.Lazy = _, i.Memo = b, i.Portal = u, i.Profiler = c, i.StrictMode = m, i.Suspense = f, i.isAsyncMode = function(e) {
52
+ return d(e) || E(e) === p;
53
+ }, i.isConcurrentMode = d, i.isContextConsumer = function(e) {
54
+ return E(e) === l;
55
+ }, i.isContextProvider = function(e) {
56
+ return E(e) === s;
57
+ }, i.isElement = function(e) {
58
+ return typeof e == "object" && e !== null && e.$$typeof === o;
59
+ }, i.isForwardRef = function(e) {
60
+ return E(e) === v;
61
+ }, i.isFragment = function(e) {
62
+ return E(e) === n;
63
+ }, i.isLazy = function(e) {
64
+ return E(e) === _;
65
+ }, i.isMemo = function(e) {
66
+ return E(e) === b;
67
+ }, i.isPortal = function(e) {
68
+ return E(e) === u;
69
+ }, i.isProfiler = function(e) {
70
+ return E(e) === c;
71
+ }, i.isStrictMode = function(e) {
72
+ return E(e) === m;
73
+ }, i.isSuspense = function(e) {
74
+ return E(e) === f;
75
+ }, i.isValidElementType = function(e) {
76
+ return typeof e == "string" || typeof e == "function" || e === n || e === y || e === c || e === m || e === f || e === x || typeof e == "object" && e !== null && (e.$$typeof === _ || e.$$typeof === b || e.$$typeof === s || e.$$typeof === l || e.$$typeof === v || e.$$typeof === T || e.$$typeof === R || e.$$typeof === w || e.$$typeof === C);
77
+ }, i.typeOf = E, i;
78
+ }
79
+ var a = {};
80
+ /** @license React v16.13.1
81
+ * react-is.development.js
82
+ *
83
+ * Copyright (c) Facebook, Inc. and its affiliates.
84
+ *
85
+ * This source code is licensed under the MIT license found in the
86
+ * LICENSE file in the root directory of this source tree.
87
+ */
88
+ var F;
89
+ function _e() {
90
+ return F || (F = 1, process.env.NODE_ENV !== "production" && function() {
91
+ var t = typeof Symbol == "function" && Symbol.for, o = t ? Symbol.for("react.element") : 60103, u = t ? Symbol.for("react.portal") : 60106, n = t ? Symbol.for("react.fragment") : 60107, m = t ? Symbol.for("react.strict_mode") : 60108, c = t ? Symbol.for("react.profiler") : 60114, s = t ? Symbol.for("react.provider") : 60109, l = t ? Symbol.for("react.context") : 60110, p = t ? Symbol.for("react.async_mode") : 60111, y = t ? Symbol.for("react.concurrent_mode") : 60111, v = t ? Symbol.for("react.forward_ref") : 60112, f = t ? Symbol.for("react.suspense") : 60113, x = t ? Symbol.for("react.suspense_list") : 60120, b = t ? Symbol.for("react.memo") : 60115, _ = t ? Symbol.for("react.lazy") : 60116, C = t ? Symbol.for("react.block") : 60121, T = t ? Symbol.for("react.fundamental") : 60117, R = t ? Symbol.for("react.responder") : 60118, w = t ? Symbol.for("react.scope") : 60119;
92
+ function E(r) {
93
+ return typeof r == "string" || typeof r == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
94
+ r === n || r === y || r === c || r === m || r === f || r === x || typeof r == "object" && r !== null && (r.$$typeof === _ || r.$$typeof === b || r.$$typeof === s || r.$$typeof === l || r.$$typeof === v || r.$$typeof === T || r.$$typeof === R || r.$$typeof === w || r.$$typeof === C);
95
+ }
96
+ function d(r) {
97
+ if (typeof r == "object" && r !== null) {
98
+ var g = r.$$typeof;
99
+ switch (g) {
100
+ case o:
101
+ var j = r.type;
102
+ switch (j) {
103
+ case p:
104
+ case y:
105
+ case n:
106
+ case c:
107
+ case m:
108
+ case f:
109
+ return j;
110
+ default:
111
+ var N = j && j.$$typeof;
112
+ switch (N) {
113
+ case l:
114
+ case v:
115
+ case _:
116
+ case b:
117
+ case s:
118
+ return N;
119
+ default:
120
+ return g;
121
+ }
122
+ }
123
+ case u:
124
+ return g;
125
+ }
126
+ }
127
+ }
128
+ var e = p, h = y, W = l, X = s, Z = o, B = v, H = n, J = _, K = b, Q = u, ee = c, re = m, te = f, A = !1;
129
+ function oe(r) {
130
+ return A || (A = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), M(r) || d(r) === p;
131
+ }
132
+ function M(r) {
133
+ return d(r) === y;
134
+ }
135
+ function se(r) {
136
+ return d(r) === l;
137
+ }
138
+ function ne(r) {
139
+ return d(r) === s;
140
+ }
141
+ function ie(r) {
142
+ return typeof r == "object" && r !== null && r.$$typeof === o;
143
+ }
144
+ function ae(r) {
145
+ return d(r) === v;
146
+ }
147
+ function ce(r) {
148
+ return d(r) === n;
149
+ }
150
+ function ue(r) {
151
+ return d(r) === _;
152
+ }
153
+ function me(r) {
154
+ return d(r) === b;
155
+ }
156
+ function le(r) {
157
+ return d(r) === u;
158
+ }
159
+ function fe(r) {
160
+ return d(r) === c;
161
+ }
162
+ function de(r) {
163
+ return d(r) === m;
164
+ }
165
+ function pe(r) {
166
+ return d(r) === f;
167
+ }
168
+ a.AsyncMode = e, a.ConcurrentMode = h, a.ContextConsumer = W, a.ContextProvider = X, a.Element = Z, a.ForwardRef = B, a.Fragment = H, a.Lazy = J, a.Memo = K, a.Portal = Q, a.Profiler = ee, a.StrictMode = re, a.Suspense = te, a.isAsyncMode = oe, a.isConcurrentMode = M, a.isContextConsumer = se, a.isContextProvider = ne, a.isElement = ie, a.isForwardRef = ae, a.isFragment = ce, a.isLazy = ue, a.isMemo = me, a.isPortal = le, a.isProfiler = fe, a.isStrictMode = de, a.isSuspense = pe, a.isValidElementType = E, a.typeOf = d;
169
+ }()), a;
170
+ }
171
+ process.env.NODE_ENV === "production" ? P.exports = be() : P.exports = _e();
172
+ var xe = P.exports, G = xe, Se = {
173
+ $$typeof: !0,
174
+ render: !0,
175
+ defaultProps: !0,
176
+ displayName: !0,
177
+ propTypes: !0
178
+ }, he = {
179
+ $$typeof: !0,
180
+ compare: !0,
181
+ defaultProps: !0,
182
+ displayName: !0,
183
+ propTypes: !0,
184
+ type: !0
185
+ }, U = {};
186
+ U[G.ForwardRef] = Se;
187
+ U[G.Memo] = he;
188
+ var je = {
189
+ name: "@emotion/react",
190
+ version: "11.11.1",
191
+ main: "dist/emotion-react.cjs.js",
192
+ module: "dist/emotion-react.esm.js",
193
+ browser: {
194
+ "./dist/emotion-react.esm.js": "./dist/emotion-react.browser.esm.js"
195
+ },
196
+ exports: {
197
+ ".": {
198
+ module: {
199
+ worker: "./dist/emotion-react.worker.esm.js",
200
+ browser: "./dist/emotion-react.browser.esm.js",
201
+ default: "./dist/emotion-react.esm.js"
202
+ },
203
+ import: "./dist/emotion-react.cjs.mjs",
204
+ default: "./dist/emotion-react.cjs.js"
205
+ },
206
+ "./jsx-runtime": {
207
+ module: {
208
+ worker: "./jsx-runtime/dist/emotion-react-jsx-runtime.worker.esm.js",
209
+ browser: "./jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js",
210
+ default: "./jsx-runtime/dist/emotion-react-jsx-runtime.esm.js"
211
+ },
212
+ import: "./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.mjs",
213
+ default: "./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.js"
214
+ },
215
+ "./_isolated-hnrs": {
216
+ module: {
217
+ worker: "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.worker.esm.js",
218
+ browser: "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js",
219
+ default: "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.esm.js"
220
+ },
221
+ import: "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.mjs",
222
+ default: "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js"
223
+ },
224
+ "./jsx-dev-runtime": {
225
+ module: {
226
+ worker: "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.worker.esm.js",
227
+ browser: "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.esm.js",
228
+ default: "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.esm.js"
229
+ },
230
+ import: "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.mjs",
231
+ default: "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.js"
232
+ },
233
+ "./package.json": "./package.json",
234
+ "./types/css-prop": "./types/css-prop.d.ts",
235
+ "./macro": {
236
+ types: {
237
+ import: "./macro.d.mts",
238
+ default: "./macro.d.ts"
239
+ },
240
+ default: "./macro.js"
241
+ }
242
+ },
243
+ types: "types/index.d.ts",
244
+ files: [
245
+ "src",
246
+ "dist",
247
+ "jsx-runtime",
248
+ "jsx-dev-runtime",
249
+ "_isolated-hnrs",
250
+ "types/*.d.ts",
251
+ "macro.*"
252
+ ],
253
+ sideEffects: !1,
254
+ author: "Emotion Contributors",
255
+ license: "MIT",
256
+ scripts: {
257
+ "test:typescript": "dtslint types"
258
+ },
259
+ dependencies: {
260
+ "@babel/runtime": "^7.18.3",
261
+ "@emotion/babel-plugin": "^11.11.0",
262
+ "@emotion/cache": "^11.11.0",
263
+ "@emotion/serialize": "^1.1.2",
264
+ "@emotion/use-insertion-effect-with-fallbacks": "^1.0.1",
265
+ "@emotion/utils": "^1.2.1",
266
+ "@emotion/weak-memoize": "^0.3.1",
267
+ "hoist-non-react-statics": "^3.3.1"
268
+ },
269
+ peerDependencies: {
270
+ react: ">=16.8.0"
271
+ },
272
+ peerDependenciesMeta: {
273
+ "@types/react": {
274
+ optional: !0
275
+ }
276
+ },
277
+ devDependencies: {
278
+ "@definitelytyped/dtslint": "0.0.112",
279
+ "@emotion/css": "11.11.0",
280
+ "@emotion/css-prettifier": "1.1.3",
281
+ "@emotion/server": "11.11.0",
282
+ "@emotion/styled": "11.11.0",
283
+ "html-tag-names": "^1.1.2",
284
+ react: "16.14.0",
285
+ "svg-tag-names": "^1.1.1",
286
+ typescript: "^4.5.5"
287
+ },
288
+ repository: "https://github.com/emotion-js/emotion/tree/main/packages/react",
289
+ publishConfig: {
290
+ access: "public"
291
+ },
292
+ "umd:main": "dist/emotion-react.umd.min.js",
293
+ preconstruct: {
294
+ entrypoints: [
295
+ "./index.js",
296
+ "./jsx-runtime.js",
297
+ "./jsx-dev-runtime.js",
298
+ "./_isolated-hnrs.js"
299
+ ],
300
+ umdName: "emotionReact",
301
+ exports: {
302
+ envConditions: [
303
+ "browser",
304
+ "worker"
305
+ ],
306
+ extra: {
307
+ "./types/css-prop": "./types/css-prop.d.ts",
308
+ "./macro": {
309
+ types: {
310
+ import: "./macro.d.mts",
311
+ default: "./macro.d.ts"
312
+ },
313
+ default: "./macro.js"
314
+ }
315
+ }
316
+ }
317
+ }
318
+ }, Y = !1, Ce = /* @__PURE__ */ L(function(t, o) {
319
+ process.env.NODE_ENV !== "production" && !Y && // check for className as well since the user is
320
+ // probably using the custom createElement which
321
+ // means it will be turned into a className prop
322
+ // $FlowFixMe I don't really want to add it to the type since it shouldn't be used
323
+ (t.className || t.css) && (console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"), Y = !0);
324
+ var u = t.styles, n = $([u], void 0, S.useContext(V)), m = S.useRef();
325
+ return O(function() {
326
+ var c = o.key + "-global", s = new o.sheet.constructor({
327
+ key: c,
328
+ nonce: o.sheet.nonce,
329
+ container: o.sheet.container,
330
+ speedy: o.sheet.isSpeedy
331
+ }), l = !1, p = document.querySelector('style[data-emotion="' + c + " " + n.name + '"]');
332
+ return o.sheet.tags.length && (s.before = o.sheet.tags[0]), p !== null && (l = !0, p.setAttribute("data-emotion", c), s.hydrate([p])), m.current = [s, l], function() {
333
+ s.flush();
334
+ };
335
+ }, [o]), O(function() {
336
+ var c = m.current, s = c[0], l = c[1];
337
+ if (l) {
338
+ c[1] = !1;
339
+ return;
340
+ }
341
+ if (n.next !== void 0 && q(o, n.next, !0), s.tags.length) {
342
+ var p = s.tags[s.tags.length - 1].nextElementSibling;
343
+ s.before = p, s.flush();
344
+ }
345
+ o.insert("", n, s, !1);
346
+ }, [o, n.name]), null;
347
+ });
348
+ process.env.NODE_ENV !== "production" && (Ce.displayName = "EmotionGlobal");
349
+ function Te() {
350
+ for (var t = arguments.length, o = new Array(t), u = 0; u < t; u++)
351
+ o[u] = arguments[u];
352
+ return $(o);
353
+ }
354
+ var Me = function() {
355
+ var o = Te.apply(void 0, arguments), u = "animation-" + o.name;
356
+ return {
357
+ name: u,
358
+ styles: "@keyframes " + u + "{" + o.styles + "}",
359
+ anim: 1,
360
+ toString: function() {
361
+ return "_EMO_" + this.name + "_" + this.styles + "_EMO_";
362
+ }
363
+ };
364
+ }, Re = function t(o) {
365
+ for (var u = o.length, n = 0, m = ""; n < u; n++) {
366
+ var c = o[n];
367
+ if (c != null) {
368
+ var s = void 0;
369
+ switch (typeof c) {
370
+ case "boolean":
371
+ break;
372
+ case "object": {
373
+ if (Array.isArray(c))
374
+ s = t(c);
375
+ else {
376
+ process.env.NODE_ENV !== "production" && c.styles !== void 0 && c.name !== void 0 && console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."), s = "";
377
+ for (var l in c)
378
+ c[l] && l && (s && (s += " "), s += l);
379
+ }
380
+ break;
381
+ }
382
+ default:
383
+ s = c;
384
+ }
385
+ s && (m && (m += " "), m += s);
386
+ }
387
+ }
388
+ return m;
389
+ };
390
+ function we(t, o, u) {
391
+ var n = [], m = Ee(t, n, u);
392
+ return n.length < 2 ? u : m + o(n);
393
+ }
394
+ var ge = function(o) {
395
+ var u = o.cache, n = o.serializedArr;
396
+ return ye(function() {
397
+ for (var m = 0; m < n.length; m++)
398
+ q(u, n[m], !1);
399
+ }), null;
400
+ }, Pe = /* @__PURE__ */ L(function(t, o) {
401
+ var u = !1, n = [], m = function() {
402
+ if (u && process.env.NODE_ENV !== "production")
403
+ throw new Error("css can only be used during render");
404
+ for (var y = arguments.length, v = new Array(y), f = 0; f < y; f++)
405
+ v[f] = arguments[f];
406
+ var x = $(v, o.registered);
407
+ return n.push(x), ve(o, x, !1), o.key + "-" + x.name;
408
+ }, c = function() {
409
+ if (u && process.env.NODE_ENV !== "production")
410
+ throw new Error("cx can only be used during render");
411
+ for (var y = arguments.length, v = new Array(y), f = 0; f < y; f++)
412
+ v[f] = arguments[f];
413
+ return we(o.registered, m, Re(v));
414
+ }, s = {
415
+ css: m,
416
+ cx: c,
417
+ theme: S.useContext(V)
418
+ }, l = t.children(s);
419
+ return u = !0, /* @__PURE__ */ S.createElement(S.Fragment, null, /* @__PURE__ */ S.createElement(ge, {
420
+ cache: o,
421
+ serializedArr: n
422
+ }), l);
423
+ });
424
+ process.env.NODE_ENV !== "production" && (Pe.displayName = "EmotionClassNames");
425
+ if (process.env.NODE_ENV !== "production") {
426
+ var k = !0, $e = typeof jest < "u" || typeof vi < "u";
427
+ if (k && !$e) {
428
+ var D = (
429
+ // $FlowIgnore
430
+ typeof globalThis < "u" ? globalThis : k ? window : global
431
+ ), z = "__EMOTION_REACT_" + je.version.split(".")[0] + "__";
432
+ D[z] && console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."), D[z] = !0;
433
+ }
434
+ }
435
+ export {
436
+ Ce as G,
437
+ Te as c,
438
+ Me as k
439
+ };
@@ -0,0 +1,13 @@
1
+ import { _ as n } from "./createTheme-eb26b87a.js";
2
+ const s = "exact-prop: ​";
3
+ function u(e) {
4
+ return process.env.NODE_ENV === "production" ? e : n({}, e, {
5
+ [s]: (o) => {
6
+ const t = Object.keys(o).filter((r) => !e.hasOwnProperty(r));
7
+ return t.length > 0 ? new Error(`The following props are not supported: ${t.map((r) => `\`${r}\``).join(", ")}. Please remove them.`) : null;
8
+ }
9
+ });
10
+ }
11
+ export {
12
+ u as e
13
+ };
@@ -0,0 +1,16 @@
1
+ export declare const customColors: {
2
+ primary: string;
3
+ secondary: string;
4
+ error: string;
5
+ warning: string;
6
+ info: string;
7
+ success: string;
8
+ white: string;
9
+ grey: string;
10
+ black: string;
11
+ disabled: string;
12
+ hover: string;
13
+ modify: string;
14
+ };
15
+ export type CustomColors = keyof typeof customColors;
16
+ export declare function getColorToHex(color: CustomColors): string;
@@ -0,0 +1,22 @@
1
+ import { defaultTheme as e } from "./theme.js";
2
+ const a = {
3
+ primary: e.palette.primary.main,
4
+ secondary: e.palette.secondary.main,
5
+ error: e.palette.error.main,
6
+ warning: e.palette.warning.main,
7
+ info: e.palette.info.main,
8
+ success: e.palette.success.main,
9
+ white: "#FFFFFF",
10
+ grey: "#999999",
11
+ black: "#373131",
12
+ disabled: "#C4C4C4",
13
+ hover: "#3C4DBA",
14
+ modify: "#EFF3FF"
15
+ };
16
+ function o(r) {
17
+ return a[r];
18
+ }
19
+ export {
20
+ a as customColors,
21
+ o as getColorToHex
22
+ };
@@ -0,0 +1 @@
1
+
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,6 @@
1
+ import React from "react";
2
+ export interface CraftFC<T = Record<string, unknown>> {
3
+ (props: {
4
+ children?: React.JSX.Element | React.ReactNode | React.JSX.Element[] | React.ReactNode[];
5
+ } & T): React.JSX.Element | React.ReactNode;
6
+ }
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,35 @@
1
+ export declare const defaultTheme: import("@mui/material").Theme;
2
+ export declare const fontCustomizations: {
3
+ headingLarge: {
4
+ fontWeight: string;
5
+ fontSize: string;
6
+ };
7
+ headingMedium: {
8
+ fontWeight: string;
9
+ fontSize: string;
10
+ };
11
+ headingSmall: {
12
+ fontWeight: string;
13
+ fontSize: string;
14
+ };
15
+ bodyText: {
16
+ fontWeight: string;
17
+ fontSize: string;
18
+ };
19
+ smallText: {
20
+ fontSize: string;
21
+ };
22
+ boldText: {
23
+ fontWeight: string;
24
+ fontSize: string;
25
+ };
26
+ subtitleNormal: {
27
+ fontSize: string;
28
+ };
29
+ subtitleSmall: {
30
+ fontSize: string;
31
+ };
32
+ helperText: {
33
+ fontSize: string;
34
+ };
35
+ };
@@ -0,0 +1,76 @@
1
+ import "../assets/theme.css";
2
+ import { e } from "../createTheme-eb26b87a.js";
3
+ const f = {
4
+ 50: "#fffde7",
5
+ 100: "#fff9c4",
6
+ 200: "#fff59d",
7
+ 300: "#fff176",
8
+ 400: "#ffee58",
9
+ 500: "#ffeb3b",
10
+ 600: "#fdd835",
11
+ 700: "#fbc02d",
12
+ 800: "#f9a825",
13
+ 900: "#f57f17",
14
+ A100: "#ffff8d",
15
+ A200: "#ffff00",
16
+ A400: "#ffea00",
17
+ A700: "#ffd600"
18
+ }, t = f;
19
+ const i = e({
20
+ palette: {
21
+ primary: {
22
+ main: "#3C4FE0",
23
+ dark: "#3F4DBA",
24
+ contrastText: "white"
25
+ },
26
+ secondary: {
27
+ // light: yellow[400],
28
+ main: t[500]
29
+ // dark: yellow[700],
30
+ // contrastText: '#fff'
31
+ }
32
+ },
33
+ typography: {
34
+ fontFamily: "DM Sans, sans-serif"
35
+ }
36
+ }), a = {
37
+ headingLarge: {
38
+ fontWeight: "700",
39
+ fontSize: "1.5rem"
40
+ },
41
+ headingMedium: {
42
+ fontWeight: "700",
43
+ fontSize: "1.25rem"
44
+ },
45
+ headingSmall: {
46
+ fontWeight: "500",
47
+ fontSize: "1rem"
48
+ },
49
+ bodyText: {
50
+ fontWeight: "400",
51
+ fontSize: "1rem"
52
+ },
53
+ smallText: {
54
+ // fontWeight: "400",
55
+ fontSize: "0.875rem"
56
+ },
57
+ boldText: {
58
+ fontWeight: "700",
59
+ fontSize: "1rem"
60
+ },
61
+ subtitleNormal: {
62
+ // fontWeight: "400",
63
+ fontSize: "0.875rem"
64
+ },
65
+ subtitleSmall: {
66
+ // fontWeight: "400",
67
+ fontSize: "0.8125rem"
68
+ },
69
+ helperText: {
70
+ fontSize: "0.5625rem"
71
+ }
72
+ };
73
+ export {
74
+ i as defaultTheme,
75
+ a as fontCustomizations
76
+ };
package/dist/main.d.ts CHANGED
@@ -1,3 +1,7 @@
1
1
  import Button from "./components/cell/Button";
2
- import Input from "./components/cell/Input";
3
- export { Button, Input };
2
+ import ProgressBar from "./components/cell/ProgressBar";
3
+ import Search from "./components/cell/Search";
4
+ import Typography from "./components/cell/Typography";
5
+ export { Button, ProgressBar, Search, Typography };
6
+ export * from "./global/interfaces";
7
+ export * from "./providers";
package/dist/main.js CHANGED
@@ -1,6 +1,12 @@
1
1
  import { default as a } from "./components/cell/Button/index.js";
2
- import { default as f } from "./components/cell/Input/index.js";
2
+ import { default as t } from "./components/cell/ProgressBar/index.js";
3
+ import { default as p } from "./components/cell/Search/index.js";
4
+ import { default as d } from "./components/cell/Typography/index.js";
5
+ import { default as u } from "./providers/CraftThemeProvider.js";
3
6
  export {
4
7
  a as Button,
5
- f as Input
8
+ u as CraftThemeProvider,
9
+ t as ProgressBar,
10
+ p as Search,
11
+ d as Typography
6
12
  };
@@ -0,0 +1,16 @@
1
+ import { Theme } from '@mui/material/styles';
2
+ import React from 'react';
3
+ import { CraftFC } from '../global/interfaces';
4
+ interface CraftThemeProviderProps {
5
+ children: React.ReactNode;
6
+ theme?: Theme;
7
+ }
8
+ /**
9
+ * A custom theme provider component that combines the provided theme with the defined theme.
10
+ * Uses MUI's ThemeProvider and creates a theme using createTheme.
11
+ * @param children - The child components to be wrapped by the theme provider.
12
+ * @param theme - An optional partial theme object to override the default theme.
13
+ * @returns A ThemeProvider component with the combined theme.
14
+ */
15
+ declare const CraftThemeProvider: CraftFC<CraftThemeProviderProps>;
16
+ export default CraftThemeProvider;