@jjlmoya/utils-textiles 1.2.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jjlmoya/utils-textiles",
3
- "version": "1.2.0",
3
+ "version": "1.3.0",
4
4
  "type": "module",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -1,34 +1,14 @@
1
1
  ---
2
+ import { Bibliography as SharedBibliography } from '@jjlmoya/utils-shared';
3
+ import { burnTest } from './index';
4
+ import type { KnownLocale } from '../../types';
5
+
6
+ interface Props {
7
+ locale?: KnownLocale;
8
+ }
9
+
10
+ const { locale = 'es' } = Astro.props;
11
+ const content = await burnTest.i18n[locale]?.();
2
12
  ---
3
- <div class="bibliography">
4
- <h3>References</h3>
5
- <ul>
6
- <li><a href="https://members.aatcc.org/store/tm20/485/" target="_blank">AATCC TM20: Fiber Analysis - Qualitative</a></li>
7
- <li><a href="https://nvlpubs.nist.gov/nistpubs/Legacy/circ/nbscircular41e3.pdf" target="_blank">Textile Fibers: Identification and Testing - NIST</a></li>
8
- <li><a href="https://fabricmartfabrics.com/pages/burn-test-chart" target="_blank">Burn Test Chart for Fiber Identification - Fabric Mart</a></li>
9
- </ul>
10
- </div>
11
- <style>
12
- .bibliography {
13
- padding: 1rem 0;
14
- }
15
- .bibliography h3 {
16
- font-size: 1.1rem;
17
- font-weight: 600;
18
- margin-bottom: 1rem;
19
- }
20
- .bibliography ul {
21
- list-style: none;
22
- padding: 0;
23
- }
24
- .bibliography li {
25
- margin-bottom: 0.5rem;
26
- }
27
- .bibliography a {
28
- color: #6366f1;
29
- text-decoration: none;
30
- }
31
- .bibliography a:hover {
32
- text-decoration: underline;
33
- }
34
- </style>
13
+
14
+ {content && <SharedBibliography links={content.bibliography} />}
@@ -1,34 +1,14 @@
1
1
  ---
2
+ import { Bibliography as SharedBibliography } from '@jjlmoya/utils-shared';
3
+ import { clothingSizeConverter } from './index';
4
+ import type { KnownLocale } from '../../types';
5
+
6
+ interface Props {
7
+ locale?: KnownLocale;
8
+ }
9
+
10
+ const { locale = 'es' } = Astro.props;
11
+ const content = await clothingSizeConverter.i18n[locale]?.();
2
12
  ---
3
- <div class="bibliography">
4
- <h3>References</h3>
5
- <ul>
6
- <li><a href="https://www.iso.org/standard/68644.html" target="_blank">ISO 3635: Clothing Sizes - Official Standard</a></li>
7
- <li><a href="https://en.wikipedia.org/wiki/Clothing_size" target="_blank">Clothing Size Standards - Wikipedia</a></li>
8
- <li><a href="https://en.wikipedia.org/wiki/Clothing_size#International_variations" target="_blank">International Clothing Size Conversion - Wikipedia</a></li>
9
- </ul>
10
- </div>
11
- <style>
12
- .bibliography {
13
- padding: 1rem 0;
14
- }
15
- .bibliography h3 {
16
- font-size: 1.1rem;
17
- font-weight: 600;
18
- margin-bottom: 1rem;
19
- }
20
- .bibliography ul {
21
- list-style: none;
22
- padding: 0;
23
- }
24
- .bibliography li {
25
- margin-bottom: 0.5rem;
26
- }
27
- .bibliography a {
28
- color: #6366f1;
29
- text-decoration: none;
30
- }
31
- .bibliography a:hover {
32
- text-decoration: underline;
33
- }
34
- </style>
13
+
14
+ {content && <SharedBibliography links={content.bibliography} />}
@@ -1,19 +1,14 @@
1
1
  ---
2
+ import { Bibliography as SharedBibliography } from '@jjlmoya/utils-shared';
3
+ import { fabricProjectCalculator } from './index';
4
+ import type { KnownLocale } from '../../types';
5
+
6
+ interface Props {
7
+ locale?: KnownLocale;
8
+ }
9
+
10
+ const { locale = 'es' } = Astro.props;
11
+ const content = await fabricProjectCalculator.i18n[locale]?.();
2
12
  ---
3
- <ul>
4
- <li>
5
- <a href="https://www.threadsmagazine.com/forum/measuring-fabric" target="_blank" rel="noopener noreferrer">
6
- Fabric Estimation Guide - Threads Magazine
7
- </a>
8
- </li>
9
- <li>
10
- <a href="https://www.seamwork.com/sewing-tutorials/the-anatomy-of-a-sewing-pattern" target="_blank" rel="noopener noreferrer">
11
- How much fabric do I need? - Seamwork
12
- </a>
13
- </li>
14
- <li>
15
- <a href="https://www.textileschool.com/209/fabric-consumption-in-garment-making/" target="_blank" rel="noopener noreferrer">
16
- Standard Fabric Consumption Charts - Textile School
17
- </a>
18
- </li>
19
- </ul>
13
+
14
+ {content && <SharedBibliography links={content.bibliography} />}
@@ -1,40 +1,14 @@
1
1
  ---
2
- ---
2
+ import { Bibliography as SharedBibliography } from '@jjlmoya/utils-shared';
3
+ import { fabricTruth } from './index';
4
+ import type { KnownLocale } from '../../types';
3
5
 
4
- <div class="space-y-4">
5
- <a
6
- href="https://www.ftc.gov/business-guidance/resources/textile-fiber-products-guides"
7
- target="_blank"
8
- rel="noopener noreferrer"
9
- class="block p-4 bg-white dark:bg-slate-800 rounded-lg border border-slate-200 dark:border-slate-700 hover:border-indigo-500 dark:hover:border-indigo-400 transition-colors"
10
- >
11
- <p class="font-semibold text-slate-900 dark:text-white">FTC - Guía de Etiquetado Textil</p>
12
- <p class="text-sm text-slate-600 dark:text-slate-400">
13
- Regulaciones oficiales sobre etiquetado de fibras textiles en EE.UU.
14
- </p>
15
- </a>
6
+ interface Props {
7
+ locale?: KnownLocale;
8
+ }
16
9
 
17
- <a
18
- href="https://ec.europa.eu/growth/tools-databases/nando/"
19
- target="_blank"
20
- rel="noopener noreferrer"
21
- class="block p-4 bg-white dark:bg-slate-800 rounded-lg border border-slate-200 dark:border-slate-700 hover:border-indigo-500 dark:hover:border-indigo-400 transition-colors"
22
- >
23
- <p class="font-semibold text-slate-900 dark:text-white">Comisión Europea - Regulación Textil</p>
24
- <p class="text-sm text-slate-600 dark:text-slate-400">
25
- Base de datos de regulaciones textiles de la UE
26
- </p>
27
- </a>
10
+ const { locale = 'es' } = Astro.props;
11
+ const content = await fabricTruth.i18n[locale]?.();
12
+ ---
28
13
 
29
- <a
30
- href="https://www.iso.org/standard/60465.html"
31
- target="_blank"
32
- rel="noopener noreferrer"
33
- class="block p-4 bg-white dark:bg-slate-800 rounded-lg border border-slate-200 dark:border-slate-700 hover:border-indigo-500 dark:hover:border-indigo-400 transition-colors"
34
- >
35
- <p class="font-semibold text-slate-900 dark:text-white">ISO 3758:2012 - Símbolos de Cuidado Textil</p>
36
- <p class="text-sm text-slate-600 dark:text-slate-400">
37
- Estándar internacional para símbolos de mantenimiento textil
38
- </p>
39
- </a>
40
- </div>
14
+ {content && <SharedBibliography links={content.bibliography} />}
@@ -1,33 +1,14 @@
1
1
  ---
2
+ import { Bibliography as SharedBibliography } from '@jjlmoya/utils-shared';
3
+ import { fiberPrep } from './index';
4
+ import type { KnownLocale } from '../../types';
5
+
6
+ interface Props {
7
+ locale?: KnownLocale;
8
+ }
9
+
10
+ const { locale = 'es' } = Astro.props;
11
+ const content = await fiberPrep.i18n[locale]?.();
2
12
  ---
3
- <div class="bibliography">
4
- <h3>References</h3>
5
- <ul>
6
- <li><a href="https://laescuelaartesana.com/taller-de-tintes-naturales-sobre-lana/" target="_blank">La Escuela Artesana - Taller de Tintes Naturales sobre Lana</a></li>
7
- <li><a href="https://www.instagram.com/tatianasarasa/" target="_blank">Tatiana Sarasa (@tatianasarasa) - Artista Textil y Tintes Naturales</a></li>
8
- </ul>
9
- </div>
10
- <style>
11
- .bibliography {
12
- padding: 1rem 0;
13
- }
14
- .bibliography h3 {
15
- font-size: 1.1rem;
16
- font-weight: 600;
17
- margin-bottom: 1rem;
18
- }
19
- .bibliography ul {
20
- list-style: none;
21
- padding: 0;
22
- }
23
- .bibliography li {
24
- margin-bottom: 0.5rem;
25
- }
26
- .bibliography a {
27
- color: #6366f1;
28
- text-decoration: none;
29
- }
30
- .bibliography a:hover {
31
- text-decoration: underline;
32
- }
33
- </style>
13
+
14
+ {content && <SharedBibliography links={content.bibliography} />}
@@ -1,14 +1,14 @@
1
1
  ---
2
+ import { Bibliography as SharedBibliography } from '@jjlmoya/utils-shared';
3
+ import { knittingGauge } from './index';
4
+ import type { KnownLocale } from '../../types';
5
+
6
+ interface Props {
7
+ locale?: KnownLocale;
8
+ }
9
+
10
+ const { locale = 'es' } = Astro.props;
11
+ const content = await knittingGauge.i18n[locale]?.();
2
12
  ---
3
- <ul>
4
- <li>
5
- <a href="https://blog.tincanknits.com/2013/08/17/gauge/" target="_blank" rel="noopener noreferrer">
6
- The Importance of Gauge - Tin Can Knits
7
- </a>
8
- </li>
9
- <li>
10
- <a href="https://elizabethsmithknits.com/2020/10/30/how-to-measure-your-gauge-swatch/" target="_blank" rel="noopener noreferrer">
11
- Knitting Gauge: How to Measure Stitches and Rows - Elizabeth Smith Knits
12
- </a>
13
- </li>
14
- </ul>
13
+
14
+ {content && <SharedBibliography links={content.bibliography} />}
@@ -1,33 +1,14 @@
1
1
  ---
2
+ import { Bibliography as SharedBibliography } from '@jjlmoya/utils-shared';
3
+ import { laundryGuide } from './index';
4
+ import type { KnownLocale } from '../../types';
5
+
6
+ interface Props {
7
+ locale?: KnownLocale;
8
+ }
9
+
10
+ const { locale = 'es' } = Astro.props;
11
+ const content = await laundryGuide.i18n[locale]?.();
2
12
  ---
3
- <div class="bibliography">
4
- <h3>References</h3>
5
- <ul>
6
- <li><a href="https://www.iso.org/standard/60465.html" target="_blank">ISO 3758 - Textile Care Symbols</a></li>
7
- <li><a href="https://www.ftc.gov/" target="_blank">FTC - Textile Care Information</a></li>
8
- </ul>
9
- </div>
10
- <style>
11
- .bibliography {
12
- padding: 1rem 0;
13
- }
14
- .bibliography h3 {
15
- font-size: 1.1rem;
16
- font-weight: 600;
17
- margin-bottom: 1rem;
18
- }
19
- .bibliography ul {
20
- list-style: none;
21
- padding: 0;
22
- }
23
- .bibliography li {
24
- margin-bottom: 0.5rem;
25
- }
26
- .bibliography a {
27
- color: #6366f1;
28
- text-decoration: none;
29
- }
30
- .bibliography a:hover {
31
- text-decoration: underline;
32
- }
33
- </style>
13
+
14
+ {content && <SharedBibliography links={content.bibliography} />}
@@ -1,7 +1,7 @@
1
1
  import type { WithContext, FAQPage, HowTo, SoftwareApplication } from 'schema-dts';
2
2
  import type { ToolLocaleContent } from '../../../types';
3
3
 
4
- const slug = 'dimensionneur-patron-couture';
4
+ const slug = 'guide-lavage-textile';
5
5
  const title = 'Dimensionneur de Patron de Couture en Ligne';
6
6
  const description = 'Ajustez n\'importe quel patron de couture à vos mesures réelles. Calculateur de mise à l\'échelle différentielle avec prévisualisation du patron mis à jour.';
7
7
 
@@ -1,14 +1,14 @@
1
1
  ---
2
+ import { Bibliography as SharedBibliography } from '@jjlmoya/utils-shared';
3
+ import { needleConverter } from './index';
4
+ import type { KnownLocale } from '../../types';
5
+
6
+ interface Props {
7
+ locale?: KnownLocale;
8
+ }
9
+
10
+ const { locale = 'es' } = Astro.props;
11
+ const content = await needleConverter.i18n[locale]?.();
2
12
  ---
3
- <ul>
4
- <li>
5
- <a href="https://www.craftyarncouncil.com/standards/hooks-and-needles" target="_blank" rel="noopener noreferrer">
6
- Craft Yarn Council: Needle and Hook Size Chart
7
- </a>
8
- </li>
9
- <li>
10
- <a href="https://knowledge.bsigroup.com/products/textile-machinery-knitting-machines-number-of-needles-for-circular-knitting-machines-of-large-nominal-diameter" target="_blank" rel="noopener noreferrer">
11
- British Standards Institution: Textiles - Marking of Knitting Needles
12
- </a>
13
- </li>
14
- </ul>
13
+
14
+ {content && <SharedBibliography links={content.bibliography} />}
@@ -1,14 +1,14 @@
1
1
  ---
2
+ import { Bibliography as SharedBibliography } from '@jjlmoya/utils-shared';
3
+ import { sewingPatternScaler } from './index';
4
+ import type { KnownLocale } from '../../types';
5
+
6
+ interface Props {
7
+ locale?: KnownLocale;
8
+ }
9
+
10
+ const { locale = 'es' } = Astro.props;
11
+ const content = await sewingPatternScaler.i18n[locale]?.();
2
12
  ---
3
- <ul>
4
- <li>
5
- <a href="https://www.scribd.com/document/696165843/patronaje-las-bases-by-teresa-gilewska" target="_blank" rel="noopener noreferrer">
6
- Patronaje: Las Bases - Teresa Gilewska
7
- </a>
8
- </li>
9
- <li>
10
- <a href="https://download.e-bookshelf.de/download/0000/5989/88/L-G-0000598988-0002339537.pdf" target="_blank" rel="noopener noreferrer">
11
- Metric Pattern Cutting for Women's Wear - Winifred Aldrich
12
- </a>
13
- </li>
14
- </ul>
13
+
14
+ {content && <SharedBibliography links={content.bibliography} />}
@@ -1,34 +1,14 @@
1
1
  ---
2
+ import { Bibliography as SharedBibliography } from '@jjlmoya/utils-shared';
3
+ import { shoeSizeConverter } from './index';
4
+ import type { KnownLocale } from '../../types';
5
+
6
+ interface Props {
7
+ locale?: KnownLocale;
8
+ }
9
+
10
+ const { locale = 'es' } = Astro.props;
11
+ const content = await shoeSizeConverter.i18n[locale]?.();
2
12
  ---
3
- <div class="bibliography">
4
- <h3>References</h3>
5
- <ul>
6
- <li><a href="https://en.wikipedia.org/wiki/Shoe_size" target="_blank">Shoe size conversion - Wikipedia</a></li>
7
- <li><a href="https://www.iso.org/standard/17157.html" target="_blank">ISO 9407: Shoe sizes - Mondopoint system</a></li>
8
- <li><a href="https://www.zappos.com/c/shoe-size-conversion" target="_blank">Shoe size conversion - Zappos</a></li>
9
- </ul>
10
- </div>
11
- <style>
12
- .bibliography {
13
- padding: 1rem 0;
14
- }
15
- .bibliography h3 {
16
- font-size: 1.1rem;
17
- font-weight: 600;
18
- margin-bottom: 1rem;
19
- }
20
- .bibliography ul {
21
- list-style: none;
22
- padding: 0;
23
- }
24
- .bibliography li {
25
- margin-bottom: 0.5rem;
26
- }
27
- .bibliography a {
28
- color: #6366f1;
29
- text-decoration: none;
30
- }
31
- .bibliography a:hover {
32
- text-decoration: underline;
33
- }
34
- </style>
13
+
14
+ {content && <SharedBibliography links={content.bibliography} />}
@@ -1,40 +1,14 @@
1
1
  ---
2
- ---
2
+ import { Bibliography as SharedBibliography } from '@jjlmoya/utils-shared';
3
+ import { stainChemistry } from './index';
4
+ import type { KnownLocale } from '../../types';
3
5
 
4
- <div class="space-y-4">
5
- <a
6
- href="https://www.aatcc.org"
7
- target="_blank"
8
- rel="noopener noreferrer"
9
- class="block p-4 bg-white dark:bg-slate-800 rounded-lg border border-slate-200 dark:border-slate-700 hover:border-indigo-500 dark:hover:border-indigo-400 transition-colors"
10
- >
11
- <p class="font-semibold text-slate-900 dark:text-white">AATCC — Association for Advancing Color Technology and Chemistry</p>
12
- <p class="text-sm text-slate-600 dark:text-slate-400">
13
- Estándares técnicos para ensayos de solidez y tratamiento de manchas en textiles.
14
- </p>
15
- </a>
6
+ interface Props {
7
+ locale?: KnownLocale;
8
+ }
16
9
 
17
- <a
18
- href="https://www.iso.org/standard/72682.html"
19
- target="_blank"
20
- rel="noopener noreferrer"
21
- class="block p-4 bg-white dark:bg-slate-800 rounded-lg border border-slate-200 dark:border-slate-700 hover:border-indigo-500 dark:hover:border-indigo-400 transition-colors"
22
- >
23
- <p class="font-semibold text-slate-900 dark:text-white">ISO 105 — Tests for Colour Fastness</p>
24
- <p class="text-sm text-slate-600 dark:text-slate-400">
25
- Estándar internacional para pruebas de solidez de colorantes textiles.
26
- </p>
27
- </a>
10
+ const { locale = 'es' } = Astro.props;
11
+ const content = await stainChemistry.i18n[locale]?.();
12
+ ---
28
13
 
29
- <a
30
- href="https://www.springer.com/gp/book/9783642057328"
31
- target="_blank"
32
- rel="noopener noreferrer"
33
- class="block p-4 bg-white dark:bg-slate-800 rounded-lg border border-slate-200 dark:border-slate-700 hover:border-indigo-500 dark:hover:border-indigo-400 transition-colors"
34
- >
35
- <p class="font-semibold text-slate-900 dark:text-white">Kissa, E. — Textile Auxiliaries</p>
36
- <p class="text-sm text-slate-600 dark:text-slate-400">
37
- Referencia científica sobre la química de los auxiliares textiles y sus efectos sobre las fibras.
38
- </p>
39
- </a>
40
- </div>
14
+ {content && <SharedBibliography links={content.bibliography} />}
@@ -1,19 +1,14 @@
1
1
  ---
2
+ import { Bibliography as SharedBibliography } from '@jjlmoya/utils-shared';
3
+ import { yarnCalculator } from './index';
4
+ import type { KnownLocale } from '../../types';
5
+
6
+ interface Props {
7
+ locale?: KnownLocale;
8
+ }
9
+
10
+ const { locale = 'es' } = Astro.props;
11
+ const content = await yarnCalculator.i18n[locale]?.();
2
12
  ---
3
- <ul>
4
- <li>
5
- <a href="https://www.craftyarncouncil.com/standards/yarn-weight-system" target="_blank" rel="noopener noreferrer">
6
- Craft Yarn Council: Standard Yarn Weights &amp; Yardages
7
- </a>
8
- </li>
9
- <li>
10
- <a href="https://www.interweave.com/article/knitting/yarn-substitution-angelina-take-two/" target="_blank" rel="noopener noreferrer">
11
- Interweave Essentials: Yarn Substitution and Estimation
12
- </a>
13
- </li>
14
- <li>
15
- <a href="https://woolery.com/blogs/the-woolery-blog/yarn-weight-charts-helpful-guide/" target="_blank" rel="noopener noreferrer">
16
- The Woolery: Fibers and Calculation of Yarn Usage
17
- </a>
18
- </li>
19
- </ul>
13
+
14
+ {content && <SharedBibliography links={content.bibliography} />}