@circle-vibe/shared 1.0.2
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/build/index.d.ts +7 -0
- package/build/index.js +1 -0
- package/build/index.js.map +1 -0
- package/build/src/colors/index.d.ts +1 -0
- package/build/src/colors/index.js +5 -0
- package/build/src/colors/index.js.map +1 -0
- package/build/src/components/form/field-context/field-context-default-value.d.ts +2 -0
- package/build/src/components/form/field-context/field-context-default-value.js +13 -0
- package/build/src/components/form/field-context/field-context-default-value.js.map +1 -0
- package/build/src/components/form/field-context/field-context-provider.d.ts +2 -0
- package/build/src/components/form/field-context/field-context-provider.js +6 -0
- package/build/src/components/form/field-context/field-context-provider.js.map +1 -0
- package/build/src/components/form/field-context/field-context-value.type.d.ts +11 -0
- package/build/src/components/form/field-context/field-context-value.type.js +3 -0
- package/build/src/components/form/field-context/field-context-value.type.js.map +1 -0
- package/build/src/components/form/field-context/field-context.d.ts +2 -0
- package/build/src/components/form/field-context/field-context.js +7 -0
- package/build/src/components/form/field-context/field-context.js.map +1 -0
- package/build/src/components/form/formik-form-control/formik-field-control.d.ts +7 -0
- package/build/src/components/form/formik-form-control/formik-field-control.js +32 -0
- package/build/src/components/form/formik-form-control/formik-field-control.js.map +1 -0
- package/build/src/components/form/index.d.ts +3 -0
- package/build/src/components/form/index.js +20 -0
- package/build/src/components/form/index.js.map +1 -0
- package/build/src/components/form/label/label.d.ts +2 -0
- package/build/src/components/form/label/label.js +13 -0
- package/build/src/components/form/label/label.js.map +1 -0
- package/build/src/components/form/text-input/text-input.d.ts +5 -0
- package/build/src/components/form/text-input/text-input.js +42 -0
- package/build/src/components/form/text-input/text-input.js.map +1 -0
- package/build/src/components/index.d.ts +2 -0
- package/build/src/components/index.js +19 -0
- package/build/src/components/index.js.map +1 -0
- package/build/src/components/layout/centered-vertical-layout/centered-vertical-layout.d.ts +8 -0
- package/build/src/components/layout/centered-vertical-layout/centered-vertical-layout.js +14 -0
- package/build/src/components/layout/centered-vertical-layout/centered-vertical-layout.js.map +1 -0
- package/build/src/components/layout/cluster-layout/cluster-layout.d.ts +9 -0
- package/build/src/components/layout/cluster-layout/cluster-layout.js +15 -0
- package/build/src/components/layout/cluster-layout/cluster-layout.js.map +1 -0
- package/build/src/components/layout/index.d.ts +3 -0
- package/build/src/components/layout/index.js +20 -0
- package/build/src/components/layout/index.js.map +1 -0
- package/build/src/components/layout/stack-layout/stack-layout.d.ts +9 -0
- package/build/src/components/layout/stack-layout/stack-layout.js +15 -0
- package/build/src/components/layout/stack-layout/stack-layout.js.map +1 -0
- package/build/src/components/show/index.d.ts +1 -0
- package/build/src/components/show/index.js +18 -0
- package/build/src/components/show/index.js.map +1 -0
- package/build/src/components/show/show.d.ts +13 -0
- package/build/src/components/show/show.js +18 -0
- package/build/src/components/show/show.js.map +1 -0
- package/build/src/configuration/index.d.ts +1 -0
- package/build/src/configuration/index.js +5 -0
- package/build/src/configuration/index.js.map +1 -0
- package/build/src/constants/index.d.ts +1 -0
- package/build/src/constants/index.js +18 -0
- package/build/src/constants/index.js.map +1 -0
- package/build/src/constants/noop.d.ts +1 -0
- package/build/src/constants/noop.js +6 -0
- package/build/src/constants/noop.js.map +1 -0
- package/build/src/constants/password-regex.d.ts +1 -0
- package/build/src/constants/password-regex.js +5 -0
- package/build/src/constants/password-regex.js.map +1 -0
- package/build/src/hooks/index.d.ts +1 -0
- package/build/src/hooks/index.js +5 -0
- package/build/src/hooks/index.js.map +1 -0
- package/build/src/types/custom-css-variables.d.ts +4 -0
- package/build/src/types/custom-css-variables.js +3 -0
- package/build/src/types/custom-css-variables.js.map +1 -0
- package/build/src/types/extended-react-functional-component.d.ts +4 -0
- package/build/src/types/extended-react-functional-component.js +3 -0
- package/build/src/types/extended-react-functional-component.js.map +1 -0
- package/build/src/types/index.d.ts +2 -0
- package/build/src/types/index.js +19 -0
- package/build/src/types/index.js.map +1 -0
- package/build/src/utils/index.d.ts +1 -0
- package/build/src/utils/index.js +5 -0
- package/build/src/utils/index.js.map +1 -0
- package/package.json +47 -0
package/build/index.d.ts
ADDED
package/build/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("react"));else if("function"==typeof define&&define.amd)define(["react"],t);else{var n="object"==typeof exports?t(require("react")):t(e.react);for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(this,(e=>(()=>{"use strict";var t={56:(e,t,n)=>{e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},72:e=>{var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var a={},i=[],s=0;s<e.length;s++){var c=e[s],l=r.base?c[0]+r.base:c[0],u=a[l]||0,d="".concat(l," ").concat(u);a[l]=u+1;var f=n(d),p={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==f)t[f].references++,t[f].updater(p);else{var v=o(p,r);r.byIndex=s,t.splice(s,0,{identifier:d,updater:v,references:1})}i.push(d)}return i}function o(e,t){var n=t.domAPI(t);n.update(e);return function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,o){var a=r(e=e||[],o=o||{});return function(e){e=e||[];for(var i=0;i<a.length;i++){var s=n(a[i]);t[s].references--}for(var c=r(e,o),l=0;l<a.length;l++){var u=n(a[l]);0===t[u].references&&(t[u].updater(),t.splice(u,1))}a=c}}},88:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(601),o=n.n(r),a=n(314),i=n.n(a)()(o());i.push([e.id,".centered-vertical-layout{display:flex;flex-direction:row;align-items:center;gap:var(--space);justify-content:var(--justify-content)}",""]);const s=i},113:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},155:t=>{t.exports=e},314:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,o,a){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(r)for(var s=0;s<this.length;s++){var c=this[s][0];null!=c&&(i[c]=!0)}for(var l=0;l<e.length;l++){var u=[].concat(e[l]);r&&i[u[0]]||(void 0!==a&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=a),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),o&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=o):u[4]="".concat(o)),t.push(u))}},t}},509:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(601),o=n.n(r),a=n(314),i=n.n(a)()(o());i.push([e.id,".cluster-layout{display:flex;flex-direction:column;gap:var(--space);justify-content:var(--justify-content);align-items:var(--align-content)}",""]);const s=i},540:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},601:e=>{e.exports=function(e){return e[1]}},659:e=>{var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},681:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(601),o=n.n(r),a=n(314),i=n.n(a)()(o());i.push([e.id,".stack-layout{display:flex;flex-direction:row;gap:var(--space);justify-content:var(--justify-content);align-items:var(--align-content)}",""]);const s=i},825:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var a=n.sourceMap;a&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var a=n[e]={id:e,exports:{}};return t[e](a,a.exports,r),a.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nc=void 0;var o={};r.r(o),r.d(o,{CenteredVertialLayout:()=>j,ClusterLayout:()=>T,PASSWORD_REGEX:()=>N,Show:()=>M,StackLayout:()=>I,colors:()=>a,configuration:()=>P,hooks:()=>O,utils:()=>k});var a={},i=r(155),s=r.n(i),c=r(72),l=r.n(c),u=r(825),d=r.n(u),f=r(659),p=r.n(f),v=r(56),y=r.n(v),m=r(540),h=r.n(m),g=r(113),b=r.n(g),A=r(88),x={};x.styleTagTransform=b(),x.setAttributes=y(),x.insert=p().bind(null,"head"),x.domAPI=d(),x.insertStyleElement=h();l()(A.A,x);A.A&&A.A.locals&&A.A.locals;var j=function(e){var t=e.space,n=void 0===t?"initial":t,r=e.justifyContent,o=void 0===r?"initial":r,a=e.children;return s().createElement("div",{className:"centered-vertial-layout",style:{"--space":n,"--justify-content":o}},a)},S=r(509),E={};E.styleTagTransform=b(),E.setAttributes=y(),E.insert=p().bind(null,"head"),E.domAPI=d(),E.insertStyleElement=h();l()(S.A,E);S.A&&S.A.locals&&S.A.locals;var T=function(e){var t=e.children,n=e.alignItems,r=void 0===n?"initial":n,o=e.justifyContent,a=void 0===o?"initial":o,i=e.space,c=void 0===i?"1rem":i;return s().createElement("div",{className:"stack-layout",style:{"--space":c,"--justify-content":a,"--align-items":r}},t)},C=r(681),w={};w.styleTagTransform=b(),w.setAttributes=y(),w.insert=p().bind(null,"head"),w.domAPI=d(),w.insertStyleElement=h();l()(C.A,w);C.A&&C.A.locals&&C.A.locals;var I=function(e){var t=e.children,n=e.alignItems,r=void 0===n?"initial":n,o=e.justifyContent,a=void 0===o?"initial":o,i=e.space,c=void 0===i?"1rem":i;return s().createElement("div",{className:"stack-layout",style:{"--space":c,"--justify-content":a,"--align-items":r}},t)},M=function(e){var t=e.children,n=s().Children.toArray(t).find((function(e){return(null==e?void 0:e.type)===M.When})),r=s().Children.toArray(t).find((function(e){return(null==e?void 0:e.type)===M.Else}));return null!=n&&n.props.isTrue?n:r||null};M.When=function(e){var t=e.children;return e.isTrue?s().createElement(s().Fragment,null,t):null},M.Else=function(e){var t=e.children;return s().createElement(s().Fragment,null,t)};var P={},N=/^(?=.*[0-9])(?=.*[a-z])(?=.*[A-Z])(?=.*\W)(?!.* )$/,O={},k={};return o})()));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA4B;AAC5B,mDAAiC;AACjC,sDAAoC;AACpC,kDAAgC;AAChC,8CAA4B;AAC5B,8CAA4B;AAC5B,8CAA4B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const colors: {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/colors/index.ts"],"names":[],"mappings":";;;AAAa,QAAA,MAAM,GAAG,EAErB,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FIELD_CONTEXT_DEFAULT_VALUE = void 0;
|
|
4
|
+
exports.FIELD_CONTEXT_DEFAULT_VALUE = {
|
|
5
|
+
value: undefined,
|
|
6
|
+
errors: null,
|
|
7
|
+
touched: false,
|
|
8
|
+
setTouched: (_touched) => { },
|
|
9
|
+
setError: (_error) => { },
|
|
10
|
+
setValue: (_value) => { },
|
|
11
|
+
onBlur: (_e) => { },
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=field-context-default-value.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"field-context-default-value.js","sourceRoot":"","sources":["../../../../../src/components/form/field-context/field-context-default-value.ts"],"names":[],"mappings":";;;AAEa,QAAA,2BAA2B,GAAsB;IAC5D,KAAK,EAAE,SAAS;IAChB,MAAM,EAAE,IAAI;IACZ,OAAO,EAAE,KAAK;IACd,UAAU,EAAE,CAAC,QAAiB,EAAE,EAAE,GAAE,CAAC;IACrC,QAAQ,EAAE,CAAC,MAAM,EAAE,EAAE,GAAE,CAAC;IACxB,QAAQ,EAAE,CAAC,MAAM,EAAE,EAAE,GAAE,CAAC;IACxB,MAAM,EAAE,CAAC,EAAE,EAAE,EAAE,GAAE,CAAC;CACnB,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FieldContextProvider = void 0;
|
|
4
|
+
const field_context_1 = require("./field-context");
|
|
5
|
+
exports.FieldContextProvider = field_context_1.FieldContext.Provider;
|
|
6
|
+
//# sourceMappingURL=field-context-provider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"field-context-provider.js","sourceRoot":"","sources":["../../../../../src/components/form/field-context/field-context-provider.tsx"],"names":[],"mappings":";;;AAAA,mDAA+C;AAElC,QAAA,oBAAoB,GAAG,4BAAY,CAAC,QAAQ,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface FieldContextValue {
|
|
2
|
+
value?: any;
|
|
3
|
+
errors: null | string;
|
|
4
|
+
type?: string;
|
|
5
|
+
inputMode?: string;
|
|
6
|
+
touched?: boolean;
|
|
7
|
+
setTouched: (touched: boolean) => void;
|
|
8
|
+
onBlur: (_event: unknown) => void;
|
|
9
|
+
setValue: (updatedValue: any) => void;
|
|
10
|
+
setError: (error: string | null) => void;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"field-context-value.type.js","sourceRoot":"","sources":["../../../../../src/components/form/field-context/field-context-value.type.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FieldContext = void 0;
|
|
4
|
+
const react_1 = require("react");
|
|
5
|
+
const field_context_default_value_1 = require("./field-context-default-value");
|
|
6
|
+
exports.FieldContext = (0, react_1.createContext)(field_context_default_value_1.FIELD_CONTEXT_DEFAULT_VALUE);
|
|
7
|
+
//# sourceMappingURL=field-context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"field-context.js","sourceRoot":"","sources":["../../../../../src/components/form/field-context/field-context.ts"],"names":[],"mappings":";;;AAAA,iCAAsC;AACtC,+EAA4E;AAE/D,QAAA,YAAY,GAAG,IAAA,qBAAa,EAAC,yDAA2B,CAAC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ExtendedReactFunctionalComponent } from "src/types";
|
|
3
|
+
interface FormikFormGroupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
formFieldName: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const FormikFormControl: ExtendedReactFunctionalComponent<FormikFormGroupProps>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.FormikFormControl = void 0;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
8
|
+
const formik_1 = require("formik");
|
|
9
|
+
const field_context_provider_1 = require("../field-context/field-context-provider");
|
|
10
|
+
const FormikFormControl = ({ formFieldName, children }) => {
|
|
11
|
+
const [{ value, onBlur }, { touched, error }, { setValue, setTouched, setError }] = (0, formik_1.useField)(formFieldName);
|
|
12
|
+
return (react_1.default.createElement(field_context_provider_1.FieldContextProvider, { value: {
|
|
13
|
+
value,
|
|
14
|
+
errors: error ?? null,
|
|
15
|
+
touched,
|
|
16
|
+
setTouched,
|
|
17
|
+
setValue: (updatedValue) => {
|
|
18
|
+
!touched && setTouched(true);
|
|
19
|
+
setValue(updatedValue);
|
|
20
|
+
},
|
|
21
|
+
onBlur: (e) => {
|
|
22
|
+
setTouched(true);
|
|
23
|
+
onBlur(e);
|
|
24
|
+
},
|
|
25
|
+
setError: (err) => {
|
|
26
|
+
!touched && setTouched(true);
|
|
27
|
+
setError(err ?? undefined);
|
|
28
|
+
}
|
|
29
|
+
} }, children));
|
|
30
|
+
};
|
|
31
|
+
exports.FormikFormControl = FormikFormControl;
|
|
32
|
+
//# sourceMappingURL=formik-field-control.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formik-field-control.js","sourceRoot":"","sources":["../../../../../src/components/form/formik-form-control/formik-field-control.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAE1B,mCAAkC;AAGlC,oFAA+E;AAMxE,MAAM,iBAAiB,GAA2D,CAAC,EACxF,aAAa,EACb,QAAQ,EACT,EAAE,EAAE;IACH,MAAM,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,CAAC,GAAG,IAAA,iBAAQ,EAAU,aAAa,CAAC,CAAC;IAErH,OAAO,CACL,8BAAC,6CAAoB,IACnB,KAAK,EAAE;YACL,KAAK;YACL,MAAM,EAAE,KAAK,IAAI,IAAI;YACrB,OAAO;YACP,UAAU;YACV,QAAQ,EAAE,CAAC,YAAY,EAAE,EAAE;gBACzB,CAAC,OAAO,IAAI,UAAU,CAAC,IAAI,CAAC,CAAC;gBAC7B,QAAQ,CAAC,YAAY,CAAC,CAAC;YACzB,CAAC;YACD,MAAM,EAAE,CAAC,CAAU,EAAE,EAAE;gBACrB,UAAU,CAAC,IAAI,CAAC,CAAC;gBACjB,MAAM,CAAC,CAAC,CAAC,CAAC;YACZ,CAAC;YAED,QAAQ,EAAE,CAAC,GAAG,EAAE,EAAE;gBAChB,CAAC,OAAO,IAAI,UAAU,CAAC,IAAI,CAAC,CAAC;gBAC7B,QAAQ,CAAC,GAAG,IAAI,SAAS,CAAC,CAAC;YAC7B,CAAC;SACF,IACD,QAAQ,CAAwB,CACnC,CAAA;AACH,CAAC,CAAA;AA7BY,QAAA,iBAAiB,qBA6B7B"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./formik-form-control/formik-field-control"), exports);
|
|
18
|
+
__exportStar(require("./label/label"), exports);
|
|
19
|
+
__exportStar(require("./text-input/text-input"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/form/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6EAA2D;AAC3D,gDAA8B;AAC9B,0DAAwC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.Label = void 0;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
8
|
+
const Label = ({ children }) => {
|
|
9
|
+
return (react_1.default.createElement("div", null,
|
|
10
|
+
react_1.default.createElement("span", null, children)));
|
|
11
|
+
};
|
|
12
|
+
exports.Label = Label;
|
|
13
|
+
//# sourceMappingURL=label.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"label.js","sourceRoot":"","sources":["../../../../../src/components/form/label/label.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAInB,MAAM,KAAK,GAAqC,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;IAEtE,OAAO,CACL;QACE,4CAAO,QAAQ,CAAQ,CACnB,CACP,CAAA;AACH,CAAC,CAAA;AAPY,QAAA,KAAK,SAOjB"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ExtendedReactFunctionalComponent } from "../../../types/extended-react-functional-component";
|
|
3
|
+
import '../../fields/_shared/constants/text-input-generic-styles.scss';
|
|
4
|
+
export type TextInputProps = React.InputHTMLAttributes<HTMLInputElement>;
|
|
5
|
+
export declare const TextInput: ExtendedReactFunctionalComponent<React.InputHTMLAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.TextInput = void 0;
|
|
27
|
+
const react_1 = __importStar(require("react"));
|
|
28
|
+
const field_context_1 = require("../field-context/field-context");
|
|
29
|
+
require("../../fields/_shared/constants/text-input-generic-styles.scss");
|
|
30
|
+
const TextInput = ({ onChange, value, ...props }) => {
|
|
31
|
+
const fieldProvider = (0, react_1.useContext)(field_context_1.FieldContext);
|
|
32
|
+
return (react_1.default.createElement("input", { className: 'text-input-generic-styles', ...props, onChange: (e) => {
|
|
33
|
+
fieldProvider.setValue(e.target.value);
|
|
34
|
+
}, value: value, style: {
|
|
35
|
+
'--text-input-border-color': (fieldProvider.errors ?? "")?.length > 0 ? 'var(--chat-var-default-field-border-errors-color)' : 'transparent',
|
|
36
|
+
'--text-input-text-color': `var(${(fieldProvider.errors ?? "")?.length > 0 ? '--chat-var-default-field-color-errors-color' : '--chat-var-default-text-color'})`,
|
|
37
|
+
'--text-input-outline-color': (fieldProvider.errors ?? "")?.length > 0 ? 'var(--chat-var-default-field-outline-errors-color)' : 'transparent',
|
|
38
|
+
'--text-input-background': `var(${(fieldProvider.errors ?? "")?.length > 0 ? '--chat-var-default-field-errors-background' : '--chat-var-color-white'})`,
|
|
39
|
+
} }));
|
|
40
|
+
};
|
|
41
|
+
exports.TextInput = TextInput;
|
|
42
|
+
//# sourceMappingURL=text-input.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-input.js","sourceRoot":"","sources":["../../../../../src/components/form/text-input/text-input.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAA0C;AAI1C,kEAA8D;AAE9D,yEAAuE;AAIhE,MAAM,SAAS,GAAkF,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE;IACxI,MAAM,aAAa,GAAG,IAAA,kBAAU,EAAC,4BAAY,CAAC,CAAC;IAC/C,OAAO,CACL,yCAAO,SAAS,EAAC,2BAA2B,KAAK,KAAK,EAAE,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE;YACtE,aAAa,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,KAA0B,CAAC,CAAA;QAC7D,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE;YACtB,2BAA2B,EAAE,CAAC,aAAa,CAAC,MAAM,IAAI,EAAE,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,mDAAmD,CAAC,CAAC,CAAC,aAAa;YAC3I,yBAAyB,EAAE,OAAO,CAAC,aAAa,CAAC,MAAM,IAAI,EAAE,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,6CAA6C,CAAC,CAAC,CAAC,+BAA+B,GAAG;YAC/J,4BAA4B,EAAE,CAAC,aAAa,CAAC,MAAM,IAAI,EAAE,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,oDAAoD,CAAC,CAAC,CAAC,aAAa;YAC7I,yBAAyB,EAAE,OAAO,CAAC,aAAa,CAAC,MAAM,IAAI,EAAE,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,4CAA4C,CAAC,CAAC,CAAC,wBAAwB,GAAG;SAClI,GAAI,CAC5B,CAAA;AACH,CAAC,CAAA;AAZY,QAAA,SAAS,aAYrB"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./layout"), exports);
|
|
18
|
+
__exportStar(require("./show"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,yCAAuB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ExtendedReactFunctionalComponent } from 'src/types';
|
|
2
|
+
import './centered-vertial-layout.scss';
|
|
3
|
+
interface CenteredVertialLayoutProps {
|
|
4
|
+
space?: string;
|
|
5
|
+
justifyContent?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const CenteredVertialLayout: ExtendedReactFunctionalComponent<CenteredVertialLayoutProps>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.CenteredVertialLayout = void 0;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
8
|
+
require("./centered-vertial-layout.scss");
|
|
9
|
+
const CenteredVertialLayout = ({ space = 'initial', justifyContent = 'initial', children }) => (react_1.default.createElement("div", { className: "centered-vertial-layout", style: {
|
|
10
|
+
'--space': space,
|
|
11
|
+
'--justify-content': justifyContent
|
|
12
|
+
} }, children));
|
|
13
|
+
exports.CenteredVertialLayout = CenteredVertialLayout;
|
|
14
|
+
//# sourceMappingURL=centered-vertical-layout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"centered-vertical-layout.js","sourceRoot":"","sources":["../../../../../src/components/layout/centered-vertical-layout/centered-vertical-layout.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAI1B,0CAAwC;AAOjC,MAAM,qBAAqB,GAAiE,CAAC,EAClG,KAAK,GAAG,SAAS,EACjB,cAAc,GAAG,SAAS,EAC1B,QAAQ,EACT,EAAE,EAAE,CAAC,CACJ,uCAAK,SAAS,EAAC,yBAAyB,EAAC,KAAK,EAAE;QAC9C,SAAS,EAAE,KAAK;QAChB,mBAAmB,EAAE,cAAc;KACd,IAAG,QAAQ,CAAO,CAC1C,CAAA;AATY,QAAA,qBAAqB,yBASjC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ExtendedReactFunctionalComponent } from 'src/types';
|
|
2
|
+
import './cluster-layout.scss';
|
|
3
|
+
interface ClusterLayoutProps {
|
|
4
|
+
space?: string;
|
|
5
|
+
justifyContent?: string;
|
|
6
|
+
alignItems?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const ClusterLayout: ExtendedReactFunctionalComponent<ClusterLayoutProps>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ClusterLayout = void 0;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
8
|
+
require("./cluster-layout.scss");
|
|
9
|
+
const ClusterLayout = ({ children, alignItems = 'initial', justifyContent = 'initial', space = '1rem' }) => (react_1.default.createElement("div", { className: "stack-layout", style: {
|
|
10
|
+
'--space': space,
|
|
11
|
+
'--justify-content': justifyContent,
|
|
12
|
+
'--align-items': alignItems
|
|
13
|
+
} }, children));
|
|
14
|
+
exports.ClusterLayout = ClusterLayout;
|
|
15
|
+
//# sourceMappingURL=cluster-layout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cluster-layout.js","sourceRoot":"","sources":["../../../../../src/components/layout/cluster-layout/cluster-layout.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAI1B,iCAA+B;AAQxB,MAAM,aAAa,GAAyD,CAAC,EAClF,QAAQ,EACR,UAAU,GAAG,SAAS,EACtB,cAAc,GAAG,SAAS,EAC1B,KAAK,GAAG,MAAM,EACf,EAAE,EAAE,CAAC,CACJ,uCAAK,SAAS,EAAC,cAAc,EAAC,KAAK,EAAE;QACnC,SAAS,EAAE,KAAK;QAChB,mBAAmB,EAAE,cAAc;QACnC,eAAe,EAAE,UAAU;KACN,IAAG,QAAQ,CAAO,CAC1C,CAAA;AAXY,QAAA,aAAa,iBAWzB"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./centered-vertical-layout/centered-vertical-layout"), exports);
|
|
18
|
+
__exportStar(require("./cluster-layout/cluster-layout"), exports);
|
|
19
|
+
__exportStar(require("./stack-layout/stack-layout"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/layout/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sFAAoE;AACpE,kEAAgD;AAChD,8DAA4C"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ExtendedReactFunctionalComponent } from 'src/types';
|
|
2
|
+
import './stack-layout.scss';
|
|
3
|
+
interface StackLayoutProps {
|
|
4
|
+
space?: string;
|
|
5
|
+
justifyContent?: string;
|
|
6
|
+
alignItems?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const StackLayout: ExtendedReactFunctionalComponent<StackLayoutProps>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.StackLayout = void 0;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
8
|
+
require("./stack-layout.scss");
|
|
9
|
+
const StackLayout = ({ children, alignItems = 'initial', justifyContent = 'initial', space = '1rem' }) => (react_1.default.createElement("div", { className: "stack-layout", style: {
|
|
10
|
+
'--space': space,
|
|
11
|
+
'--justify-content': justifyContent,
|
|
12
|
+
'--align-items': alignItems
|
|
13
|
+
} }, children));
|
|
14
|
+
exports.StackLayout = StackLayout;
|
|
15
|
+
//# sourceMappingURL=stack-layout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stack-layout.js","sourceRoot":"","sources":["../../../../../src/components/layout/stack-layout/stack-layout.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAG1B,+BAA6B;AAQtB,MAAM,WAAW,GAAuD,CAAC,EAC9E,QAAQ,EACR,UAAU,GAAG,SAAS,EACtB,cAAc,GAAG,SAAS,EAC1B,KAAK,GAAG,MAAM,EACf,EAAE,EAAE,CAAC,CACJ,uCAAK,SAAS,EAAC,cAAc,EAAC,KAAK,EAAE;QACnC,SAAS,EAAE,KAAK;QAChB,mBAAmB,EAAE,cAAc;QACnC,eAAe,EAAE,UAAU;KACN,IAAG,QAAQ,CAAO,CAC1C,CAAA;AAXY,QAAA,WAAW,eAWvB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './show';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./show"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/show/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface ComponentWithChilren {
|
|
3
|
+
readonly children?: React.ReactNode;
|
|
4
|
+
}
|
|
5
|
+
interface WhenComponentProps extends ComponentWithChilren {
|
|
6
|
+
readonly isTrue: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const Show: {
|
|
9
|
+
({ children }: ComponentWithChilren): string | number | bigint | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | null | undefined;
|
|
10
|
+
When({ children, isTrue }: WhenComponentProps): React.JSX.Element | null;
|
|
11
|
+
Else({ children }: ComponentWithChilren): React.JSX.Element;
|
|
12
|
+
};
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.Show = void 0;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
8
|
+
const Show = ({ children }) => {
|
|
9
|
+
const whenChild = react_1.default.Children.toArray(children).find((child) => child?.type === exports.Show.When);
|
|
10
|
+
const elseChild = react_1.default.Children.toArray(children).find((child) => child?.type === exports.Show.Else);
|
|
11
|
+
return whenChild?.props.isTrue ? whenChild : elseChild || null;
|
|
12
|
+
};
|
|
13
|
+
exports.Show = Show;
|
|
14
|
+
exports.Show.When = ({ children, isTrue }) => {
|
|
15
|
+
return isTrue ? react_1.default.createElement(react_1.default.Fragment, null, children) : null;
|
|
16
|
+
};
|
|
17
|
+
exports.Show.Else = ({ children }) => react_1.default.createElement(react_1.default.Fragment, null, children);
|
|
18
|
+
//# sourceMappingURL=show.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"show.js","sourceRoot":"","sources":["../../../../src/components/show/show.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAUnB,MAAM,IAAI,GAAG,CAAC,EAAE,QAAQ,EAAwB,EAAE,EAAE;IACzD,MAAM,SAAS,GAAG,eAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAE,KAA4B,EAAE,IAAI,KAAK,YAAI,CAAC,IAAI,CAAC,CAAC;IACtH,MAAM,SAAS,GAAG,eAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAE,KAA4B,EAAE,IAAI,KAAK,YAAI,CAAC,IAAI,CAAC,CAAC;IAEtH,OAAQ,SAAoD,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,IAAI,IAAI,CAAC;AAC7G,CAAC,CAAC;AALW,QAAA,IAAI,QAKf;AAEF,YAAI,CAAC,IAAI,GAAG,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAsB,EAAE,EAAE;IACvD,OAAO,MAAM,CAAC,CAAC,CAAC,8DAAG,QAAQ,CAAI,CAAC,CAAC,CAAC,IAAI,CAAC;AACzC,CAAC,CAAC;AACF,YAAI,CAAC,IAAI,GAAG,CAAC,EAAE,QAAQ,EAAwB,EAAE,EAAE,CAAC,8DAAG,QAAQ,CAAI,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const configuration: {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/configuration/index.ts"],"names":[],"mappings":";;;AAAa,QAAA,aAAa,GAAG,EAAE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './password-regex';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./password-regex"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/constants/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const noop: VoidFunction;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"noop.js","sourceRoot":"","sources":["../../../src/constants/noop.ts"],"names":[],"mappings":";;;AAAO,MAAM,IAAI,GAAiB,GAAG,EAAE,GAAG,CAAC,CAAA;AAA9B,QAAA,IAAI,QAA0B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PASSWORD_REGEX: RegExp;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"password-regex.js","sourceRoot":"","sources":["../../../src/constants/password-regex.ts"],"names":[],"mappings":";;;AAAa,QAAA,cAAc,GAAG,oDAAoD,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const hooks: {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/hooks/index.ts"],"names":[],"mappings":";;;AAAa,QAAA,KAAK,GAAG,EAAE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"custom-css-variables.js","sourceRoot":"","sources":["../../../src/types/custom-css-variables.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extended-react-functional-component.js","sourceRoot":"","sources":["../../../src/types/extended-react-functional-component.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./custom-css-variables"), exports);
|
|
18
|
+
__exportStar(require("./extended-react-functional-component"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAuC;AACvC,wEAAsD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const utils: {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":";;;AAAa,QAAA,KAAK,GAAG,EAEpB,CAAA"}
|
package/package.json
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@circle-vibe/shared",
|
|
3
|
+
"version": "1.0.2",
|
|
4
|
+
"description": "Shared componenets, utils, hooks",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"build": "./scripts/build.sh",
|
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
|
+
},
|
|
9
|
+
"files": [
|
|
10
|
+
"build"
|
|
11
|
+
],
|
|
12
|
+
"author": "AndrUsM",
|
|
13
|
+
"license": "ISC",
|
|
14
|
+
"main": "build/index.js",
|
|
15
|
+
"sideEffects": [
|
|
16
|
+
"*.scss",
|
|
17
|
+
"*.css"
|
|
18
|
+
],
|
|
19
|
+
"peerDependencies": {
|
|
20
|
+
"date-fns": ">=4.0",
|
|
21
|
+
"formik": ">=2.4.6",
|
|
22
|
+
"react": ">=16",
|
|
23
|
+
"yup": ">=1.6"
|
|
24
|
+
},
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"@babel/preset-env": "^7.26.9",
|
|
27
|
+
"@babel/preset-react": "^7.26.3",
|
|
28
|
+
"@babel/preset-typescript": "^7.26.0",
|
|
29
|
+
"@types/node": "^16.18.96",
|
|
30
|
+
"@types/react": "^19.0.10",
|
|
31
|
+
"babel-loader": "^10.0.0",
|
|
32
|
+
"css-loader": "^7.1.2",
|
|
33
|
+
"date-fns": "^4.1.0",
|
|
34
|
+
"fork-ts-checker-webpack-plugin": "^9.0.2",
|
|
35
|
+
"formik": "^2.4.6",
|
|
36
|
+
"react": "^18.2.0",
|
|
37
|
+
"sass": "^1.85.1",
|
|
38
|
+
"sass-loader": "^16.0.5",
|
|
39
|
+
"style-loader": "^4.0.0",
|
|
40
|
+
"terser-webpack-plugin": "^5.3.14",
|
|
41
|
+
"tsconfig-paths-webpack-plugin": "^4.2.0",
|
|
42
|
+
"typescript": "^4.9.5",
|
|
43
|
+
"webpack": "^5.91.0",
|
|
44
|
+
"webpack-cli": "^5.1.4",
|
|
45
|
+
"yup": "^1.6.1"
|
|
46
|
+
}
|
|
47
|
+
}
|