@hiver/connector-admin 0.0.8-beta.1 → 0.0.9

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 (43) hide show
  1. package/Typography-BvoDUPsi.js +174 -0
  2. package/app/connectors/pages/settings/styles.d.ts.map +1 -1
  3. package/components/layouts/sidebar/styles.d.ts.map +1 -1
  4. package/components/ui/form-fields/index.d.ts +14 -0
  5. package/components/ui/form-fields/index.d.ts.map +1 -0
  6. package/components/ui/form-fields/styles.d.ts +7 -0
  7. package/components/ui/form-fields/styles.d.ts.map +1 -0
  8. package/components/ui/select/index.d.ts +3 -0
  9. package/components/ui/select/index.d.ts.map +1 -0
  10. package/constants/app-constants.d.ts +3 -0
  11. package/constants/app-constants.d.ts.map +1 -0
  12. package/features/connector-library/components/library-card-list/index.d.ts.map +1 -1
  13. package/features/connector-library/store/slice.d.ts.map +1 -1
  14. package/index-0ckwA6Bt.js +3356 -0
  15. package/index-CPqWySPe.js +2954 -0
  16. package/index-CWnqz_7p.js +55 -0
  17. package/index-CihMwBsW.js +5 -0
  18. package/index-D5knnyWw.js +68 -0
  19. package/index-g_hNAZie.js +29155 -0
  20. package/index-xau7jZsj.js +40 -0
  21. package/index.es.js +5 -6
  22. package/index.umd.js +2171 -44392
  23. package/package.json +4 -6
  24. package/types/form.d.ts +36 -0
  25. package/types/form.d.ts.map +1 -0
  26. package/Typography-B0pksnYc.js +0 -190
  27. package/Typography-B0pksnYc.js.map +0 -1
  28. package/index-BKM5Gqeg.js +0 -3948
  29. package/index-BKM5Gqeg.js.map +0 -1
  30. package/index-BkF5gT0G.js +0 -8
  31. package/index-BkF5gT0G.js.map +0 -1
  32. package/index-Cg0w12Ck.js +0 -36308
  33. package/index-Cg0w12Ck.js.map +0 -1
  34. package/index-Df5OkDqQ.js +0 -61
  35. package/index-Df5OkDqQ.js.map +0 -1
  36. package/index-Dkx6PyMA.js +0 -57
  37. package/index-Dkx6PyMA.js.map +0 -1
  38. package/index-G3Hgu5xC.js +0 -95
  39. package/index-G3Hgu5xC.js.map +0 -1
  40. package/index-cz0aBfFX.js +0 -3753
  41. package/index-cz0aBfFX.js.map +0 -1
  42. package/index.es.js.map +0 -1
  43. package/index.umd.js.map +0 -1
@@ -0,0 +1,174 @@
1
+ import { g as B, f as W, s as j, h as f, _ as p, i as C, am as M, k as O, j as P, l as R, P as t, m as N } from "./index-g_hNAZie.js";
2
+ import * as _ from "react";
3
+ function U(a) {
4
+ return B("MuiTypography", a);
5
+ }
6
+ W("MuiTypography", ["root", "h1", "h2", "h3", "h4", "h5", "h6", "subtitle1", "subtitle2", "body1", "body2", "inherit", "button", "caption", "overline", "alignLeft", "alignRight", "alignCenter", "alignJustify", "noWrap", "gutterBottom", "paragraph"]);
7
+ const D = ["align", "className", "component", "gutterBottom", "noWrap", "paragraph", "variant", "variantMapping"], E = (a) => {
8
+ const {
9
+ align: o,
10
+ gutterBottom: r,
11
+ noWrap: e,
12
+ paragraph: i,
13
+ variant: n,
14
+ classes: h
15
+ } = a, s = {
16
+ root: ["root", n, a.align !== "inherit" && `align${f(o)}`, r && "gutterBottom", e && "noWrap", i && "paragraph"]
17
+ };
18
+ return N(s, U, h);
19
+ }, L = j("span", {
20
+ name: "MuiTypography",
21
+ slot: "Root",
22
+ overridesResolver: (a, o) => {
23
+ const {
24
+ ownerState: r
25
+ } = a;
26
+ return [o.root, r.variant && o[r.variant], r.align !== "inherit" && o[`align${f(r.align)}`], r.noWrap && o.noWrap, r.gutterBottom && o.gutterBottom, r.paragraph && o.paragraph];
27
+ }
28
+ })(({
29
+ theme: a,
30
+ ownerState: o
31
+ }) => p({
32
+ margin: 0
33
+ }, o.variant === "inherit" && {
34
+ // Some elements, like <button> on Chrome have default font that doesn't inherit, reset this.
35
+ font: "inherit"
36
+ }, o.variant !== "inherit" && a.typography[o.variant], o.align !== "inherit" && {
37
+ textAlign: o.align
38
+ }, o.noWrap && {
39
+ overflow: "hidden",
40
+ textOverflow: "ellipsis",
41
+ whiteSpace: "nowrap"
42
+ }, o.gutterBottom && {
43
+ marginBottom: "0.35em"
44
+ }, o.paragraph && {
45
+ marginBottom: 16
46
+ })), u = {
47
+ h1: "h1",
48
+ h2: "h2",
49
+ h3: "h3",
50
+ h4: "h4",
51
+ h5: "h5",
52
+ h6: "h6",
53
+ subtitle1: "h6",
54
+ subtitle2: "h6",
55
+ body1: "p",
56
+ body2: "p",
57
+ inherit: "p"
58
+ }, V = {
59
+ primary: "primary.main",
60
+ textPrimary: "text.primary",
61
+ secondary: "secondary.main",
62
+ textSecondary: "text.secondary",
63
+ error: "error.main"
64
+ }, $ = (a) => V[a] || a, k = /* @__PURE__ */ _.forwardRef(function(o, r) {
65
+ const e = C({
66
+ props: o,
67
+ name: "MuiTypography"
68
+ }), i = $(e.color), n = M(p({}, e, {
69
+ color: i
70
+ })), {
71
+ align: h = "inherit",
72
+ className: s,
73
+ component: g,
74
+ gutterBottom: d = !1,
75
+ noWrap: b = !1,
76
+ paragraph: c = !1,
77
+ variant: l = "body1",
78
+ variantMapping: m = u
79
+ } = n, v = O(n, D), y = p({}, n, {
80
+ align: h,
81
+ color: i,
82
+ className: s,
83
+ component: g,
84
+ gutterBottom: d,
85
+ noWrap: b,
86
+ paragraph: c,
87
+ variant: l,
88
+ variantMapping: m
89
+ }), x = g || (c ? "p" : m[l] || u[l]) || "span", T = E(y);
90
+ return /* @__PURE__ */ P.jsx(L, p({
91
+ as: x,
92
+ ref: r,
93
+ ownerState: y,
94
+ className: R(T.root, s)
95
+ }, v));
96
+ });
97
+ process.env.NODE_ENV !== "production" && (k.propTypes = {
98
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
99
+ // │ These PropTypes are generated from the TypeScript type definitions. │
100
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
101
+ // └─────────────────────────────────────────────────────────────────────┘
102
+ /**
103
+ * Set the text-align on the component.
104
+ * @default 'inherit'
105
+ */
106
+ align: t.oneOf(["center", "inherit", "justify", "left", "right"]),
107
+ /**
108
+ * The content of the component.
109
+ */
110
+ children: t.node,
111
+ /**
112
+ * Override or extend the styles applied to the component.
113
+ */
114
+ classes: t.object,
115
+ /**
116
+ * @ignore
117
+ */
118
+ className: t.string,
119
+ /**
120
+ * The component used for the root node.
121
+ * Either a string to use a HTML element or a component.
122
+ */
123
+ component: t.elementType,
124
+ /**
125
+ * If `true`, the text will have a bottom margin.
126
+ * @default false
127
+ */
128
+ gutterBottom: t.bool,
129
+ /**
130
+ * If `true`, the text will not wrap, but instead will truncate with a text overflow ellipsis.
131
+ *
132
+ * Note that text overflow can only happen with block or inline-block level elements
133
+ * (the element needs to have a width in order to overflow).
134
+ * @default false
135
+ */
136
+ noWrap: t.bool,
137
+ /**
138
+ * If `true`, the element will be a paragraph element.
139
+ * @default false
140
+ */
141
+ paragraph: t.bool,
142
+ /**
143
+ * The system prop that allows defining system overrides as well as additional CSS styles.
144
+ */
145
+ sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
146
+ /**
147
+ * Applies the theme typography styles.
148
+ * @default 'body1'
149
+ */
150
+ variant: t.oneOfType([t.oneOf(["body1", "body2", "button", "caption", "h1", "h2", "h3", "h4", "h5", "h6", "inherit", "overline", "subtitle1", "subtitle2"]), t.string]),
151
+ /**
152
+ * The component maps the variant prop to a range of different HTML element types.
153
+ * For instance, subtitle1 to `<h6>`.
154
+ * If you wish to change that mapping, you can provide your own.
155
+ * Alternatively, you can use the `component` prop.
156
+ * @default {
157
+ * h1: 'h1',
158
+ * h2: 'h2',
159
+ * h3: 'h3',
160
+ * h4: 'h4',
161
+ * h5: 'h5',
162
+ * h6: 'h6',
163
+ * subtitle1: 'h6',
164
+ * subtitle2: 'h6',
165
+ * body1: 'p',
166
+ * body2: 'p',
167
+ * inherit: 'p',
168
+ * }
169
+ */
170
+ variantMapping: t.object
171
+ });
172
+ export {
173
+ k as T
174
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/app/connectors/pages/settings/styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAElD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAEpD,eAAO,MAAM,mBAAmB,EAAE,eAAe,CAAC,QAAQ,CAGzD,CAAC"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/app/connectors/pages/settings/styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAElD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAEpD,eAAO,MAAM,mBAAmB,EAAE,eAAe,CAAC,QAAQ,CAIzD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/components/layouts/sidebar/styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAElD,OAAO,KAAK,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAErE,eAAO,MAAM,UAAU,EAAE,eAAe,CAAC,QAAQ,CAGhD,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,eAAe,CAAC,QAAQ,CAMpD,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,eAAe,CAAC,eAAe,CAGhE,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,eAAe,CAAC,QAAQ,CAqBpD,CAAC"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/components/layouts/sidebar/styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAElD,OAAO,KAAK,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAErE,eAAO,MAAM,UAAU,EAAE,eAAe,CAAC,QAAQ,CAMhD,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,eAAe,CAAC,QAAQ,CAMpD,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,eAAe,CAAC,eAAe,CAGhE,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,eAAe,CAAC,QAAQ,CAqBpD,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { default as React } from 'react';
2
+ import { ActionMeta } from 'react-select';
3
+ import { FormFieldProps, ElementValidation } from '../../../types/form';
4
+ type FormField = FormFieldProps & {
5
+ validation?: ElementValidation;
6
+ validateOnBlur?: boolean;
7
+ validateOnChange?: boolean;
8
+ selectChangeHandler?: (event: unknown, action: ActionMeta<unknown>) => void;
9
+ inputChangeHandler?: (event: React.ChangeEvent<HTMLInputElement>) => void;
10
+ onValidationError?: (name: string, error: string | boolean) => void;
11
+ };
12
+ export declare const FormFields: (props: FormField) => import("react/jsx-runtime").JSX.Element;
13
+ export {};
14
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/form-fields/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAOnD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEtE,KAAK,SAAS,GAAG,cAAc,GAAG;IAChC,UAAU,CAAC,EAAE,iBAAiB,CAAC;IAC/B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,mBAAmB,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,UAAU,CAAC,OAAO,CAAC,KAAK,IAAI,CAAC;IAC5E,kBAAkB,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IAC1E,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,KAAK,IAAI,CAAC;CACrE,CAAC;AAEF,eAAO,MAAM,UAAU,UAAW,SAAS,4CA+H1C,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { StyledComponent } from '@emotion/styled';
2
+ import { BoxProps, OutlinedInputProps } from '@hiver/hiver-ui-kit';
3
+ export declare const OutlinedInput: StyledComponent<OutlinedInputProps>;
4
+ export declare const SelectWrapper: StyledComponent<BoxProps>;
5
+ export declare const HelperText: StyledComponent<BoxProps>;
6
+ export declare const InputWrapper: StyledComponent<BoxProps>;
7
+ //# sourceMappingURL=styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/form-fields/styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,KAAK,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAExE,eAAO,MAAM,aAAa,EAAE,eAAe,CAAC,kBAAkB,CAQ7D,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,eAAe,CAAC,QAAQ,CA8BnD,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,eAAe,CAAC,QAAQ,CAUhD,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,eAAe,CAAC,QAAQ,CAMlD,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Props as SelectProps } from 'react-select';
2
+ export declare const Select: (props: SelectProps) => import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/select/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,IAAI,WAAW,EAA0B,MAAM,cAAc,CAAC;AAUjF,eAAO,MAAM,MAAM,UAAW,WAAW,4CAExC,CAAC"}
@@ -0,0 +1,3 @@
1
+ export declare const REQUIRED_FIELD = "Required Field";
2
+ export declare const VALIDATION_FAILED = "Validation Failed";
3
+ //# sourceMappingURL=app-constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app-constants.d.ts","sourceRoot":"","sources":["../../src/constants/app-constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAC/C,eAAO,MAAM,iBAAiB,sBAAsB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/connector-library/components/library-card-list/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAyB,MAAM,OAAO,CAAC;AAmBlD,eAAO,MAAM,eAAe,EAAE,EA6C7B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/connector-library/components/library-card-list/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAyB,MAAM,OAAO,CAAC;AAkBlD,eAAO,MAAM,eAAe,EAAE,EA4C7B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"slice.d.ts","sourceRoot":"","sources":["../../../../src/features/connector-library/store/slice.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAItD,OAAO,EAAE,cAAc,EAAgB,MAAM,iBAAiB,CAAC;AAO/D,OAAO,EAAE,2BAA2B,EAAE,wBAAwB,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AAE/G,UAAU,iBAAiB;IACzB,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED,eAAO,MAAM,qBAAqB;4CAIU,cAAc,UAAU,aAAa,CAAC,iBAAiB,CAAC;qGAwDlG,CAAC;AAIH,QAAA,MAAM,uBAAuB;;;;;;;;;;;;;;EAoB3B,CAAC;AAEH,QAAA,MAAM,yBAAyB;;YAER,M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