@amoa/casting 0.1.10 → 0.1.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import 'react';
2
- import Input from 'tailor/input';
2
+ import Input from '@amoa/ingots/input';
3
3
  import { jsx } from 'react/jsx-runtime';
4
4
 
5
5
  const ERRORS = {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/form/email/index.js"],"sourcesContent":["import * as React from \"react\";\nimport Input from \"tailor/input\";\n\nconst ERRORS = {\n email: \"Identifiant inconnu.\"\n};\n\nconst Email = ({ children, error, ...actions }) => {\n return (\n <Input name=\"email\" type=\"email\" error={ERRORS[error]} {...actions} fill required>\n {children || \"Email\"}\n </Input>\n );\n};\n\nexport default Email;\n"],"names":["ERRORS","email","Email","children","error","actions","_jsx","Input","name","type","fill","required"],"mappings":";;;;AAGA,MAAMA,MAAM,GAAG;AACbC,EAAAA,KAAK,EAAE;AACT,CAAC;AAED,MAAMC,KAAK,GAAGA,CAAC;EAAEC,QAAQ;EAAEC,KAAK;EAAE,GAAGC;AAAQ,CAAC,KAAK;EACjD,oBACEC,GAAA,CAACC,KAAK,EAAA;AAACC,IAAAA,IAAI,EAAC,OAAO;AAACC,IAAAA,IAAI,EAAC,OAAO;AAACL,IAAAA,KAAK,EAAEJ,MAAM,CAACI,KAAK,CAAE;AAAA,IAAA,GAAKC,OAAO;IAAEK,IAAI,EAAA,IAAA;IAACC,QAAQ,EAAA,IAAA;IAAAR,QAAA,EAC9EA,QAAQ,IAAI;AAAO,GACf,CAAC;AAEZ;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../src/form/email/index.js"],"sourcesContent":["import * as React from \"react\";\nimport Input from \"@amoa/ingots/input\";\n\nconst ERRORS = {\n email: \"Identifiant inconnu.\"\n};\n\nconst Email = ({ children, error, ...actions }) => {\n return (\n <Input name=\"email\" type=\"email\" error={ERRORS[error]} {...actions} fill required>\n {children || \"Email\"}\n </Input>\n );\n};\n\nexport default Email;\n"],"names":["ERRORS","email","Email","children","error","actions","_jsx","Input","name","type","fill","required"],"mappings":";;;;AAGA,MAAMA,MAAM,GAAG;AACbC,EAAAA,KAAK,EAAE;AACT,CAAC;AAED,MAAMC,KAAK,GAAGA,CAAC;EAAEC,QAAQ;EAAEC,KAAK;EAAE,GAAGC;AAAQ,CAAC,KAAK;EACjD,oBACEC,GAAA,CAACC,KAAK,EAAA;AAACC,IAAAA,IAAI,EAAC,OAAO;AAACC,IAAAA,IAAI,EAAC,OAAO;AAACL,IAAAA,KAAK,EAAEJ,MAAM,CAACI,KAAK,CAAE;AAAA,IAAA,GAAKC,OAAO;IAAEK,IAAI,EAAA,IAAA;IAACC,QAAQ,EAAA,IAAA;IAAAR,QAAA,EAC9EA,QAAQ,IAAI;AAAO,GACf,CAAC;AAEZ;;;;"}
@@ -1,4 +1,4 @@
1
- import * as Classes from 'forge/classes';
1
+ import * as Classes from '@amoa/forge/classes';
2
2
  import { jsx } from 'react/jsx-runtime';
3
3
 
4
4
  var styles = {"root":"index-module__root__ODuS-","regular":"index-module__regular__MMh2h","large":"index-module__large__zHYpM"};
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../src/form/index.js"],"sourcesContent":["import * as Classes from \"forge/classes\";\n\nimport styles from \"./index.module.css\";\n\nconst Form = ({ children, className, size }) => {\n const classes = Classes.build(styles.root, className, styles[size]);\n return <div className={classes}>{children}</div>;\n};\n\nexport default Form;\n"],"names":["Form","children","className","size","classes","Classes","build","styles","root","_jsx"],"mappings":";;;;;AAIA,MAAMA,IAAI,GAAGA,CAAC;EAAEC,QAAQ;EAAEC,SAAS;AAAEC,EAAAA;AAAK,CAAC,KAAK;AAC9C,EAAA,MAAMC,OAAO,GAAGC,OAAO,CAACC,KAAK,CAACC,MAAM,CAACC,IAAI,EAAEN,SAAS,EAAEK,MAAM,CAACJ,IAAI,CAAC,CAAC;AACnE,EAAA,oBAAOM,GAAA,CAAA,KAAA,EAAA;AAAKP,IAAAA,SAAS,EAAEE,OAAQ;AAAAH,IAAAA,QAAA,EAAEA;AAAQ,GAAM,CAAC;AAClD;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../src/form/index.js"],"sourcesContent":["import * as Classes from \"@amoa/forge/classes\";\n\nimport styles from \"./index.module.css\";\n\nconst Form = ({ children, className, size }) => {\n const classes = Classes.build(styles.root, className, styles[size]);\n return <div className={classes}>{children}</div>;\n};\n\nexport default Form;\n"],"names":["Form","children","className","size","classes","Classes","build","styles","root","_jsx"],"mappings":";;;;;AAIA,MAAMA,IAAI,GAAGA,CAAC;EAAEC,QAAQ;EAAEC,SAAS;AAAEC,EAAAA;AAAK,CAAC,KAAK;AAC9C,EAAA,MAAMC,OAAO,GAAGC,OAAO,CAACC,KAAK,CAACC,MAAM,CAACC,IAAI,EAAEN,SAAS,EAAEK,MAAM,CAACJ,IAAI,CAAC,CAAC;AACnE,EAAA,oBAAOM,GAAA,CAAA,KAAA,EAAA;AAAKP,IAAAA,SAAS,EAAEE,OAAQ;AAAAH,IAAAA,QAAA,EAAEA;AAAQ,GAAM,CAAC;AAClD;;;;"}
@@ -1,5 +1,5 @@
1
1
  import 'react';
2
- import Input from 'tailor/input';
2
+ import Input from '@amoa/ingots/input';
3
3
  import { jsx } from 'react/jsx-runtime';
4
4
 
5
5
  const ERRORS = {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/form/password/index.js"],"sourcesContent":["import * as React from \"react\";\n\nimport Input from \"tailor/input\";\n\nconst ERRORS = {\n password: \"Mot de passe incorrect.\"\n};\n\nconst Password = ({ children, error, ...actions }) => {\n return (\n <Input name=\"password\" type=\"password\" error={ERRORS[error]} {...actions} fill required>\n {children || \"Mot de Passe\"}\n </Input>\n );\n};\n\nexport default Password;\n"],"names":["ERRORS","password","Password","children","error","actions","_jsx","Input","name","type","fill","required"],"mappings":";;;;AAIA,MAAMA,MAAM,GAAG;AACbC,EAAAA,QAAQ,EAAE;AACZ,CAAC;AAED,MAAMC,QAAQ,GAAGA,CAAC;EAAEC,QAAQ;EAAEC,KAAK;EAAE,GAAGC;AAAQ,CAAC,KAAK;EACpD,oBACEC,GAAA,CAACC,KAAK,EAAA;AAACC,IAAAA,IAAI,EAAC,UAAU;AAACC,IAAAA,IAAI,EAAC,UAAU;AAACL,IAAAA,KAAK,EAAEJ,MAAM,CAACI,KAAK,CAAE;AAAA,IAAA,GAAKC,OAAO;IAAEK,IAAI,EAAA,IAAA;IAACC,QAAQ,EAAA,IAAA;IAAAR,QAAA,EACpFA,QAAQ,IAAI;AAAc,GACtB,CAAC;AAEZ;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../src/form/password/index.js"],"sourcesContent":["import * as React from \"react\";\n\nimport Input from \"@amoa/ingots/input\";\n\nconst ERRORS = {\n password: \"Mot de passe incorrect.\"\n};\n\nconst Password = ({ children, error, ...actions }) => {\n return (\n <Input name=\"password\" type=\"password\" error={ERRORS[error]} {...actions} fill required>\n {children || \"Mot de Passe\"}\n </Input>\n );\n};\n\nexport default Password;\n"],"names":["ERRORS","password","Password","children","error","actions","_jsx","Input","name","type","fill","required"],"mappings":";;;;AAIA,MAAMA,MAAM,GAAG;AACbC,EAAAA,QAAQ,EAAE;AACZ,CAAC;AAED,MAAMC,QAAQ,GAAGA,CAAC;EAAEC,QAAQ;EAAEC,KAAK;EAAE,GAAGC;AAAQ,CAAC,KAAK;EACpD,oBACEC,GAAA,CAACC,KAAK,EAAA;AAACC,IAAAA,IAAI,EAAC,UAAU;AAACC,IAAAA,IAAI,EAAC,UAAU;AAACL,IAAAA,KAAK,EAAEJ,MAAM,CAACI,KAAK,CAAE;AAAA,IAAA,GAAKC,OAAO;IAAEK,IAAI,EAAA,IAAA;IAACC,QAAQ,EAAA,IAAA;IAAAR,QAAA,EACpFA,QAAQ,IAAI;AAAc,GACtB,CAAC;AAEZ;;;;"}
package/dist/styles.css CHANGED
@@ -1 +1 @@
1
- .index-module__caption__rLj1H{align-self:center;flex:1 1 auto;min-width:200px}.index-module__image__1vKdM{height:auto;width:200px}.index-module__animation__-ai2b{background-color:var(--light-background);border:.5px solid var(--lighter-stroke);flex:1 0 275px;padding:20px}.index-module__condo__J-7Rb{animation:index-module__floating__QUkes 6s ease-in-out infinite;filter:drop-shadow(0 12px 8px var(--bright-green))}@media (min-width:750px){.index-module__form__GeBqt{flex-direction:row}}@keyframes index-module__floating__QUkes{0%{transform:translateY(-10px)}50%{transform:translateY(10px)}to{transform:translateY(-10px)}}.index-module__root__ODuS-{background-color:var(--white);border-radius:var(--border-radius);display:flex;flex-direction:column;gap:16px;max-width:500px;padding:24px;width:100%}.index-module__regular__MMh2h{max-width:500px}.index-module__large__zHYpM{max-width:700px}@media (min-width:560px){.index-module__root__ODuS-{padding:var(--space)}}.index-module__root__5eZc-{font-size:16px}.index-module__root__5PrR6{align-items:center;display:flex;gap:16px;justify-content:space-between}.index-module__root__GJ8LW{display:flex;flex-direction:column;gap:8px}.index-module__root__-kzxc{display:flex;flex-direction:column;font-size:18px}@media (min-width:560px){.index-module__root__-kzxc{font-size:22px}}
1
+ .index-module__caption__rLj1H{align-self:center;flex:1 1 auto;min-width:200px}.index-module__image__1vKdM{height:auto;width:200px}.index-module__animation__-ai2b{background-color:var(--light-background);border:.5px solid var(--lighter-stroke);flex:1 0 275px;padding:20px}.index-module__condo__J-7Rb{animation:index-module__floating__QUkes 6s ease-in-out infinite;filter:drop-shadow(0 12px 8px var(--bright-green))}@media (min-width:750px){.index-module__form__GeBqt{flex-direction:row}}@keyframes index-module__floating__QUkes{0%{transform:translateY(-10px)}50%{transform:translateY(10px)}to{transform:translateY(-10px)}}.index-module__root__ODuS-{background-color:var(--white);border-radius:var(--border-radius);display:flex;flex-direction:column;gap:16px;max-width:500px;padding:24px;width:100%}.index-module__regular__MMh2h{max-width:500px}.index-module__large__zHYpM{max-width:700px}@media (min-width:560px){.index-module__root__ODuS-{padding:var(--space)}}.index-module__root__GJ8LW{display:flex;flex-direction:column;gap:8px}.index-module__root__-kzxc{display:flex;flex-direction:column;font-size:18px}@media (min-width:560px){.index-module__root__-kzxc{font-size:22px}}.index-module__root__5eZc-{font-size:16px}.index-module__root__5PrR6{align-items:center;display:flex;gap:16px;justify-content:space-between}
@@ -1,7 +1,7 @@
1
1
  import 'react';
2
- import * as Carving from 'carving';
3
- import Form from 'form';
4
- import Caption from 'form/caption';
2
+ import * as Carving from '@amoa/carving';
3
+ import Form from '@amoa/casting/form';
4
+ import Caption from '@amoa/casting/caption';
5
5
  import { jsxs, jsx } from 'react/jsx-runtime';
6
6
 
7
7
  var styles = {"caption":"index-module__caption__rLj1H","image":"index-module__image__1vKdM","animation":"index-module__animation__-ai2b","condo":"index-module__condo__J-7Rb","form":"index-module__form__GeBqt"};
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../src/waiter/index.js"],"sourcesContent":["import * as React from \"react\";\n\nimport * as Carving from \"carving\";\nimport Form from \"form\";\nimport Caption from \"form/caption\";\n\nimport styles from \"./index.module.css\";\n\nconst PICTURE = { picture: Carving.Logos.Amoa };\n\nconst Waiter = ({ picture }) => {\n const { picture: Picture, ...props } = picture || PICTURE;\n return (\n <Form className={styles.form} size=\"large\">\n <div className={styles.caption}>\n <Picture className={styles.image} {...props} priority />\n <Caption>Veuillez patienter, nous vous redirigeons vers la bonne page.</Caption>\n </div>\n <div className={styles.animation}>\n <Carving.Condo className={styles.condo} />\n </div>\n </Form>\n );\n};\n\nexport default Waiter;\n"],"names":["PICTURE","picture","Carving","Logos","Amoa","Waiter","Picture","props","_jsxs","Form","className","styles","form","size","children","caption","_jsx","image","priority","Caption","animation","Condo","condo"],"mappings":";;;;;;;;AAQA,MAAMA,OAAO,GAAG;AAAEC,EAAAA,OAAO,EAAEC,OAAO,CAACC,KAAK,CAACC;AAAK,CAAC;AAE/C,MAAMC,MAAM,GAAGA,CAAC;AAAEJ,EAAAA;AAAQ,CAAC,KAAK;EAC9B,MAAM;AAAEA,IAAAA,OAAO,EAAEK,OAAO;IAAE,GAAGC;GAAO,GAAGN,OAAO,IAAID,OAAO;EACzD,oBACEQ,IAAA,CAACC,IAAI,EAAA;IAACC,SAAS,EAAEC,MAAM,CAACC,IAAK;AAACC,IAAAA,IAAI,EAAC,OAAO;AAAAC,IAAAA,QAAA,gBACxCN,IAAA,CAAA,KAAA,EAAA;MAAKE,SAAS,EAAEC,MAAM,CAACI,OAAQ;MAAAD,QAAA,EAAA,cAC7BE,GAAA,CAACV,OAAO,EAAA;QAACI,SAAS,EAAEC,MAAM,CAACM,KAAM;AAAA,QAAA,GAAKV,KAAK;QAAEW,QAAQ,EAAA;AAAA,OAAE,CAAC,eACxDF,GAAA,CAACG,OAAO,EAAA;AAAAL,QAAAA,QAAA,EAAC;AAA6D,OAAS,CAAC;KAC7E,CAAC,eACNE,GAAA,CAAA,KAAA,EAAA;MAAKN,SAAS,EAAEC,MAAM,CAACS,SAAU;AAAAN,MAAAA,QAAA,eAC/BE,GAAA,CAACd,OAAO,CAACmB,KAAK,EAAA;QAACX,SAAS,EAAEC,MAAM,CAACW;OAAQ;AAAC,KACvC,CAAC;AAAA,GACF,CAAC;AAEX;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../src/waiter/index.js"],"sourcesContent":["import * as React from \"react\";\n\nimport * as Carving from \"@amoa/carving\";\nimport Form from \"@amoa/casting/form\";\nimport Caption from \"@amoa/casting/caption\";\n\nimport styles from \"./index.module.css\";\n\nconst PICTURE = { picture: Carving.Logos.Amoa };\n\nconst Waiter = ({ picture }) => {\n const { picture: Picture, ...props } = picture || PICTURE;\n return (\n <Form className={styles.form} size=\"large\">\n <div className={styles.caption}>\n <Picture className={styles.image} {...props} priority />\n <Caption>Veuillez patienter, nous vous redirigeons vers la bonne page.</Caption>\n </div>\n <div className={styles.animation}>\n <Carving.Condo className={styles.condo} />\n </div>\n </Form>\n );\n};\n\nexport default Waiter;\n"],"names":["PICTURE","picture","Carving","Logos","Amoa","Waiter","Picture","props","_jsxs","Form","className","styles","form","size","children","caption","_jsx","image","priority","Caption","animation","Condo","condo"],"mappings":";;;;;;;;AAQA,MAAMA,OAAO,GAAG;AAAEC,EAAAA,OAAO,EAAEC,OAAO,CAACC,KAAK,CAACC;AAAK,CAAC;AAE/C,MAAMC,MAAM,GAAGA,CAAC;AAAEJ,EAAAA;AAAQ,CAAC,KAAK;EAC9B,MAAM;AAAEA,IAAAA,OAAO,EAAEK,OAAO;IAAE,GAAGC;GAAO,GAAGN,OAAO,IAAID,OAAO;EACzD,oBACEQ,IAAA,CAACC,IAAI,EAAA;IAACC,SAAS,EAAEC,MAAM,CAACC,IAAK;AAACC,IAAAA,IAAI,EAAC,OAAO;AAAAC,IAAAA,QAAA,gBACxCN,IAAA,CAAA,KAAA,EAAA;MAAKE,SAAS,EAAEC,MAAM,CAACI,OAAQ;MAAAD,QAAA,EAAA,cAC7BE,GAAA,CAACV,OAAO,EAAA;QAACI,SAAS,EAAEC,MAAM,CAACM,KAAM;AAAA,QAAA,GAAKV,KAAK;QAAEW,QAAQ,EAAA;AAAA,OAAE,CAAC,eACxDF,GAAA,CAACG,OAAO,EAAA;AAAAL,QAAAA,QAAA,EAAC;AAA6D,OAAS,CAAC;KAC7E,CAAC,eACNE,GAAA,CAAA,KAAA,EAAA;MAAKN,SAAS,EAAEC,MAAM,CAACS,SAAU;AAAAN,MAAAA,QAAA,eAC/BE,GAAA,CAACd,OAAO,CAACmB,KAAK,EAAA;QAACX,SAAS,EAAEC,MAAM,CAACW;OAAQ;AAAC,KACvC,CAAC;AAAA,GACF,CAAC;AAEX;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amoa/casting",
3
- "version": "0.1.10",
3
+ "version": "0.1.12",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },