@loopr-ai/craft 0.6.0 → 0.7.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.
Files changed (39) hide show
  1. package/dist/Box-8cd400c2.js +58 -0
  2. package/dist/{ButtonBase-85c9347b.js → ButtonBase-fc1e48eb.js} +3 -3
  3. package/dist/Form.interfaces-c9b49688.js +6 -0
  4. package/dist/{createSvgIcon-70f9f72b.js → Grow-a906cda2.js} +3944 -4020
  5. package/dist/TextField-a534df29.js +5931 -0
  6. package/dist/{TransitionGroupContext-fe9a562f.js → TransitionGroupContext-ba502e63.js} +3 -3
  7. package/dist/Typography-65e5f8a8.js +178 -0
  8. package/dist/{ZoomControllers-7fb8d495.js → ZoomControllers-8a147df0.js} +848 -900
  9. package/dist/components/cell/AvatarGroup/index.js +3 -3
  10. package/dist/components/cell/Button/index.js +3 -3
  11. package/dist/components/cell/Chip/index.js +5 -5
  12. package/dist/components/cell/ProgressBar/index.js +3 -3
  13. package/dist/components/cell/Search/index.js +27 -5949
  14. package/dist/components/cell/Typography/index.js +16 -188
  15. package/dist/components/organ/Form/FieldInput.d.ts +27 -0
  16. package/dist/components/organ/Form/FieldInput.js +440 -0
  17. package/dist/components/organ/Form/Form.interfaces.d.ts +55 -0
  18. package/dist/components/organ/Form/Form.interfaces.js +1 -0
  19. package/dist/components/organ/Form/Form.styles.d.ts +5 -0
  20. package/dist/components/organ/Form/Form.styles.js +10 -0
  21. package/dist/components/organ/Form/Form.utils.d.ts +2 -0
  22. package/dist/components/organ/Form/Form.utils.js +27 -0
  23. package/dist/components/organ/Form/index.d.ts +30 -0
  24. package/dist/components/organ/Form/index.js +137 -0
  25. package/dist/components/organ/ZoomControlWithDrag/ZoomControllers.js +3 -2
  26. package/dist/components/organ/ZoomControlWithDrag/index.js +18 -17
  27. package/dist/createSvgIcon-8e5d9dc7.js +81 -0
  28. package/dist/{createSvgIcon-58aa3adf.js → createSvgIcon-bb3d4825.js} +5 -5
  29. package/dist/{createTheme-a4db2989.js → createTheme-ca1567c6.js} +7 -7
  30. package/dist/dividerClasses-0233db5a.js +10 -0
  31. package/dist/{exactProp-d79ccada.js → exactProp-3d9df1ae.js} +1 -1
  32. package/dist/{extendSxProp-db8b9da5.js → extendSxProp-fc2654e5.js} +1 -1
  33. package/dist/global/theme.js +1 -1
  34. package/dist/main.d.ts +5 -3
  35. package/dist/main.js +20 -16
  36. package/dist/providers/CraftThemeProvider.js +2 -2
  37. package/dist/{styled-126c6a62.js → styled-80b57810.js} +49 -49
  38. package/dist/{useTheme-573c40a2.js → useTheme-16446f25.js} +1 -1
  39. package/package.json +1 -1
@@ -0,0 +1,55 @@
1
+ /// <reference types="react" />
2
+ import { FormInputProps } from "./FieldInput";
3
+ export interface InputField {
4
+ label: string;
5
+ name: string;
6
+ type: "text" | "number" | "select" | "email" | "password" | "custom";
7
+ placeholder?: string;
8
+ required?: boolean;
9
+ defaultValue?: string;
10
+ disabled?: boolean;
11
+ beforeField?: string | React.ReactNode;
12
+ afterField?: string | React.ReactNode;
13
+ helperText?: string;
14
+ }
15
+ export interface Option {
16
+ name: string;
17
+ value: string;
18
+ }
19
+ export type OptionsType = Array<Option> | Array<string>;
20
+ interface OptionsResponseHandler {
21
+ key: string;
22
+ name: string;
23
+ value: string | number;
24
+ }
25
+ export interface SelectField extends InputField {
26
+ options?: OptionsType;
27
+ api_endpoint?: string;
28
+ optionsResponseHandler?: OptionsResponseHandler;
29
+ }
30
+ interface Validation {
31
+ min?: number;
32
+ max?: number;
33
+ min_length?: number;
34
+ max_length?: number;
35
+ pattern?: string;
36
+ invalid_message: string;
37
+ }
38
+ export interface ConfigField extends SelectField {
39
+ validation?: Validation;
40
+ customComponent?: string;
41
+ submitDataKey?: string;
42
+ }
43
+ export interface CustomFieldProps {
44
+ value: string;
45
+ handleChange: (key: string, value: string) => void;
46
+ }
47
+ export interface CustomFields {
48
+ [key_name: string]: React.ComponentType<FormInputProps>;
49
+ }
50
+ export interface InvalidData {
51
+ message: string;
52
+ field: string;
53
+ value: string;
54
+ }
55
+ export {};
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ declare const styles: {
3
+ [key: string]: React.CSSProperties;
4
+ };
5
+ export default styles;
@@ -0,0 +1,10 @@
1
+ const e = {
2
+ alignVertical: {
3
+ display: "flex",
4
+ flexDirection: "column",
5
+ gap: "1rem"
6
+ }
7
+ };
8
+ export {
9
+ e as default
10
+ };
@@ -0,0 +1,2 @@
1
+ export declare function createNestedObject(finalObjectKey: string, type: string, value: string): any;
2
+ export declare function deepMergeObjects(finalObj: any, nestedObj: any): any;
@@ -0,0 +1,27 @@
1
+ function k(t, r, e) {
2
+ const c = t.split("."), o = c.length - 1;
3
+ let s = {};
4
+ for (let n = o; n >= 0; n--) {
5
+ const u = c[n];
6
+ let y = {};
7
+ n === o ? s[u] = r === "number" ? parseInt(e) : e : (y[u] = { ...s }, s = y);
8
+ }
9
+ return s;
10
+ }
11
+ function p(t, r) {
12
+ const [e] = Object.keys(r);
13
+ return t.hasOwnProperty(e) ? {
14
+ ...t,
15
+ [e]: p(
16
+ t[e],
17
+ r[e]
18
+ )
19
+ } : {
20
+ ...t,
21
+ ...r
22
+ };
23
+ }
24
+ export {
25
+ k as createNestedObject,
26
+ p as deepMergeObjects
27
+ };
@@ -0,0 +1,30 @@
1
+ import { SxProps } from "@mui/material";
2
+ import React from "react";
3
+ import { CraftFC } from "../../../global/interfaces";
4
+ import { ConfigField, CustomFields, InvalidData } from "./Form.interfaces";
5
+ interface FormProps {
6
+ config: Array<ConfigField>;
7
+ submitText?: string;
8
+ handleSubmit: (data: any) => void;
9
+ handleInvalidData?: (data: Array<InvalidData>) => void;
10
+ cancelText?: string;
11
+ handleCancel: () => void;
12
+ onChange?: (key: string, value: string) => void;
13
+ customFields?: CustomFields;
14
+ formStyles?: React.CSSProperties;
15
+ buttonWrapperStyles?: SxProps;
16
+ }
17
+ /**
18
+ * Form component
19
+ * @param config - Array of ConfigField objects
20
+ * @param submitText - Text for submit button
21
+ * @param handleSubmit - Function to handle form submission
22
+ * @param handleInvalidData - Function to handle invalid form data
23
+ * @param cancelText - Text for cancel button
24
+ * @param handleCancel - Function to handle form cancel
25
+ * @param onChange - Function to handle form field change
26
+ * @param customFields - Custom form fields
27
+ * @param style - Form style
28
+ */
29
+ declare const Form: CraftFC<FormProps>;
30
+ export default Form;
@@ -0,0 +1,137 @@
1
+ import { jsxs as j, jsx as u } from "react/jsx-runtime";
2
+ import { useState as y, useCallback as K, useEffect as P } from "react";
3
+ import V from "../../cell/Button/index.js";
4
+ import R from "./FieldInput.js";
5
+ import _ from "./Form.styles.js";
6
+ import { createNestedObject as T, deepMergeObjects as W } from "./Form.utils.js";
7
+ import { B as $ } from "../../../Box-8cd400c2.js";
8
+ const U = ({
9
+ config: r,
10
+ submitText: g = "Submit",
11
+ handleSubmit: v,
12
+ handleInvalidData: p,
13
+ cancelText: F = "Cancel",
14
+ handleCancel: S,
15
+ onChange: c,
16
+ formStyles: O = {},
17
+ buttonWrapperStyles: C = {},
18
+ customFields: B = {}
19
+ }) => {
20
+ const [o, d] = y({}), [E, f] = y([]);
21
+ function M(e, s) {
22
+ d((m) => ({
23
+ ...m,
24
+ [e]: s
25
+ })), c == null || c(e, s);
26
+ }
27
+ function x() {
28
+ const e = {};
29
+ r == null || r.forEach((s) => {
30
+ e[s.name] = s.defaultValue || "";
31
+ }), d(e), f([]);
32
+ }
33
+ function k() {
34
+ const e = [];
35
+ return r == null || r.forEach((s) => {
36
+ const { name: m, label: n, type: l, validation: t, required: b } = s, a = o[m], i = m;
37
+ if (t)
38
+ if (l === "number") {
39
+ const h = parseInt(a);
40
+ t.min && h < t.min && e.push({
41
+ field: i,
42
+ value: a,
43
+ message: t.invalid_message
44
+ }), t.max && h > t.max && e.push({
45
+ field: i,
46
+ value: a,
47
+ message: t.invalid_message
48
+ }), isNaN(h) && e.push({
49
+ field: i,
50
+ value: a,
51
+ message: "Invalid number"
52
+ });
53
+ } else
54
+ l === "text" && (t.min_length && a.length < t.min_length && e.push({
55
+ field: i,
56
+ value: a,
57
+ message: t.invalid_message
58
+ }), t.max_length && a.length > t.max_length && e.push({
59
+ field: i,
60
+ value: a,
61
+ message: t.invalid_message
62
+ }), t.pattern && !new RegExp(t.pattern).test(a) && e.push({
63
+ field: i,
64
+ value: a,
65
+ message: t.invalid_message
66
+ }));
67
+ b && !a && e.push({
68
+ field: i,
69
+ value: a,
70
+ message: `${n} is required`
71
+ });
72
+ }), f(e), e.length && (p == null || p(e)), !e.length;
73
+ }
74
+ const D = K(
75
+ (e) => {
76
+ let s = {};
77
+ return e == null || e.forEach((m) => {
78
+ const { name: n, type: l, submitDataKey: t } = m;
79
+ if (t) {
80
+ const b = T(
81
+ t,
82
+ l,
83
+ o[n]
84
+ );
85
+ s = W(s, b);
86
+ } else
87
+ s[n] = l === "number" ? parseInt(o[n]) : o[n];
88
+ }), s;
89
+ },
90
+ [o]
91
+ );
92
+ function N(e) {
93
+ if (e.preventDefault(), k()) {
94
+ const m = D(r);
95
+ v(m);
96
+ }
97
+ }
98
+ function q() {
99
+ x(), S();
100
+ }
101
+ P(() => {
102
+ x();
103
+ }, []);
104
+ const w = {
105
+ ..._.alignVertical,
106
+ ...O
107
+ }, A = {
108
+ ..._.alignVertical,
109
+ ...C
110
+ };
111
+ return /* @__PURE__ */ j("form", { style: w, children: [
112
+ Object.keys(o).length && (r == null ? void 0 : r.map((e) => {
113
+ const s = E.find(
114
+ (n) => n.field === e.name
115
+ ), m = {
116
+ ...e,
117
+ value: o[e.name],
118
+ handleChange: M,
119
+ error: !!s,
120
+ helperText: s == null ? void 0 : s.message
121
+ };
122
+ if (e.type === "custom" && e.customComponent) {
123
+ const n = B[e.customComponent];
124
+ if (n)
125
+ return /* @__PURE__ */ u(n, { ...m }, e.name);
126
+ } else
127
+ return /* @__PURE__ */ u(R, { ...m }, e.name);
128
+ })),
129
+ /* @__PURE__ */ j($, { sx: A, children: [
130
+ /* @__PURE__ */ u(V, { type: "submit", onClick: N, children: g }),
131
+ /* @__PURE__ */ u(V, { onClick: q, children: F })
132
+ ] })
133
+ ] });
134
+ };
135
+ export {
136
+ U as default
137
+ };
@@ -1,5 +1,6 @@
1
1
  import "react/jsx-runtime";
2
- import { Z as a } from "../../../ZoomControllers-7fb8d495.js";
2
+ import { Z as p } from "../../../ZoomControllers-8a147df0.js";
3
+ import "../../../Box-8cd400c2.js";
3
4
  export {
4
- a as default
5
+ p as default
5
6
  };
@@ -1,14 +1,15 @@
1
1
  import { jsx as t, jsxs as y } from "react/jsx-runtime";
2
2
  import { useState as x, useEffect as n, useMemo as w } from "react";
3
- import { B as m, T as C, Z as S, a as W } from "../../../ZoomControllers-7fb8d495.js";
3
+ import { T as C, Z as S, a as W } from "../../../ZoomControllers-8a147df0.js";
4
+ import { B as m } from "../../../Box-8cd400c2.js";
4
5
  const D = {
5
6
  position: "relative",
6
7
  borderRadius: "1rem",
7
8
  overflow: "hidden"
8
- }, v = ({
9
+ }, B = ({
9
10
  children: c,
10
- parentContainerProps: l,
11
- zoomControllerProps: f,
11
+ parentContainerProps: f,
12
+ zoomControllerProps: l,
12
13
  defaultRotationAngle: p,
13
14
  onRotate: o,
14
15
  height: s,
@@ -16,38 +17,38 @@ const D = {
16
17
  rotatedImageScale: i = 0.55,
17
18
  ...d
18
19
  }) => {
19
- const [r, h] = x(p ?? "0");
20
+ const [e, h] = x(p ?? "0");
20
21
  function u() {
21
- h((e) => ((parseInt(e) + 90) % 360).toString());
22
+ h((r) => ((parseInt(r) + 90) % 360).toString());
22
23
  }
23
24
  n(() => {
24
- const e = document.querySelector(".react-transform-wrapper");
25
- e && (e.style.width = "100%", e.style.height = "100%");
25
+ const r = document.querySelector(".react-transform-wrapper");
26
+ r && (r.style.width = "100%", r.style.height = "100%");
26
27
  }, []), n(() => {
27
- const e = document.querySelector(".react-transform-component");
28
- e && (e.style.transformOrigin = "center center", e.style.height = s ?? "100%", e.style.width = a ?? "100%");
28
+ const r = document.querySelector(".react-transform-component");
29
+ r && (r.style.transformOrigin = "center center", r.style.height = s ?? "100%", r.style.width = a ?? "100%");
29
30
  }, [a, s]), n(() => {
30
- o == null || o(r);
31
- }, [r]);
31
+ o == null || o(e);
32
+ }, [e]);
32
33
  const g = w(() => ({
33
- transform: `rotate(${r}deg) scale(${parseInt(r) === 0 || parseInt(r) === 180 ? 1 : i})`,
34
+ transform: `rotate(${e}deg) scale(${parseInt(e) === 0 || parseInt(e) === 180 ? 1 : i})`,
34
35
  width: "100%",
35
36
  height: "100%",
36
37
  "& img": {
37
38
  height: "100%"
38
39
  }
39
- }), [r, i]);
40
+ }), [e, i]);
40
41
  return /* @__PURE__ */ t(
41
42
  m,
42
43
  {
43
44
  sx: D,
44
- ...l,
45
+ ...f,
45
46
  children: /* @__PURE__ */ y(C, { ...d, children: [
46
47
  /* @__PURE__ */ t(
47
48
  S,
48
49
  {
49
50
  handleRotate: u,
50
- ...f
51
+ ...l
51
52
  }
52
53
  ),
53
54
  /* @__PURE__ */ t(W, { children: /* @__PURE__ */ t(m, { sx: g, children: c }) })
@@ -56,5 +57,5 @@ const D = {
56
57
  );
57
58
  };
58
59
  export {
59
- v as default
60
+ B as default
60
61
  };
@@ -0,0 +1,81 @@
1
+ import { a as _, C as g, b, h as E } from "./createTheme-ca1567c6.js";
2
+ import { c as y } from "./createSvgIcon-bb3d4825.js";
3
+ import { c as C, d as N, i as S, o as I, a as $, u as x, b as T } from "./Grow-a906cda2.js";
4
+ import { s as q, a as P, b as w, u as D, c as O } from "./TransitionGroupContext-ba502e63.js";
5
+ import { u as R } from "./unsupportedProp-3dbf01f6.js";
6
+ function M(e, r) {
7
+ return process.env.NODE_ENV === "production" ? () => null : (t, u, s, n, o) => {
8
+ const a = s || "<<anonymous>>", i = o || u;
9
+ return typeof t[u] < "u" ? new Error(`The ${n} \`${i}\` of \`${a}\` is deprecated. ${r}`) : null;
10
+ };
11
+ }
12
+ function F(e, r) {
13
+ if (process.env.NODE_ENV === "production")
14
+ return () => null;
15
+ const t = r ? _({}, r.propTypes) : null;
16
+ return (s) => (n, o, a, i, l, ...v) => {
17
+ const f = l || o, p = t == null ? void 0 : t[f];
18
+ if (p) {
19
+ const d = p(n, o, a, i, l, ...v);
20
+ if (d)
21
+ return d;
22
+ }
23
+ return typeof n[o] < "u" && !n[s] ? new Error(`The prop \`${f}\` of \`${e}\` can only be used together with the \`${s}\` prop.`) : null;
24
+ };
25
+ }
26
+ const k = {
27
+ configure: (e) => {
28
+ process.env.NODE_ENV !== "production" && console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.", "", "You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead", "", "The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401", "", "The updated documentation: https://mui.com/guides/classname-generator/"].join(`
29
+ `)), g.configure(e);
30
+ }
31
+ }, G = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
32
+ __proto__: null,
33
+ capitalize: b,
34
+ createChainedFunction: C,
35
+ createSvgIcon: y,
36
+ debounce: N,
37
+ deprecatedPropType: M,
38
+ isMuiElement: S,
39
+ ownerDocument: I,
40
+ ownerWindow: $,
41
+ requirePropFactory: F,
42
+ setRef: q,
43
+ unstable_ClassNameGenerator: k,
44
+ unstable_useEnhancedEffect: P,
45
+ unstable_useId: x,
46
+ unsupportedProp: R,
47
+ useControlled: T,
48
+ useEventCallback: w,
49
+ useForkRef: D,
50
+ useIsFocusVisible: O
51
+ }, Symbol.toStringTag, { value: "Module" }));
52
+ var h = { exports: {} };
53
+ (function(e) {
54
+ function r(t) {
55
+ return t && t.__esModule ? t : {
56
+ default: t
57
+ };
58
+ }
59
+ e.exports = r, e.exports.__esModule = !0, e.exports.default = e.exports;
60
+ })(h);
61
+ var Y = h.exports, c = {};
62
+ const V = /* @__PURE__ */ E(G);
63
+ var m;
64
+ function B() {
65
+ return m || (m = 1, function(e) {
66
+ "use client";
67
+ Object.defineProperty(e, "__esModule", {
68
+ value: !0
69
+ }), Object.defineProperty(e, "default", {
70
+ enumerable: !0,
71
+ get: function() {
72
+ return r.createSvgIcon;
73
+ }
74
+ });
75
+ var r = V;
76
+ }(c)), c;
77
+ }
78
+ export {
79
+ Y as i,
80
+ B as r
81
+ };
@@ -1,9 +1,9 @@
1
- import { g as b, c as h, _ as w, a as y, P as o } from "./createTheme-a4db2989.js";
1
+ import { g as I, b as h, _ as w, a as y, P as o } from "./createTheme-ca1567c6.js";
2
2
  import * as v from "react";
3
3
  import { jsxs as C, jsx as z } from "react/jsx-runtime";
4
- import { g as T, s as N, a as R, c as O, b as B } from "./styled-126c6a62.js";
4
+ import { g as T, a as N, b as R, c as O, e as B } from "./styled-80b57810.js";
5
5
  function j(e) {
6
- return b("MuiSvgIcon", e);
6
+ return I("MuiSvgIcon", e);
7
7
  }
8
8
  T("MuiSvgIcon", ["root", "colorPrimary", "colorSecondary", "colorAction", "colorError", "colorDisabled", "fontSizeInherit", "fontSizeSmall", "fontSizeMedium", "fontSizeLarge"]);
9
9
  const A = ["children", "className", "color", "component", "fontSize", "htmlColor", "inheritViewBox", "titleAccess", "viewBox"], E = (e) => {
@@ -78,10 +78,10 @@ const A = ["children", "className", "color", "component", "fontSize", "htmlColor
78
78
  hasSvgAsChild: l
79
79
  }), x = {};
80
80
  m || (x.viewBox = a);
81
- const I = E($);
81
+ const b = E($);
82
82
  return /* @__PURE__ */ C(V, y({
83
83
  as: c,
84
- className: O(I.root, d),
84
+ className: O(b.root, d),
85
85
  focusable: "false",
86
86
  color: u,
87
87
  "aria-hidden": s ? void 0 : !0,
@@ -2204,16 +2204,16 @@ export {
2204
2204
  ue as P,
2205
2205
  se as _,
2206
2206
  U as a,
2207
- qr as b,
2208
- bt as c,
2207
+ bt as b,
2208
+ En as c,
2209
2209
  Ge as d,
2210
- On as e,
2211
- En as f,
2210
+ qr as e,
2211
+ On as f,
2212
2212
  Ft as g,
2213
- zr as h,
2213
+ vn as h,
2214
2214
  oe as i,
2215
- It as j,
2216
- vn as k,
2215
+ zr as j,
2216
+ It as k,
2217
2217
  Fr as l,
2218
2218
  ae as m,
2219
2219
  F as n,
@@ -0,0 +1,10 @@
1
+ import { g as t } from "./styled-80b57810.js";
2
+ import { g as e } from "./createTheme-ca1567c6.js";
3
+ function a(i) {
4
+ return e("MuiDivider", i);
5
+ }
6
+ const r = t("MuiDivider", ["root", "absolute", "fullWidth", "inset", "middle", "flexItem", "light", "vertical", "withChildren", "withChildrenVertical", "textAlignRight", "textAlignLeft", "wrapper", "wrapperVertical"]), d = r;
7
+ export {
8
+ d,
9
+ a as g
10
+ };
@@ -1,4 +1,4 @@
1
- import { a as n } from "./createTheme-a4db2989.js";
1
+ import { a as n } from "./createTheme-ca1567c6.js";
2
2
  const s = "exact-prop: ​";
3
3
  function u(e) {
4
4
  return process.env.NODE_ENV === "production" ? e : n({}, e, {
@@ -1,4 +1,4 @@
1
- import { _ as a, a as i, d as c, i as f } from "./createTheme-a4db2989.js";
1
+ import { _ as a, a as i, d as c, i as f } from "./createTheme-ca1567c6.js";
2
2
  const x = ["sx"], P = (t) => {
3
3
  var s, o;
4
4
  const n = {
@@ -1,5 +1,5 @@
1
1
  import "../assets/theme.css";
2
- import { f as e } from "../createTheme-a4db2989.js";
2
+ import { c as e } from "../createTheme-ca1567c6.js";
3
3
  const f = {
4
4
  50: "#fffde7",
5
5
  100: "#fff9c4",
package/dist/main.d.ts CHANGED
@@ -1,10 +1,12 @@
1
- import Chip from "./components/cell/Chip";
1
+ import AvatarGroup from "./components/cell/AvatarGroup";
2
2
  import Button from "./components/cell/Button";
3
+ import Chip from "./components/cell/Chip";
3
4
  import ProgressBar from "./components/cell/ProgressBar";
4
5
  import Search from "./components/cell/Search";
5
6
  import Typography from "./components/cell/Typography";
6
- import AvatarGroup from "./components/cell/AvatarGroup";
7
+ import Form from "./components/organ/Form";
8
+ import * as FormTypes from "./components/organ/Form/Form.interfaces";
7
9
  import ZoomControlWithDrag from "./components/organ/ZoomControlWithDrag";
8
- export { Button, ProgressBar, Search, Chip, Typography, AvatarGroup, ZoomControlWithDrag, };
10
+ export { AvatarGroup, Button, Chip, Form, FormTypes, ProgressBar, Search, Typography, ZoomControlWithDrag, };
9
11
  export * from "./global/interfaces";
10
12
  export * from "./providers";
package/dist/main.js CHANGED
@@ -1,18 +1,22 @@
1
- import { default as a } from "./components/cell/Chip/index.js";
2
- import { default as e } from "./components/cell/Button/index.js";
3
- import { default as p } from "./components/cell/ProgressBar/index.js";
4
- import { default as s } from "./components/cell/Search/index.js";
5
- import { default as d } from "./components/cell/Typography/index.js";
6
- import { default as x } from "./components/cell/AvatarGroup/index.js";
7
- import { default as g } from "./components/organ/ZoomControlWithDrag/index.js";
8
- import { default as C } from "./providers/CraftThemeProvider.js";
1
+ import { default as a } from "./components/cell/AvatarGroup/index.js";
2
+ import { default as t } from "./components/cell/Button/index.js";
3
+ import { default as p } from "./components/cell/Chip/index.js";
4
+ import { default as s } from "./components/cell/ProgressBar/index.js";
5
+ import { default as d } from "./components/cell/Search/index.js";
6
+ import { default as x } from "./components/cell/Typography/index.js";
7
+ import { default as g } from "./components/organ/Form/index.js";
8
+ import { F as y } from "./Form.interfaces-c9b49688.js";
9
+ import { default as F } from "./components/organ/ZoomControlWithDrag/index.js";
10
+ import { default as n } from "./providers/CraftThemeProvider.js";
9
11
  export {
10
- x as AvatarGroup,
11
- e as Button,
12
- a as Chip,
13
- C as CraftThemeProvider,
14
- p as ProgressBar,
15
- s as Search,
16
- d as Typography,
17
- g as ZoomControlWithDrag
12
+ a as AvatarGroup,
13
+ t as Button,
14
+ p as Chip,
15
+ n as CraftThemeProvider,
16
+ g as Form,
17
+ y as FormTypes,
18
+ s as ProgressBar,
19
+ d as Search,
20
+ x as Typography,
21
+ F as ZoomControlWithDrag
18
22
  };
@@ -2,9 +2,9 @@ import { jsx as u } from "react/jsx-runtime";
2
2
  import * as p from "react";
3
3
  import { useMemo as O } from "react";
4
4
  import { defaultTheme as P } from "../global/theme.js";
5
- import { P as n, a as c, _ as D, f as j, n as V } from "../createTheme-a4db2989.js";
5
+ import { P as n, a as c, _ as D, c as j, n as V } from "../createTheme-ca1567c6.js";
6
6
  import { c as b, a as g, T as f } from "../useThemeWithoutDefault-188598a8.js";
7
- import { e as v } from "../exactProp-d79ccada.js";
7
+ import { e as v } from "../exactProp-3d9df1ae.js";
8
8
  const l = /* @__PURE__ */ p.createContext(null);
9
9
  process.env.NODE_ENV !== "production" && (l.displayName = "ThemeContext");
10
10
  const E = l;