western-signs 1.5.0 → 1.7.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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Western Signs
1
+ # Western Signs
2
2
 
3
3
  Simple interface for [western astrological](https://en.wikipedia.org/wiki/Western_astrology) signs.
4
4
 
@@ -6,6 +6,7 @@ Simple interface for [western astrological](https://en.wikipedia.org/wiki/Wester
6
6
  [![GitHub License](https://img.shields.io/github/license/marcmarine/western-signs)](LICENSE)
7
7
  [![View Changelog](https://img.shields.io/badge/view-CHANGELOG.md-red.svg)](https://github.com/marcmarine/western-signs/releases)
8
8
  [![TypeDoc](https://img.shields.io/badge/view-docs-yellow.svg)](https://marcmarine.github.io/western-signs)
9
+ ![NPM Unpacked Size](https://img.shields.io/npm/unpacked-size/western-signs)
9
10
 
10
11
  The **Western Signs** library provides detailed information about each astrological sign, including its `name`, `element`, `modality`, `rulingPlanet` and `glyph`, among other things. Additionally, you can specify the language for translations.
11
12
 
@@ -0,0 +1,8 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path
3
+ d="M1.33334 10.3333C1.77576 9.89203 2.37513 9.64421 3.00001 9.64421C3.62489 9.64421 4.22426 9.89203 4.66668 10.3333C4.88548 10.5523 5.14529 10.726 5.43127 10.8446C5.71725 10.9631 6.02378 11.0241 6.33334 11.0241C6.64291 11.0241 6.94944 10.9631 7.23542 10.8446C7.52139 10.726 7.78121 10.5523 8.00001 10.3333C8.44242 9.89203 9.0418 9.64421 9.66668 9.64421C10.2916 9.64421 10.8909 9.89203 11.3333 10.3333C11.5521 10.5523 11.812 10.726 12.0979 10.8446C12.3839 10.9631 12.6904 11.0241 13 11.0241C13.3096 11.0241 13.6161 10.9631 13.9021 10.8446C14.1881 10.726 14.4479 10.5523 14.6667 10.3333M1.33334 5.66666C1.77576 5.22537 2.37513 4.97754 3.00001 4.97754C3.62489 4.97754 4.22426 5.22537 4.66668 5.66666C4.88548 5.88566 5.14529 6.05938 5.43127 6.17791C5.71725 6.29644 6.02378 6.35744 6.33334 6.35744C6.64291 6.35744 6.94944 6.29644 7.23542 6.17791C7.52139 6.05938 7.78121 5.88566 8.00001 5.66666C8.44242 5.22537 9.0418 4.97754 9.66668 4.97754C10.2916 4.97754 10.8909 5.22537 11.3333 5.66666C11.5521 5.88566 11.812 6.05938 12.0979 6.17791C12.3839 6.29644 12.6904 6.35744 13 6.35744C13.3096 6.35744 13.6161 6.29644 13.9021 6.17791C14.1881 6.05938 14.4479 5.88566 14.6667 5.66666"
4
+ stroke="black"
5
+ stroke-width="1"
6
+ stroke-linejoin="round"
7
+ />
8
+ </svg>
@@ -0,0 +1,9 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path
3
+ d="M2.30934 7.22398C1.92181 6.83635 1.63585 6.35913 1.47679 5.83459C1.31772 5.31005 1.29046 4.75439 1.39743 4.2168C1.50439 3.67921 1.74227 3.1763 2.09 2.75259C2.43773 2.32889 2.88459 1.99748 3.39098 1.78771C3.89738 1.57793 4.44769 1.49628 4.99318 1.54997C5.53867 1.60365 6.0625 1.79103 6.51828 2.09551C6.97406 2.39998 7.34773 2.81215 7.60618 3.29552C7.86464 3.77888 7.99991 4.31852 8.00001 4.86665M8.00001 4.86665C8.00011 4.31852 8.13538 3.77888 8.39384 3.29552C8.65229 2.81215 9.02596 2.39998 9.48174 2.09551C9.93752 1.79103 10.4614 1.60365 11.0068 1.54997C11.5523 1.49628 12.1026 1.57793 12.609 1.78771C13.1154 1.99748 13.5623 2.32889 13.91 2.75259C14.2578 3.1763 14.4956 3.67921 14.6026 4.2168C14.7096 4.75439 14.6823 5.31005 14.5232 5.83459C14.3642 6.35913 14.0782 6.83635 13.6907 7.22398M8.00001 4.86665V14.8666"
4
+ stroke="black"
5
+ stroke-width="1"
6
+ stroke-linecap="square"
7
+ stroke-linejoin="round"
8
+ />
9
+ </svg>
@@ -0,0 +1,9 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path
3
+ d="M14.6667 7.99996C14.6667 7.70808 14.6092 7.41905 14.4975 7.14939C14.3858 6.87972 14.2221 6.63469 14.0157 6.4283C13.8093 6.22191 13.5643 6.05819 13.2946 5.94649C13.0249 5.83479 12.7359 5.7773 12.444 5.7773C12.1521 5.7773 11.8631 5.83479 11.5934 5.94649C11.3238 6.05819 11.0787 6.22191 10.8723 6.4283C10.666 6.63469 10.5022 6.87972 10.3905 7.14939C10.2788 7.41905 10.2213 7.70808 10.2213 7.99996C10.2213 8.58945 10.4555 9.1548 10.8723 9.57163C11.2892 9.98846 11.8545 10.2226 12.444 10.2226C13.0335 10.2226 13.5988 9.98846 14.0157 9.57163C14.4325 9.1548 14.6667 8.58945 14.6667 7.99996ZM14.6667 7.99996C14.6664 6.68163 14.2753 5.39297 13.5427 4.29691C12.8101 3.20084 11.769 2.34658 10.551 1.84211C9.33304 1.33764 7.99282 1.20562 6.6998 1.46274C5.40678 1.71986 4.21902 2.35457 3.28668 3.28663M1.33334 7.99996C1.33334 8.29185 1.39083 8.58087 1.50253 8.85054C1.61423 9.12021 1.77795 9.36523 1.98435 9.57163C2.19074 9.77802 2.43577 9.94174 2.70543 10.0534C2.9751 10.1651 3.26413 10.2226 3.55601 10.2226C3.8479 10.2226 4.13692 10.1651 4.40659 10.0534C4.67625 9.94174 4.92128 9.77802 5.12767 9.57163C5.33407 9.36523 5.49779 9.12021 5.60949 8.85054C5.72119 8.58087 5.77868 8.29185 5.77868 7.99996C5.77868 7.41048 5.5445 6.84513 5.12767 6.4283C4.71084 6.01147 4.1455 5.7773 3.55601 5.7773C2.96652 5.7773 2.40118 6.01147 1.98435 6.4283C1.56752 6.84513 1.33334 7.41048 1.33334 7.99996ZM1.33334 7.99996C1.33363 9.3183 1.72477 10.607 2.45733 11.703C3.18989 12.7991 4.23098 13.6534 5.44898 14.1578C6.66698 14.6623 8.0072 14.7943 9.30022 14.5372C10.5932 14.2801 11.781 13.6454 12.7133 12.7133"
4
+ stroke="black"
5
+ stroke-width="1"
6
+ stroke-linecap="square"
7
+ stroke-linejoin="round"
8
+ />
9
+ </svg>
@@ -0,0 +1,8 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path
3
+ d="M1.13333 5.77739H3.356L5.57733 14.6667L7.8 5.77739H12.244C12.733 5.77733 13.2083 5.61593 13.5962 5.31821C13.9841 5.0205 14.2629 4.60311 14.3894 4.13078C14.5159 3.65845 14.4831 3.15757 14.2959 2.70583C14.1088 2.25409 13.7778 1.87672 13.3543 1.63225C12.9308 1.38779 12.4385 1.28989 11.9537 1.35374C11.4689 1.41758 11.0187 1.63961 10.673 1.98538C10.3272 2.33115 10.1052 2.78135 10.0414 3.26614C9.97758 3.75094 10.0755 4.24325 10.32 4.66672L14.1693 11.3334C14.3401 11.6286 14.4407 11.9593 14.4632 12.2996C14.4857 12.64 14.4295 12.9809 14.2991 13.2961C14.1687 13.6113 13.9675 13.8922 13.711 14.1172C13.4546 14.3421 13.1499 14.505 12.8204 14.5932C12.4909 14.6815 12.1455 14.6927 11.811 14.6261C11.4765 14.5594 11.1618 14.4167 10.8913 14.2089C10.6208 14.0011 10.4018 13.7338 10.2511 13.4278C10.1005 13.1217 10.0223 12.7852 10.0227 12.4441"
4
+ stroke="black"
5
+ stroke-width="1"
6
+ stroke-linejoin="round"
7
+ />
8
+ </svg>
@@ -0,0 +1,9 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path
3
+ d="M4.66668 2.69598V13.304M11.3333 2.69598V13.304M14.6667 1.33331C12.64 2.50421 10.3406 3.12067 8.00001 3.12067C5.65939 3.12067 3.36005 2.50421 1.33334 1.33331M14.6667 14.6666C12.6397 13.4965 10.3405 12.8805 8.00001 12.8805C5.65955 12.8805 3.36031 13.4965 1.33334 14.6666"
4
+ stroke="black"
5
+ stroke-width="1"
6
+ stroke-linecap="square"
7
+ stroke-linejoin="round"
8
+ />
9
+ </svg>
package/assets/leo.svg ADDED
@@ -0,0 +1,8 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path
3
+ d="M6.33333 9.66671C6.33333 8.00004 4.66667 6.33337 4.66667 4.66671C4.66667 3.78265 5.01786 2.93481 5.64298 2.30968C6.2681 1.68456 7.11595 1.33337 8 1.33337C8.88406 1.33337 9.7319 1.68456 10.357 2.30968C10.9821 2.93481 11.3333 3.78265 11.3333 4.66671C11.3333 8.00004 9.66667 9.66671 9.66667 13C9.66667 13.4421 9.84226 13.866 10.1548 14.1786C10.4674 14.4911 10.8913 14.6667 11.3333 14.6667C11.7754 14.6667 12.1993 14.4911 12.5118 14.1786C12.8244 13.866 13 13.4421 13 13M6.33333 9.66671C6.33333 9.22468 6.15774 8.80076 5.84518 8.4882C5.53262 8.17564 5.10869 8.00004 4.66667 8.00004C4.22464 8.00004 3.80072 8.17564 3.48816 8.4882C3.17559 8.80076 3 9.22468 3 9.66671C3 10.1087 3.17559 10.5327 3.48816 10.8452C3.80072 11.1578 4.22464 11.3334 4.66667 11.3334C5.10869 11.3334 5.53262 11.1578 5.84518 10.8452C6.15774 10.5327 6.33333 10.1087 6.33333 9.66671Z"
4
+ stroke="black"
5
+ stroke-width="1"
6
+ stroke-linejoin="round"
7
+ />
8
+ </svg>
@@ -0,0 +1,9 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path
3
+ d="M0.299957 8.00004H4.14998C4.14998 6.97896 4.5556 5.99969 5.27762 5.27767C5.99964 4.55565 6.97891 4.15002 8 4.15002C9.02108 4.15002 10.0004 4.55565 10.7224 5.27767C11.4444 5.99969 11.85 6.97896 11.85 8.00004H15.7M0.299957 11.8501L15.7 11.8501"
4
+ stroke="black"
5
+ stroke-width="1"
6
+ stroke-linecap="square"
7
+ stroke-linejoin="round"
8
+ />
9
+ </svg>
@@ -0,0 +1,8 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path
3
+ d="M12.1667 2.22668C11.1533 2.81183 10.3118 3.6534 9.72672 4.66683C9.14165 5.68026 8.83364 6.82983 8.83364 8.00002C8.83364 9.17021 9.14165 10.3198 9.72672 11.3332C10.3118 12.3466 11.1533 13.1882 12.1667 13.7734M3.83334 13.7734C4.84673 13.1882 5.68824 12.3466 6.2733 11.3332C6.85837 10.3198 7.16638 9.17021 7.16638 8.00002C7.16638 6.82983 6.85837 5.68026 6.2733 4.66683C5.68824 3.6534 4.84673 2.81183 3.83334 2.22668M1.33334 7.99735H14.6707"
4
+ stroke="black"
5
+ stroke-width="1"
6
+ stroke-linejoin="round"
7
+ />
8
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M4.60799 4.7253L11.2747 11.392M1.27466 14.7253L14.608 1.39197M14.608 1.39197H11.2747M14.608 1.39197V4.7253" stroke="black" stroke-width="1" stroke-linejoin="round" />
3
+ </svg>
@@ -0,0 +1,9 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path
3
+ d="M13.3453 10.988L13.3453 9.32133H15.012M1.82134 5.84533C1.62758 5.65152 1.4846 5.41291 1.40507 5.15064C1.32553 4.88837 1.3119 4.61054 1.36539 4.34174C1.41887 4.07295 1.53781 3.82149 1.71167 3.60964C1.88554 3.39779 2.10896 3.23208 2.36216 3.1272C2.61536 3.02231 2.89052 2.98148 3.16326 3.00833C3.43601 3.03517 3.69792 3.12886 3.92581 3.2811C4.1537 3.43333 4.34054 3.63942 4.46976 3.8811C4.59899 4.12278 4.66663 4.3926 4.66668 4.66667M4.66668 4.66667L4.66668 11.3333M4.66668 4.66667C4.66668 4.22464 4.84227 3.80072 5.15483 3.48816C5.46739 3.17559 5.89132 3 6.33334 3C6.77537 3 7.19929 3.17559 7.51185 3.48816C7.82442 3.80072 8.00001 4.22464 8.00001 4.66667M8.00001 4.66667V11.3333M8.00001 4.66667C8.00001 4.22464 8.17561 3.80072 8.48817 3.48816C8.80073 3.17559 9.22465 3 9.66668 3C10.1087 3 10.5326 3.17559 10.8452 3.48816C11.1577 3.80072 11.3333 4.22464 11.3333 4.66667L11.3333 11.3333C11.3334 11.6074 11.401 11.8772 11.5303 12.1189C11.6595 12.3606 11.8463 12.5667 12.0742 12.7189C12.3021 12.8711 12.564 12.9648 12.8368 12.9917C13.1095 13.0185 13.3847 12.9777 13.6379 12.8728C13.8911 12.7679 14.1145 12.6022 14.2883 12.3904C14.4622 12.1785 14.5812 11.9271 14.6346 11.6583C14.6881 11.3895 14.6745 11.1116 14.595 10.8494C14.5154 10.5871 14.3724 10.3485 14.1787 10.1547L13.512 9.488"
4
+ stroke="black"
5
+ stroke-width="1"
6
+ stroke-linecap="square"
7
+ stroke-linejoin="round"
8
+ />
9
+ </svg>
@@ -0,0 +1,9 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path
3
+ d="M7.94743 5.54741C9.2912 5.54761 10.5798 6.08161 11.5299 7.03194C12.4799 7.98226 13.0135 9.27107 13.0133 10.6148V10.6133C13.0133 11.9571 12.4795 13.2458 11.5293 14.196C10.5792 15.1462 9.29044 15.68 7.94667 15.68C6.60291 15.68 5.31418 15.1462 4.364 14.196C3.41381 13.2458 2.88 11.9571 2.88 10.6133C2.88021 9.26955 3.41421 7.9809 4.36453 7.03086C5.31486 6.08082 6.60367 5.54721 7.94743 5.54741ZM7.94743 5.54741C6.60367 5.54741 5.31418 5.01284 4.364 4.06265C3.41381 3.11247 2.88 1.82374 2.88 0.47998M7.94743 5.54741C9.2912 5.54741 10.5792 5.01284 11.5293 4.06265C12.4795 3.11247 13.0133 1.82374 13.0133 0.47998"
4
+ stroke="black"
5
+ stroke-width="1"
6
+ stroke-linecap="square"
7
+ stroke-linejoin="round"
8
+ />
9
+ </svg>
@@ -0,0 +1,8 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path
3
+ d="M1.5124 5.84533C1.30895 5.65152 1.15882 5.41291 1.07531 5.15064C0.991799 4.88837 0.977489 4.61054 1.03364 4.34174C1.0898 4.07295 1.21469 3.82149 1.39725 3.60964C1.57981 3.39779 1.8144 3.23208 2.08026 3.1272C2.34612 3.02231 2.63503 2.98148 2.92141 3.00833C3.2078 3.03517 3.48281 3.12886 3.72209 3.2811C3.96138 3.43333 4.15755 3.63942 4.29324 3.8811C4.42893 4.12278 4.49995 4.3926 4.5 4.66667M4.5 4.66667V11.3333M4.5 4.66667C4.5 4.22464 4.68437 3.80072 5.01256 3.48816C5.34075 3.17559 5.78587 3 6.25 3C6.71413 3 7.15925 3.17559 7.48744 3.48816C7.81563 3.80072 8 4.22464 8 4.66667M11.5 6.33333C11.5 5.89131 11.6844 5.46738 12.0126 5.15482C12.3408 4.84226 12.7859 4.66667 13.25 4.66667C13.7141 4.66667 14.1592 4.84226 14.4874 5.15482C14.8156 5.46738 15 5.89131 15 6.33333C15 7.65942 14.4469 8.93119 13.4623 9.86887C12.4777 10.8065 11.1424 11.3333 9.75 11.3333M8 4.66667C8 4.22464 8.18437 3.80072 8.51256 3.48816C8.84075 3.17559 9.28587 3 9.75 3C10.2141 3 10.6592 3.17559 10.9874 3.48816C11.3156 3.80072 11.5 4.22464 11.5 4.66667V11.3333C11.5 12.2533 12.284 13 13.25 13M8 4.66667L8 11.3333"
4
+ stroke="black"
5
+ stroke-width="1"
6
+ stroke-linejoin="round"
7
+ />
8
+ </svg>
package/dist/index.d.ts CHANGED
@@ -75,6 +75,22 @@ declare const SEASONS: {
75
75
  readonly AUTUMN: "autumn";
76
76
  readonly WINTER: "winter";
77
77
  };
78
+ export declare const HEMISPHERES: {
79
+ readonly LOWER: "lower";
80
+ readonly UPPER: "upper";
81
+ };
82
+ export declare const HOUSE_MODALITIES: {
83
+ readonly ANGULAR: "angular";
84
+ readonly SUCCEDENT: "succedent";
85
+ readonly CADENT: "cadent";
86
+ };
87
+ declare const PLANET_TYPE: {
88
+ readonly LUMINARY: "luminary";
89
+ readonly PERSONAL: "personal";
90
+ readonly SOCIAL: "social";
91
+ readonly TRANSPERSONAL: "transpersonal";
92
+ readonly OTHER: "other";
93
+ };
78
94
  declare const dictionaries: {
79
95
  en: Dictionary;
80
96
  es: Dictionary;
@@ -83,14 +99,17 @@ declare const dictionaries: {
83
99
  export type Language = keyof typeof dictionaries;
84
100
  export type ObjectValues<T> = T[keyof T];
85
101
  export type Signs = ObjectValues<typeof SIGNS>;
86
- export type Elements = ObjectValues<typeof ELEMENTS>;
102
+ export type Element = ObjectValues<typeof ELEMENTS>;
87
103
  export type Modalities = ObjectValues<typeof MODALITIES>;
88
104
  export type Planets = ObjectValues<typeof PLANETS>;
89
105
  export type Polarities = ObjectValues<typeof POLARITIES>;
90
106
  export type BodyParts = ObjectValues<typeof BODY_PARTS>;
91
107
  export type Characters = ObjectValues<typeof CHARACTERS>;
92
108
  export type Seasons = ObjectValues<typeof SEASONS>;
93
- export interface Sign extends Record<string, any> {
109
+ export type Hemispheres = ObjectValues<typeof HEMISPHERES>;
110
+ export type HouseModalities = ObjectValues<typeof HOUSE_MODALITIES>;
111
+ export type PlanetType = ObjectValues<typeof PLANET_TYPE>;
112
+ export interface Sign {
94
113
  /**
95
114
  * The body part associated with the zodiac sign.
96
115
  * Indicates the areas of the body influenced by the sign.
@@ -109,7 +128,7 @@ export interface Sign extends Record<string, any> {
109
128
  * Also known as triplicities in astrology.
110
129
  * Examples: "Fire" for Aries, "Earth" for Taurus.
111
130
  */
112
- element: string;
131
+ element: Element;
113
132
  /**
114
133
  * The end date of the zodiac sign period.
115
134
  * This date marks the end of the zodiac sign's influence for the given year.
@@ -164,68 +183,165 @@ export interface Sign extends Record<string, any> {
164
183
  */
165
184
  startDate: Date;
166
185
  }
167
- export interface House extends Record<string, any> {
186
+ export interface House {
187
+ /**
188
+ * Element associated with the house’s natural zodiac sign.
189
+ *
190
+ * Represents one of the four classical elements — Fire, Earth, Air, or Water — reflecting the essential nature and mode of expression of the house.
191
+ *
192
+ * Example: "Fire" for House 1 (Aries), "Earth" for House 2 (Taurus)
193
+ */
194
+ element: Element;
168
195
  /**
169
- * Number of the astrological house (1-12).
170
- * Represents different areas of life experience.
171
- * Example: House 1 (The individual personality), House 7 (Relating).
196
+ * Hemisphere division based on the horizon line.
197
+ *
198
+ * - **Lower/Northern Hemisphere (Houses 1–6):** Known as the *Personal Houses*, these focus on individual development, personal identity, and foundational life needs.
199
+ * - **Upper/Southern Hemisphere (Houses 7–12):** Known as the *Collective Houses*, these reflect relationships with others, society, and broader humanity.
200
+ */
201
+ hemisphere: Hemispheres;
202
+ /**
203
+ * Key themes and associated concepts.
204
+ *
205
+ * Represents the core ideas or psychological themes governed by the house.
206
+ * Example: ['Self-image', 'Identity', 'Impressions on others', 'Personality']
207
+ */
208
+ keywords: string[] | string;
209
+ /**
210
+ * Number of the astrological house (1–12).
211
+ *
212
+ * Each house corresponds to a specific domain of life experience.
213
+ * Example: 1 = Self and identity, 7 = Partnerships and relating.
172
214
  */
173
215
  number: number;
174
216
  /**
175
- * Descriptive title of the house.
176
- * Provides an official or formal name representing the area of life it governs.
177
- * Examples: "The individual personality", "Values and Possessions".
217
+ * Developmental phase grouping.
218
+ *
219
+ * - **Phase I (Houses 1–4):** Focus on self-awareness and personal foundation — the “me-in-here”.
220
+ * - **Phase II (Houses 5–8):** Development of the autonomous self in relationship — the “me” meets the “you”.
221
+ * - **Phase III (Houses 9–12):** Expansion of self toward collective consciousness and universal understanding.
178
222
  */
179
- title: string;
223
+ phase: 1 | 2 | 3;
180
224
  /**
181
- * Zodiac sign associated with this house.
182
- * Represents the natural energy of the house.
183
- * Example: "Aries", "Taurus".
225
+ * Quadrant of the chart based on the intersection of horizon and meridian axes.
226
+ *
227
+ * - **Quadrant I (Houses 1–3):** Formation of personal identity through the body, possessions, and environment.
228
+ * - **Quadrant II (Houses 4–6):** Further development of self via family, creativity, and refinement of skills.
229
+ * - **Quadrant III (Houses 7–9):** Expansion through relationships, transformation, and new vision of self.
230
+ * - **Quadrant IV (Houses 10–12):** Integration into society and pursuit of collective and spiritual purpose.
184
231
  */
185
- sign: string;
232
+ quadrant: 1 | 2 | 3 | 4;
186
233
  /**
187
234
  * Ruling planet of the house.
188
- * Indicates the dominant planetary influence.
189
- * Example: "Mars", "Venus".
235
+ *
236
+ * Indicates the primary planetary influence over the house’s themes.
237
+ * Example: "Mars", "Venus"
190
238
  */
191
239
  rulingPlanet: string;
192
240
  /**
193
- * Representative keywords.
194
- * Fundamental concepts associated.
195
- * Example: ['Self-image', 'Identity', 'Impressions on others', 'Personality'].
241
+ * Zodiac sign associated with the house.
242
+ *
243
+ * Reflects the natural energy or archetype that aligns with the house.
244
+ * Example: "Aries", "Taurus"
196
245
  */
197
- keywords: string[] | string;
246
+ sign: string;
247
+ /**
248
+ * Title or name of the house.
249
+ *
250
+ * A formal or descriptive label that captures the house’s core function or domain.
251
+ * Example: "The Individual Personality", "Values and Possessions"
252
+ */
253
+ title: string;
254
+ /**
255
+ * Modalities of the houses (Angular, Succedent, Cadent).
256
+ *
257
+ * Traditional classification describing the house’s dynamic strength and function:
258
+ * - **Angular (Houses 1, 4, 7, 10):** Active, initiating, most powerful.
259
+ * - **Succedent (Houses 2, 5, 8, 11):** Stabilizing, sustaining what was initiated.
260
+ * - **Cadent (Houses 3, 6, 9, 12):** Transitional, preparatory, often more internal or mental.
261
+ */
262
+ modality: HouseModalities;
263
+ }
264
+ export interface Planet {
265
+ /**
266
+ * The name of the celestial body.
267
+ * Examples: "Sun", "Moon".
268
+ */
269
+ name: string;
270
+ /**
271
+ * The glyph or symbol associated with the celestial body.
272
+ * Examples: "☉" for the Sun, "☽" for the Moon, "♂" for Mars.
273
+ */
274
+ glyph: string;
275
+ /**
276
+ * The type or category of the celestial body.
277
+ * Examples: "Personal", "Luminary".
278
+ */
279
+ type: PlanetType;
198
280
  }
199
281
  export type Dictionary = {
200
- [key in Signs | Elements | Modalities | Planets | Polarities | BodyParts | Characters | Seasons]: string;
282
+ [key in Signs | Element | Modalities | Planets | Polarities | BodyParts | Characters | Seasons | Hemispheres | HouseModalities | PlanetType]: string;
201
283
  } & {
202
284
  houseTitles: string[];
203
285
  houseKeywords: string[][];
204
286
  };
205
287
  /**
206
- * Get the astrological sign by its name with translations for the specified language.
288
+ * Get all astrological houses with their translations for a specified language.
207
289
  *
208
- * @param {Signs} sign - The name of the astrological sign to retrieve.
209
290
  * @param {Language} [lang='en'] - The language code for which translations are needed. Defaults to 'en'.
210
- * @returns {Sign | null} An object representing the sign with translated values or null if the sign or dictionary is not found.
291
+ * @returns {House[]} An array of House objects with translated values based on the specified language.
211
292
  *
212
293
  * @example
213
- * import { getSignByName, SIGNS } from 'western-signs';
294
+ * import { getHouses } from 'western-houses';
214
295
  *
215
- * // Retrieve information about Taurus in English
216
- * const taurusData = getSignByName(SIGNS.TAURUS);
217
- * console.log(taurusData);
296
+ * // Retrieve information about all houses in English
297
+ * const data = getHouses();
298
+ * console.log(data);
218
299
  * // Output:
219
- * // {
220
- * // name: 'Taurus',
221
- * // element: 'Earth',
222
- * // modality: 'Fixed',
223
- * // rulingPlanet: 'Venus',
224
- * // symbol: ''
225
- * // [...]
226
- * // }
300
+ * // [
301
+ * // {
302
+ * // number: 1,
303
+ * // title: 'The individual personality',
304
+ * // sign: 'Aries',
305
+ * // rulingPlanet: 'Mars',
306
+ * // keywords: [
307
+ * // 'Self-image',
308
+ * // 'Identity',
309
+ * // 'Impressions on others',
310
+ * // 'Personality'
311
+ * // ]
312
+ * // },
313
+ * // ...
314
+ * // ]
227
315
  */
228
- export declare function getSignByName(sign: Signs, lang?: Language): Sign | null;
316
+ export declare function getHouses(lang?: Language): House[];
317
+ /**
318
+ * Get all planets with their translated properties for a specified language.
319
+ *
320
+ * @param {Language} [lang='en'] - The language code for which translations are needed. Defaults to `'en'`.
321
+ * @returns {Planet[]} An array of Planet objects with translated values based on the specified language.
322
+ *
323
+ * @example
324
+ * import { getPlanets } from 'western-signs';
325
+ *
326
+ * // Retrieve information about all planets in English
327
+ * const data = getPlanets();
328
+ * console.log(data);
329
+ * // Output:
330
+ * // [
331
+ * // {
332
+ * // name: 'Mercury',
333
+ * // glyph: '☿',
334
+ * // type: 'Personal'
335
+ * // },
336
+ * // {
337
+ * // name: 'Venus',
338
+ * // glyph: '♀',
339
+ * // type: 'Personal'
340
+ * // },
341
+ * // ...
342
+ * // ]
343
+ */
344
+ export declare function getPlanets(lang?: Language): Planet[];
229
345
  /**
230
346
  * Retrieve the astrological sign corresponding to a given date, with optional translations for the specified language.
231
347
  *
@@ -251,6 +367,30 @@ export declare function getSignByName(sign: Signs, lang?: Language): Sign | null
251
367
  * // }
252
368
  */
253
369
  export declare function getSignByDate(date: Date, lang?: Language): Sign | null;
370
+ /**
371
+ * Get the astrological sign by its name with translations for the specified language.
372
+ *
373
+ * @param {Signs} sign - The name of the astrological sign to retrieve.
374
+ * @param {Language} [lang='en'] - The language code for which translations are needed. Defaults to 'en'.
375
+ * @returns {Sign | null} An object representing the sign with translated values or null if the sign or dictionary is not found.
376
+ *
377
+ * @example
378
+ * import { getSignByName, SIGNS } from 'western-signs';
379
+ *
380
+ * // Retrieve information about Taurus in English
381
+ * const taurusData = getSignByName(SIGNS.TAURUS);
382
+ * console.log(taurusData);
383
+ * // Output:
384
+ * // {
385
+ * // name: 'Taurus',
386
+ * // element: 'Earth',
387
+ * // modality: 'Fixed',
388
+ * // rulingPlanet: 'Venus',
389
+ * // symbol: '♉'
390
+ * // [...]
391
+ * // }
392
+ */
393
+ export declare function getSignByName(sign: Signs, lang?: Language): Sign | null;
254
394
  /**
255
395
 
256
396
  * Get all astrological signs with their translations for a specified language.
@@ -284,35 +424,17 @@ export declare function getSignByDate(date: Date, lang?: Language): Sign | null;
284
424
  * // ]
285
425
  */
286
426
  export declare function getSigns(lang?: Language): Sign[];
427
+ export interface SymbolOptions {
428
+ dataUrl?: boolean;
429
+ stroke?: string;
430
+ strokeWidth?: string;
431
+ }
287
432
  /**
288
- * Get all astrological houses with their translations for a specified language.
289
- *
290
- * @param {Language} [lang='en'] - The language code for which translations are needed. Defaults to 'en'.
291
- * @returns {House[]} An array of House objects with translated values based on the specified language.
292
- *
293
- * @example
294
- * import { getHouses } from 'western-houses';
295
- *
296
- * // Retrieve information about all houses in English
297
- * const data = getHouses();
298
- * console.log(data);
299
- * // Output:
300
- * // [
301
- * // {
302
- * // number: 1,
303
- * // title: 'The individual personality',
304
- * // sign: 'Aries',
305
- * // rulingPlanet: 'Mars',
306
- * // keywords: [
307
- * // 'Self-image',
308
- * // 'Identity',
309
- * // 'Impressions on others',
310
- * // 'Personality'
311
- * // ]
312
- * // },
313
- * // ...
314
- * // ]
433
+ * Gets an SVG as a string or as a Data URL, with option to modify attributes.
434
+ * @param {Signs} signName Name of the icon without extension .svg
435
+ * @param {SymbolOptions} options Options to modify attributes or return as a Data URL
436
+ * @returns SVG as string or Data URL
315
437
  */
316
- export declare function getHouses(lang?: Language): House[];
438
+ export declare function getSymbol(signName: Signs, options?: SymbolOptions): string;
317
439
 
318
440
  export {};
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- var x=Object.create;var{getPrototypeOf:F,defineProperty:y,getOwnPropertyNames:j}=Object;var W=Object.prototype.hasOwnProperty;var z=(e,a,n)=>{n=e!=null?x(F(e)):{};let r=a||!e||!e.__esModule?y(n,"default",{value:e,enumerable:!0}):n;for(let m of j(e))if(!W.call(r,m))y(r,m,{get:()=>e[m],enumerable:!0});return r};var I=(e,a)=>()=>(a||e((a={exports:{}}).exports,a),a.exports);var R=I((se,P)=>{var Y={aa:{name:"Afar",nativeName:"Afaraf"},ab:{name:"Abkhaz",nativeName:"аҧсуа бызшәа"},ae:{name:"Avestan",nativeName:"avesta"},af:{name:"Afrikaans",nativeName:"Afrikaans"},ak:{name:"Akan",nativeName:"Akan"},am:{name:"Amharic",nativeName:"አማርኛ"},an:{name:"Aragonese",nativeName:"aragonés"},ar:{name:"Arabic",nativeName:"العربية"},as:{name:"Assamese",nativeName:"অসমীয়া"},av:{name:"Avaric",nativeName:"авар мацӀ"},ay:{name:"Aymara",nativeName:"aymar aru"},az:{name:"Azerbaijani",nativeName:"azərbaycan dili"},ba:{name:"Bashkir",nativeName:"башҡорт теле"},be:{name:"Belarusian",nativeName:"беларуская мова"},bg:{name:"Bulgarian",nativeName:"български език"},bi:{name:"Bislama",nativeName:"Bislama"},bm:{name:"Bambara",nativeName:"bamanankan"},bn:{name:"Bengali",nativeName:"বাংলা"},bo:{name:"Tibetan",nativeName:"བོད་ཡིག"},br:{name:"Breton",nativeName:"brezhoneg"},bs:{name:"Bosnian",nativeName:"bosanski jezik"},ca:{name:"Catalan",nativeName:"Català"},ce:{name:"Chechen",nativeName:"нохчийн мотт"},ch:{name:"Chamorro",nativeName:"Chamoru"},co:{name:"Corsican",nativeName:"corsu"},cr:{name:"Cree",nativeName:"ᓀᐦᐃᔭᐍᐏᐣ"},cs:{name:"Czech",nativeName:"Čeština"},cu:{name:"Old Church Slavonic",nativeName:"ѩзыкъ словѣньскъ"},cv:{name:"Chuvash",nativeName:"чӑваш чӗлхи"},cy:{name:"Welsh",nativeName:"Cymraeg"},da:{name:"Danish",nativeName:"Dansk"},de:{name:"German",nativeName:"Deutsch"},dv:{name:"Divehi",nativeName:"ދިވެހި"},dz:{name:"Dzongkha",nativeName:"རྫོང་ཁ"},ee:{name:"Ewe",nativeName:"Eʋegbe"},el:{name:"Greek",nativeName:"Ελληνικά"},en:{name:"English",nativeName:"English"},eo:{name:"Esperanto",nativeName:"Esperanto"},es:{name:"Spanish",nativeName:"Español"},et:{name:"Estonian",nativeName:"eesti"},eu:{name:"Basque",nativeName:"euskara"},fa:{name:"Persian",nativeName:"فارسی"},ff:{name:"Fula",nativeName:"Fulfulde"},fi:{name:"Finnish",nativeName:"suomi"},fj:{name:"Fijian",nativeName:"vosa Vakaviti"},fo:{name:"Faroese",nativeName:"Føroyskt"},fr:{name:"French",nativeName:"Français"},fy:{name:"Western Frisian",nativeName:"Frysk"},ga:{name:"Irish",nativeName:"Gaeilge"},gd:{name:"Scottish Gaelic",nativeName:"Gàidhlig"},gl:{name:"Galician",nativeName:"galego"},gn:{name:"Guaraní",nativeName:"Avañe'ẽ"},gu:{name:"Gujarati",nativeName:"ગુજરાતી"},gv:{name:"Manx",nativeName:"Gaelg"},ha:{name:"Hausa",nativeName:"هَوُسَ"},he:{name:"Hebrew",nativeName:"עברית"},hi:{name:"Hindi",nativeName:"हिन्दी"},ho:{name:"Hiri Motu",nativeName:"Hiri Motu"},hr:{name:"Croatian",nativeName:"Hrvatski"},ht:{name:"Haitian",nativeName:"Kreyòl ayisyen"},hu:{name:"Hungarian",nativeName:"magyar"},hy:{name:"Armenian",nativeName:"Հայերեն"},hz:{name:"Herero",nativeName:"Otjiherero"},ia:{name:"Interlingua",nativeName:"Interlingua"},id:{name:"Indonesian",nativeName:"Bahasa Indonesia"},ie:{name:"Interlingue",nativeName:"Interlingue"},ig:{name:"Igbo",nativeName:"Asụsụ Igbo"},ii:{name:"Nuosu",nativeName:"ꆈꌠ꒿ Nuosuhxop"},ik:{name:"Inupiaq",nativeName:"Iñupiaq"},io:{name:"Ido",nativeName:"Ido"},is:{name:"Icelandic",nativeName:"Íslenska"},it:{name:"Italian",nativeName:"Italiano"},iu:{name:"Inuktitut",nativeName:"ᐃᓄᒃᑎᑐᑦ"},ja:{name:"Japanese",nativeName:"日本語"},jv:{name:"Javanese",nativeName:"basa Jawa"},ka:{name:"Georgian",nativeName:"ქართული"},kg:{name:"Kongo",nativeName:"Kikongo"},ki:{name:"Kikuyu",nativeName:"Gĩkũyũ"},kj:{name:"Kwanyama",nativeName:"Kuanyama"},kk:{name:"Kazakh",nativeName:"қазақ тілі"},kl:{name:"Kalaallisut",nativeName:"kalaallisut"},km:{name:"Khmer",nativeName:"ខេមរភាសា"},kn:{name:"Kannada",nativeName:"ಕನ್ನಡ"},ko:{name:"Korean",nativeName:"한국어"},kr:{name:"Kanuri",nativeName:"Kanuri"},ks:{name:"Kashmiri",nativeName:"कश्मीरी"},ku:{name:"Kurdish",nativeName:"Kurdî"},kv:{name:"Komi",nativeName:"коми кыв"},kw:{name:"Cornish",nativeName:"Kernewek"},ky:{name:"Kyrgyz",nativeName:"Кыргызча"},la:{name:"Latin",nativeName:"latine"},lb:{name:"Luxembourgish",nativeName:"Lëtzebuergesch"},lg:{name:"Ganda",nativeName:"Luganda"},li:{name:"Limburgish",nativeName:"Limburgs"},ln:{name:"Lingala",nativeName:"Lingála"},lo:{name:"Lao",nativeName:"ພາສາລາວ"},lt:{name:"Lithuanian",nativeName:"lietuvių kalba"},lu:{name:"Luba-Katanga",nativeName:"Kiluba"},lv:{name:"Latvian",nativeName:"latviešu valoda"},mg:{name:"Malagasy",nativeName:"fiteny malagasy"},mh:{name:"Marshallese",nativeName:"Kajin M̧ajeļ"},mi:{name:"Māori",nativeName:"te reo Māori"},mk:{name:"Macedonian",nativeName:"македонски јазик"},ml:{name:"Malayalam",nativeName:"മലയാളം"},mn:{name:"Mongolian",nativeName:"Монгол хэл"},mr:{name:"Marathi",nativeName:"मराठी"},ms:{name:"Malay",nativeName:"Bahasa Melayu"},mt:{name:"Maltese",nativeName:"Malti"},my:{name:"Burmese",nativeName:"ဗမာစာ"},na:{name:"Nauru",nativeName:"Dorerin Naoero"},nb:{name:"Norwegian Bokmål",nativeName:"Norsk bokmål"},nd:{name:"Northern Ndebele",nativeName:"isiNdebele"},ne:{name:"Nepali",nativeName:"नेपाली"},ng:{name:"Ndonga",nativeName:"Owambo"},nl:{name:"Dutch",nativeName:"Nederlands"},nn:{name:"Norwegian Nynorsk",nativeName:"Norsk nynorsk"},no:{name:"Norwegian",nativeName:"Norsk"},nr:{name:"Southern Ndebele",nativeName:"isiNdebele"},nv:{name:"Navajo",nativeName:"Diné bizaad"},ny:{name:"Chichewa",nativeName:"chiCheŵa"},oc:{name:"Occitan",nativeName:"occitan"},oj:{name:"Ojibwe",nativeName:"ᐊᓂᔑᓈᐯᒧᐎᓐ"},om:{name:"Oromo",nativeName:"Afaan Oromoo"},or:{name:"Oriya",nativeName:"ଓଡ଼ିଆ"},os:{name:"Ossetian",nativeName:"ирон æвзаг"},pa:{name:"Panjabi",nativeName:"ਪੰਜਾਬੀ"},pi:{name:"Pāli",nativeName:"पाऴि"},pl:{name:"Polish",nativeName:"Polski"},ps:{name:"Pashto",nativeName:"پښتو"},pt:{name:"Portuguese",nativeName:"Português"},qu:{name:"Quechua",nativeName:"Runa Simi"},rm:{name:"Romansh",nativeName:"rumantsch grischun"},rn:{name:"Kirundi",nativeName:"Ikirundi"},ro:{name:"Romanian",nativeName:"Română"},ru:{name:"Russian",nativeName:"Русский"},rw:{name:"Kinyarwanda",nativeName:"Ikinyarwanda"},sa:{name:"Sanskrit",nativeName:"संस्कृतम्"},sc:{name:"Sardinian",nativeName:"sardu"},sd:{name:"Sindhi",nativeName:"सिन्धी"},se:{name:"Northern Sami",nativeName:"Davvisámegiella"},sg:{name:"Sango",nativeName:"yângâ tî sängö"},si:{name:"Sinhala",nativeName:"සිංහල"},sk:{name:"Slovak",nativeName:"Slovenčina"},sl:{name:"Slovenian",nativeName:"slovenščina"},sm:{name:"Samoan",nativeName:"gagana fa'a Samoa"},sn:{name:"Shona",nativeName:"chiShona"},so:{name:"Somali",nativeName:"Soomaaliga"},sq:{name:"Albanian",nativeName:"Shqip"},sr:{name:"Serbian",nativeName:"српски језик"},ss:{name:"Swati",nativeName:"SiSwati"},st:{name:"Southern Sotho",nativeName:"Sesotho"},su:{name:"Sundanese",nativeName:"Basa Sunda"},sv:{name:"Swedish",nativeName:"Svenska"},sw:{name:"Swahili",nativeName:"Kiswahili"},ta:{name:"Tamil",nativeName:"தமிழ்"},te:{name:"Telugu",nativeName:"తెలుగు"},tg:{name:"Tajik",nativeName:"тоҷикӣ"},th:{name:"Thai",nativeName:"ไทย"},ti:{name:"Tigrinya",nativeName:"ትግርኛ"},tk:{name:"Turkmen",nativeName:"Türkmençe"},tl:{name:"Tagalog",nativeName:"Wikang Tagalog"},tn:{name:"Tswana",nativeName:"Setswana"},to:{name:"Tonga",nativeName:"faka Tonga"},tr:{name:"Turkish",nativeName:"Türkçe"},ts:{name:"Tsonga",nativeName:"Xitsonga"},tt:{name:"Tatar",nativeName:"татар теле"},tw:{name:"Twi",nativeName:"Twi"},ty:{name:"Tahitian",nativeName:"Reo Tahiti"},ug:{name:"Uyghur",nativeName:"ئۇيغۇرچە‎"},uk:{name:"Ukrainian",nativeName:"Українська"},ur:{name:"Urdu",nativeName:"اردو"},uz:{name:"Uzbek",nativeName:"Ўзбек"},ve:{name:"Venda",nativeName:"Tshivenḓa"},vi:{name:"Vietnamese",nativeName:"Tiếng Việt"},vo:{name:"Volapük",nativeName:"Volapük"},wa:{name:"Walloon",nativeName:"walon"},wo:{name:"Wolof",nativeName:"Wollof"},xh:{name:"Xhosa",nativeName:"isiXhosa"},yi:{name:"Yiddish",nativeName:"ייִדיש"},yo:{name:"Yoruba",nativeName:"Yorùbá"},za:{name:"Zhuang",nativeName:"Saɯ cueŋƅ"},zh:{name:"Chinese",nativeName:"中文"},zu:{name:"Zulu",nativeName:"isiZulu"}};P.exports=Y});var U=I((oe,w)=>{var h=R(),b={},d={},C=[],k=[],L=[];for(let e in h){let{name:a,nativeName:n}=h[e];b[e]=d[a.toLowerCase()]=d[n.toLowerCase()]={code:e,name:a,nativeName:n},C.push(e),k.push(a),L.push(n)}w.exports=class e{static getLanguages(a=[]){return a.map((n)=>e.validate(n)?Object.assign({},b[n]):{code:n,name:"",nativeName:""})}static getName(a){return e.validate(a)?h[a].name:""}static getAllNames(){return k.slice()}static getNativeName(a){return e.validate(a)?h[a].nativeName:""}static getAllNativeNames(){return L.slice()}static getCode(a){return a=a.toLowerCase(),d.hasOwnProperty(a)?d[a].code:""}static getAllCodes(){return C.slice()}static validate(a){return h.hasOwnProperty(a)}}});var i={ARIES:"aries",TAURUS:"taurus",GEMINI:"gemini",CANCER:"cancer",LEO:"leo",VIRGO:"virgo",LIBRA:"libra",SCORPIO:"scorpio",SAGITTARIUS:"sagittarius",CAPRICORN:"capricorn",AQUARIUS:"aquarius",PISCES:"pisces"},t={MARS:"mars",VENUS:"venus",MERCURY:"mercury",MOON:"moon",SUN:"sun",PLUTO:"pluto",JUPITER:"jupiter",SATURN:"saturn",URANUS:"uranus",NEPTUNE:"neptune"},s={CARDINAL:"cardinal",FIXED:"fixed",MUTABLE:"mutable"},o={FIRE:"fire",EARTH:"earth",AIR:"air",WATER:"water"},l={POSITIVE:"positive",NEGATIVE:"negative"},u={HEAD:"head",THROAT:"throat",LUNGS:"lungs",STOMACH:"stomach",HEART:"heart",BOWELS:"bowels",REINS:"reins",SECRETS:"secrets",THIGHS:"thighs",KNEES:"knees",ANKLES:"ankles",FEET:"feet"},N={RAM:"ram",BULL:"bull",TWINS:"twins",CRAB:"crab",LION:"lion",VIRGIN:"virgin",BALANCE:"balance",SCORPION:"scorpion",ARCHER:"archer",GOAT:"goat",THE_MAN:"the-man",THE_FISHES:"the-fishes"},c={SPRING:"spring",SUMMER:"summer",AUTUMN:"autumn",WINTER:"winter"},v=["houseTitles-1","houseTitles-2","houseTitles-3","houseTitles-4","houseTitles-5","houseTitles-6","houseTitles-7","houseTitles-8","houseTitles-9","houseTitles-10","houseTitles-11","houseTitles-12"],S=["houseKeywords-1","houseKeywords-2","houseKeywords-3","houseKeywords-4","houseKeywords-5","houseKeywords-6","houseKeywords-7","houseKeywords-8","housKeywordss-9","houseKeywords-10","houseKeywords-11","houseKeywords-12"];var q={aries:{bodyPart:u.HEAD,character:N.RAM,element:o.FIRE,endDate:new Date(2020,3,20),glyph:"♈",modality:s.CARDINAL,name:i.ARIES,number:1,pole:l.POSITIVE,rulingPlanet:t.MARS,season:c.SPRING,startDate:new Date(2020,2,20)},taurus:{bodyPart:u.THROAT,character:N.BULL,element:o.EARTH,endDate:new Date(2020,4,21),glyph:"♉",modality:s.FIXED,name:i.TAURUS,number:2,pole:l.NEGATIVE,rulingPlanet:t.VENUS,season:c.SPRING,startDate:new Date(2020,3,21)},gemini:{bodyPart:u.LUNGS,character:N.TWINS,element:o.AIR,endDate:new Date(2020,5,22),glyph:"♊",modality:s.MUTABLE,name:i.GEMINI,number:3,pole:l.POSITIVE,rulingPlanet:t.MERCURY,season:c.SPRING,startDate:new Date(2020,4,22)},cancer:{bodyPart:u.STOMACH,character:N.CRAB,element:o.WATER,endDate:new Date(2020,6,22),glyph:"♋",modality:s.CARDINAL,name:i.CANCER,number:4,pole:l.NEGATIVE,rulingPlanet:t.MOON,season:c.SUMMER,startDate:new Date(2020,5,23)},leo:{bodyPart:u.HEART,character:N.LION,element:o.FIRE,endDate:new Date(2020,7,22),glyph:"♌",modality:s.FIXED,name:i.LEO,number:5,pole:l.POSITIVE,rulingPlanet:t.SUN,season:c.SUMMER,startDate:new Date(2020,6,23)},virgo:{bodyPart:u.BOWELS,character:N.VIRGIN,element:o.EARTH,endDate:new Date(2020,8,22),glyph:"♍",modality:s.MUTABLE,name:i.VIRGO,number:6,pole:l.NEGATIVE,rulingPlanet:t.MERCURY,season:c.SUMMER,startDate:new Date(2020,7,23)},libra:{bodyPart:u.REINS,character:N.BALANCE,element:o.AIR,endDate:new Date(2020,9,22),glyph:"♎",modality:s.CARDINAL,name:i.LIBRA,number:7,pole:l.POSITIVE,rulingPlanet:t.VENUS,season:c.AUTUMN,startDate:new Date(2020,8,23)},scorpio:{bodyPart:u.SECRETS,character:N.SCORPION,element:o.WATER,endDate:new Date(2020,10,22),glyph:"♏",modality:s.FIXED,name:i.SCORPIO,number:8,pole:l.NEGATIVE,rulingPlanet:t.PLUTO,season:c.AUTUMN,startDate:new Date(2020,9,23)},sagittarius:{bodyPart:u.THIGHS,character:N.ARCHER,element:o.FIRE,endDate:new Date(2020,11,22),glyph:"♐",modality:s.MUTABLE,name:i.SAGITTARIUS,number:9,pole:l.POSITIVE,rulingPlanet:t.JUPITER,season:c.AUTUMN,startDate:new Date(2020,10,23)},capricorn:{bodyPart:u.KNEES,character:N.GOAT,element:o.EARTH,endDate:new Date(2021,0,21),glyph:"♑",modality:s.CARDINAL,name:i.CAPRICORN,number:10,pole:l.NEGATIVE,rulingPlanet:t.SATURN,season:c.WINTER,startDate:new Date(2020,11,23)},aquarius:{bodyPart:u.ANKLES,character:N.THE_MAN,element:o.AIR,endDate:new Date(2020,1,20),glyph:"♒",modality:s.FIXED,name:i.AQUARIUS,number:11,pole:l.POSITIVE,rulingPlanet:t.URANUS,season:c.WINTER,startDate:new Date(2020,0,22)},pisces:{bodyPart:u.FEET,character:N.THE_FISHES,element:o.WATER,endDate:new Date(2020,2,19),glyph:"♓",modality:s.MUTABLE,name:i.PISCES,number:12,pole:l.NEGATIVE,rulingPlanet:t.NEPTUNE,season:c.WINTER,startDate:new Date(2020,1,21)}},A=q;var G=z(U(),1);var _={aries:"Aries",taurus:"Taurus",gemini:"Gemini",cancer:"Cancer",leo:"Leo",virgo:"Virgo",libra:"Libra",scorpio:"Scorpio",sagittarius:"Sagittarius",capricorn:"Capricorn",aquarius:"Aquarius",pisces:"Pisces",fire:"Fire",earth:"Earth",air:"Air",water:"Water",cardinal:"Cardinal",fixed:"Fixed",mutable:"Mutable",mars:"Mars",venus:"Venus",mercury:"Mercury",moon:"Moon",sun:"Sun",pluto:"Pluto",jupiter:"Jupiter",saturn:"Saturn",uranus:"Uranus",neptune:"Neptune",positive:"Positive",negative:"Negative",head:"Head",throat:"Throat",lungs:"Lungs",stomach:"Stomach",heart:"Heart",bowels:"Bowels",reins:"Reins",secrets:"Secrets",thighs:"Thighs",knees:"Knees",ankles:"Ankles",feet:"Feet",ram:"Ram",bull:"Bull",twins:"Twins",crab:"Crab",lion:"Lion",virgin:"Virgin",balance:"Balance",scorpion:"Scorpion",archer:"Archer",goat:"Goat","the-man":"The Man","the-fishes":"The Fishes",spring:"Spring",summer:"Summer",autumn:"Autumn",winter:"Winter",houseTitles:["The individual personality","Values and Possessions","Communication","Roots and Origins","Pleasure and Creativity","Work and Routine","Relating","Loss and Common Property","Philosophies and Far Countries","Occupation and Calling","Friends and Acquaintances","Beyond the Personal"],houseKeywords:[["Self-image","Identity","Impressions on others","Personality"],["Personal resources","Values","Security","Possessions"],["Surroundings","Siblings","Communication","Knowledge"],["Home","Family","The Past","Roots"],["Children","Creativity","Expression","Pleasure"],["Routines","Service","Health","Productivity"],["Partnerships","Relationships","Balance","Collaboration"],["Transformations","Crises","Beginnings","Rebirth"],["Philosophy","Travel","Openness","Wisdom"],["Public","Legacy","Career","Ambition"],["Friends","Community","Dreams","Aspirations"],["Unconscious","Fantasies","Connections","Healing"]]},O=_;var J={aries:"Aries",taurus:"Tauro",gemini:"Géminis",cancer:"Cáncer",leo:"Leo",virgo:"Virgo",libra:"Libra",scorpio:"Escorpio",sagittarius:"Sagitario",capricorn:"Capricornio",aquarius:"Acuario",pisces:"Piscis",fire:"Fuego",earth:"Tierra",air:"Aire",water:"Agua",cardinal:"Cardinal",fixed:"Fijo",mutable:"Mutable",mars:"Marte",venus:"Venus",mercury:"Mercurio",moon:"Luna",sun:"Sol",pluto:"Plutón",jupiter:"Júpiter",saturn:"Saturno",uranus:"Urano",neptune:"Neptuno",positive:"Positivo",negative:"Negativo",head:"Cabeza",throat:"Garganta",lungs:"Pulmones",stomach:"Estómago",heart:"Corazón",bowels:"Intestinos",reins:"Riñones",secrets:"Genitales",thighs:"Muslos",knees:"Rodillas",ankles:"Tobillos",feet:"Pies",ram:"Carnero",bull:"Toro",twins:"Gemelos",crab:"Cangrejo",lion:"León",virgin:"Virgen",balance:"Balanza",scorpion:"Escorpión",archer:"Arquero",goat:"Cabra","the-man":"El Hombre","the-fishes":"Los Peces",spring:"Primavera",summer:"Verano",autumn:"Otoño",winter:"Invierno",houseTitles:["La personalidad individual","Valores y Posesiones","Comunicación","Raíces y Orígenes","Placer y Creatividad","Trabajo y Rutina","Relacionarse","Pérdida y Propiedad Común","Filosofías y Países Lejanos","Ocupación y Vocación","Amigos y Conocidos","Más Allá de lo Personal"],houseKeywords:[["Autoimagen","Identidad","Impresiones en los demás","Personalidad"],["Recursos personales","Valores","Seguridad","Posesiones"],["Entorno","Hermanos","Comunicación","Conocimiento"],["Hogar","Familia","El pasado","Raíces"],["Niños","Creatividad","Expresión","Placer"],["Rutinas","Servicio","Salud","Productividad"],["Asociaciones","Relaciones","Equilibrio","Colaboración"],["Transformaciones","Crisis","Inicios","Renacimiento"],["Filosofía","Viajes","Apertura","Sabiduría"],["Público","Legado","Carrera","Ambición"],["Amigos","Comunidad","Sueños","Aspiraciones"],["Inconsciente","Fantasías","Conexiones","Sanación"]]},M=J;var X={aries:"Àries",taurus:"Taure",gemini:"Bessons",cancer:"Cranc",leo:"Lleó",virgo:"Verge",libra:"Balança",scorpio:"Escorpió",sagittarius:"Sagitari",capricorn:"Capricorn",aquarius:"Aquari",pisces:"Peixos",fire:"Foc",earth:"Terra",air:"Aire",water:"Aigua",cardinal:"Cardinal",fixed:"Fix",mutable:"Mutable",mars:"Mart",venus:"Venus",mercury:"Mercuri",moon:"Lluna",sun:"Sol",pluto:"Plutó",jupiter:"Júpiter",saturn:"Saturn",uranus:"Urà",neptune:"Neptú",positive:"Positiu",negative:"Negatiu",head:"Cap",throat:"Gola",lungs:"Pulmons",stomach:"Estómac",heart:"Cor",bowels:"Intestins",reins:"Ronyons",secrets:"Genitals",thighs:"Cuixes",knees:"Genolls",ankles:"Turmells",feet:"Peus",ram:"Carner",bull:"Bou",twins:"Bessons",crab:"Cranc",lion:"Lleó",virgin:"Verge",balance:"Balança",scorpion:"Escorpí",archer:"Arquer",goat:"Cabra","the-man":"L'Home","the-fishes":"Els Peixos",spring:"Primavera",summer:"Estiu",autumn:"Tardor",winter:"Hivern",houseTitles:["La personalitat individual","Valors i possessions","Comunicació","Arrels i orígens","Plaer i creativitat","Feina i rutina","Relacionar-se","Pèrdua i propietat comuna","Filosofia i països llunyans","Ocupació i vocació","Amics i coneguts","Més enllà del personal"],houseKeywords:[["Autoimatge","Identitat","Impressions als altres","Personalitat"],["Recursos personals","Valors","Seguretat","Possessions"],["Entorn","Germans","Comunicació","Coneixement"],["Llar","Família","El passat","Arrels"],["Infants","Creativitat","Expressió","Plaer"],["Rutines","Servei","Salut","Productivitat"],["Associacions","Relacions","Equilibri","Col·laboració"],["Transformacions","Crisi","Inicis","Renaixement"],["Filosofia","Viatges","Obertura","Saviesa"],["Públic","Llegat","Carrera","Ambició"],["Amics","Comunitat","Somnis","Aspiracions"],["Inconscient","Fantasies","Connexions","Sanació"]]},D=X;var p={en:O,es:M,ca:D};var he=G.default.getName;function T(e,a){let n=p[a];return{bodyPart:n[e.bodyPart],character:n[e.character],element:n[e.element],endDate:e.endDate,glyph:e.glyph,modality:n[e.modality],name:n[e.name],number:e.number,pole:n[e.pole],rulingPlanet:n[e.rulingPlanet],season:n[e.season],startDate:e.startDate}}function f(e,a,n){let r=n.getMonth()+1,m=n.getDate(),E=e.getMonth()+1,V=e.getDate(),g=a.getMonth()+1,B=a.getDate();return r===E&&m>=V||r===g&&m<=B||E>g&&(r>E||r<g)}function H(e,a){let n=p[a],[,r]=e.title.split("-"),[,m]=e.keywords.split("-");return{number:e.number,title:n.houseTitles[Number(r)-1],sign:n[e.sign],rulingPlanet:n[e.rulingPlanet],keywords:n.houseKeywords[Number(m)-1]}}function Q(e,a="en"){let n=A[e];if(!n)return null;return T(n,a)}function Z(e,a="en"){if(!(e instanceof Date))throw new Error("Invalid date");for(let n of Object.keys(A)){let r=A[n],{startDate:m,endDate:E}=r;if(f(m,E,e))return T(r,a)}return null}function $(e="en"){return Object.keys(A).map((a)=>{let n={};return Object.entries(A[a]).forEach(([r,m])=>{let E=p[e][m];n[r]=E??m}),n})}var ee=[{number:1,sign:i.ARIES,rulingPlanet:t.MARS,title:v[0],keywords:S[0]},{number:2,sign:i.TAURUS,rulingPlanet:t.VENUS,title:v[1],keywords:S[1]},{number:3,sign:i.GEMINI,rulingPlanet:t.MERCURY,title:v[2],keywords:S[2]},{number:4,sign:i.CANCER,rulingPlanet:t.MOON,title:v[3],keywords:S[3]},{number:5,sign:i.LEO,rulingPlanet:t.SUN,title:v[4],keywords:S[4]},{number:6,sign:i.VIRGO,rulingPlanet:t.MERCURY,title:v[5],keywords:S[5]},{number:7,sign:i.LIBRA,rulingPlanet:t.VENUS,title:v[6],keywords:S[6]},{number:8,sign:i.SCORPIO,rulingPlanet:t.PLUTO,title:v[7],keywords:S[7]},{number:9,sign:i.SAGITTARIUS,rulingPlanet:t.JUPITER,title:v[8],keywords:S[8]},{number:10,sign:i.CAPRICORN,rulingPlanet:t.SATURN,title:v[9],keywords:S[9]},{number:11,sign:i.AQUARIUS,rulingPlanet:t.URANUS,title:v[10],keywords:S[10]},{number:12,sign:i.PISCES,rulingPlanet:t.NEPTUNE,title:v[11],keywords:S[11]}],K=ee;function ae(e="en"){return K.map((a)=>{return H(a,e)})}export{$ as getSigns,Q as getSignByName,Z as getSignByDate,ae as getHouses,i as SIGNS,t as PLANETS,s as MODALITIES,o as ELEMENTS};
1
+ var a={ARIES:"aries",TAURUS:"taurus",GEMINI:"gemini",CANCER:"cancer",LEO:"leo",VIRGO:"virgo",LIBRA:"libra",SCORPIO:"scorpio",SAGITTARIUS:"sagittarius",CAPRICORN:"capricorn",AQUARIUS:"aquarius",PISCES:"pisces"},r={MARS:"mars",VENUS:"venus",MERCURY:"mercury",MOON:"moon",SUN:"sun",PLUTO:"pluto",JUPITER:"jupiter",SATURN:"saturn",URANUS:"uranus",NEPTUNE:"neptune"},i={CARDINAL:"cardinal",FIXED:"fixed",MUTABLE:"mutable"},n={FIRE:"fire",EARTH:"earth",AIR:"air",WATER:"water"},E={POSITIVE:"positive",NEGATIVE:"negative"},m={HEAD:"head",THROAT:"throat",LUNGS:"lungs",STOMACH:"stomach",HEART:"heart",BOWELS:"bowels",REINS:"reins",SECRETS:"secrets",THIGHS:"thighs",KNEES:"knees",ANKLES:"ankles",FEET:"feet"},A={RAM:"ram",BULL:"bull",TWINS:"twins",CRAB:"crab",LION:"lion",VIRGIN:"virgin",BALANCE:"balance",SCORPION:"scorpion",ARCHER:"archer",GOAT:"goat",THE_MAN:"the-man",THE_FISHES:"the-fishes"},S={SPRING:"spring",SUMMER:"summer",AUTUMN:"autumn",WINTER:"winter"},p=["houseTitles-1","houseTitles-2","houseTitles-3","houseTitles-4","houseTitles-5","houseTitles-6","houseTitles-7","houseTitles-8","houseTitles-9","houseTitles-10","houseTitles-11","houseTitles-12"],R=["houseKeywords-1","houseKeywords-2","houseKeywords-3","houseKeywords-4","houseKeywords-5","houseKeywords-6","houseKeywords-7","houseKeywords-8","housKeywordss-9","houseKeywords-10","houseKeywords-11","houseKeywords-12"],l={LOWER:"lower",UPPER:"upper"},c={ANGULAR:"angular",SUCCEDENT:"succedent",CADENT:"cadent"},P={LUMINARY:"luminary",PERSONAL:"personal",SOCIAL:"social",TRANSPERSONAL:"transpersonal",OTHER:"other"};var x=[{element:n.FIRE,hemisphere:l.LOWER,keywords:R[0],number:1,phase:1,quadrant:1,rulingPlanet:r.MARS,sign:a.ARIES,title:p[0],modality:c.ANGULAR},{element:n.EARTH,hemisphere:l.LOWER,keywords:R[1],modality:c.SUCCEDENT,number:2,phase:1,quadrant:1,rulingPlanet:r.VENUS,sign:a.TAURUS,title:p[1]},{element:n.AIR,hemisphere:l.LOWER,keywords:R[2],modality:c.CADENT,number:3,phase:1,quadrant:1,rulingPlanet:r.MERCURY,sign:a.GEMINI,title:p[2]},{element:n.WATER,hemisphere:l.LOWER,keywords:R[3],modality:c.ANGULAR,number:4,phase:1,quadrant:2,rulingPlanet:r.MOON,sign:a.CANCER,title:p[3]},{element:n.FIRE,hemisphere:l.LOWER,keywords:R[4],modality:c.SUCCEDENT,number:5,phase:2,quadrant:2,rulingPlanet:r.SUN,sign:a.LEO,title:p[4]},{element:n.EARTH,hemisphere:l.LOWER,keywords:R[5],modality:c.CADENT,number:6,phase:2,quadrant:2,rulingPlanet:r.MERCURY,sign:a.VIRGO,title:p[5]},{element:n.AIR,hemisphere:l.UPPER,keywords:R[6],modality:c.ANGULAR,number:7,phase:2,quadrant:3,rulingPlanet:r.VENUS,sign:a.LIBRA,title:p[6]},{element:n.WATER,hemisphere:l.UPPER,keywords:R[7],modality:c.SUCCEDENT,number:8,phase:2,quadrant:3,rulingPlanet:r.PLUTO,sign:a.SCORPIO,title:p[7]},{element:n.FIRE,hemisphere:l.UPPER,keywords:R[8],modality:c.CADENT,number:9,phase:3,quadrant:3,rulingPlanet:r.JUPITER,sign:a.SAGITTARIUS,title:p[8]},{element:n.EARTH,hemisphere:l.UPPER,keywords:R[9],modality:c.ANGULAR,number:10,phase:3,quadrant:4,rulingPlanet:r.SATURN,sign:a.CAPRICORN,title:p[9]},{element:n.AIR,hemisphere:l.UPPER,keywords:R[10],modality:c.SUCCEDENT,number:11,phase:3,quadrant:4,rulingPlanet:r.URANUS,sign:a.AQUARIUS,title:p[10]},{element:n.WATER,hemisphere:l.UPPER,keywords:R[11],modality:c.CADENT,number:12,phase:3,quadrant:4,rulingPlanet:r.NEPTUNE,sign:a.PISCES,title:p[11]}],h=x;var g={aries:"Aries",taurus:"Taurus",gemini:"Gemini",cancer:"Cancer",leo:"Leo",virgo:"Virgo",libra:"Libra",scorpio:"Scorpio",sagittarius:"Sagittarius",capricorn:"Capricorn",aquarius:"Aquarius",pisces:"Pisces",fire:"Fire",earth:"Earth",air:"Air",water:"Water",cardinal:"Cardinal",fixed:"Fixed",mutable:"Mutable",mars:"Mars",venus:"Venus",mercury:"Mercury",moon:"Moon",sun:"Sun",pluto:"Pluto",jupiter:"Jupiter",saturn:"Saturn",uranus:"Uranus",neptune:"Neptune",positive:"Positive",negative:"Negative",head:"Head",throat:"Throat",lungs:"Lungs",stomach:"Stomach",heart:"Heart",bowels:"Bowels",reins:"Reins",secrets:"Secrets",thighs:"Thighs",knees:"Knees",ankles:"Ankles",feet:"Feet",ram:"Ram",bull:"Bull",twins:"Twins",crab:"Crab",lion:"Lion",virgin:"Virgin",balance:"Balance",scorpion:"Scorpion",archer:"Archer",goat:"Goat","the-man":"The Man","the-fishes":"The Fishes",spring:"Spring",summer:"Summer",autumn:"Autumn",winter:"Winter",houseTitles:["The individual personality","Values and Possessions","Communication","Roots and Origins","Pleasure and Creativity","Work and Routine","Relating","Loss and Common Property","Philosophies and Far Countries","Occupation and Calling","Friends and Acquaintances","Beyond the Personal"],houseKeywords:[["Self-image","Identity","Impressions on others","Personality"],["Personal resources","Values","Security","Possessions"],["Surroundings","Siblings","Communication","Knowledge"],["Home","Family","The Past","Roots"],["Children","Creativity","Expression","Pleasure"],["Routines","Service","Health","Productivity"],["Partnerships","Relationships","Balance","Collaboration"],["Transformations","Crises","Beginnings","Rebirth"],["Philosophy","Travel","Openness","Wisdom"],["Public","Legacy","Career","Ambition"],["Friends","Community","Dreams","Aspirations"],["Unconscious","Fantasies","Connections","Healing"]],lower:"Lower",upper:"Upper",angular:"Angular",succedent:"Succedent",cadent:"Cadent",luminary:"Luminary",personal:"Personal",social:"Social",transpersonal:"Transpersonal",other:"Other"},L=g;var G={aries:"Aries",taurus:"Tauro",gemini:"Géminis",cancer:"Cáncer",leo:"Leo",virgo:"Virgo",libra:"Libra",scorpio:"Escorpio",sagittarius:"Sagitario",capricorn:"Capricornio",aquarius:"Acuario",pisces:"Piscis",fire:"Fuego",earth:"Tierra",air:"Aire",water:"Agua",cardinal:"Cardinal",fixed:"Fijo",mutable:"Mutable",mars:"Marte",venus:"Venus",mercury:"Mercurio",moon:"Luna",sun:"Sol",pluto:"Plutón",jupiter:"Júpiter",saturn:"Saturno",uranus:"Urano",neptune:"Neptuno",positive:"Positivo",negative:"Negativo",head:"Cabeza",throat:"Garganta",lungs:"Pulmones",stomach:"Estómago",heart:"Corazón",bowels:"Intestinos",reins:"Riñones",secrets:"Genitales",thighs:"Muslos",knees:"Rodillas",ankles:"Tobillos",feet:"Pies",ram:"Carnero",bull:"Toro",twins:"Gemelos",crab:"Cangrejo",lion:"León",virgin:"Virgen",balance:"Balanza",scorpion:"Escorpión",archer:"Arquero",goat:"Cabra","the-man":"El Hombre","the-fishes":"Los Peces",spring:"Primavera",summer:"Verano",autumn:"Otoño",winter:"Invierno",houseTitles:["La personalidad individual","Valores y Posesiones","Comunicación","Raíces y Orígenes","Placer y Creatividad","Trabajo y Rutina","Relacionarse","Pérdida y Propiedad Común","Filosofías y Países Lejanos","Ocupación y Vocación","Amigos y Conocidos","Más Allá de lo Personal"],houseKeywords:[["Autoimagen","Identidad","Impresiones en los demás","Personalidad"],["Recursos personales","Valores","Seguridad","Posesiones"],["Entorno","Hermanos","Comunicación","Conocimiento"],["Hogar","Familia","El pasado","Raíces"],["Niños","Creatividad","Expresión","Placer"],["Rutinas","Servicio","Salud","Productividad"],["Asociaciones","Relaciones","Equilibrio","Colaboración"],["Transformaciones","Crisis","Inicios","Renacimiento"],["Filosofía","Viajes","Apertura","Sabiduría"],["Público","Legado","Carrera","Ambición"],["Amigos","Comunidad","Sueños","Aspiraciones"],["Inconsciente","Fantasías","Conexiones","Sanación"]],lower:"Inferior",upper:"Superior",angular:"Angular",succedent:"Sucedente",cadent:"Cadente",luminary:"Luminar",personal:"Personal",social:"Social",transpersonal:"Transpersonal",other:"Otro"},U=G;var V={aries:"Àries",taurus:"Taure",gemini:"Bessons",cancer:"Cranc",leo:"Lleó",virgo:"Verge",libra:"Balança",scorpio:"Escorpió",sagittarius:"Sagitari",capricorn:"Capricorn",aquarius:"Aquari",pisces:"Peixos",fire:"Foc",earth:"Terra",air:"Aire",water:"Aigua",cardinal:"Cardinal",fixed:"Fix",mutable:"Mutable",mars:"Mart",venus:"Venus",mercury:"Mercuri",moon:"Lluna",sun:"Sol",pluto:"Plutó",jupiter:"Júpiter",saturn:"Saturn",uranus:"Urà",neptune:"Neptú",positive:"Positiu",negative:"Negatiu",head:"Cap",throat:"Gola",lungs:"Pulmons",stomach:"Estómac",heart:"Cor",bowels:"Intestins",reins:"Ronyons",secrets:"Genitals",thighs:"Cuixes",knees:"Genolls",ankles:"Turmells",feet:"Peus",ram:"Carner",bull:"Bou",twins:"Bessons",crab:"Cranc",lion:"Lleó",virgin:"Verge",balance:"Balança",scorpion:"Escorpí",archer:"Arquer",goat:"Cabra","the-man":"L'Home","the-fishes":"Els Peixos",spring:"Primavera",summer:"Estiu",autumn:"Tardor",winter:"Hivern",houseTitles:["La personalitat individual","Valors i possessions","Comunicació","Arrels i orígens","Plaer i creativitat","Feina i rutina","Relacionar-se","Pèrdua i propietat comuna","Filosofia i països llunyans","Ocupació i vocació","Amics i coneguts","Més enllà del personal"],houseKeywords:[["Autoimatge","Identitat","Impressions als altres","Personalitat"],["Recursos personals","Valors","Seguretat","Possessions"],["Entorn","Germans","Comunicació","Coneixement"],["Llar","Família","El passat","Arrels"],["Infants","Creativitat","Expressió","Plaer"],["Rutines","Servei","Salut","Productivitat"],["Associacions","Relacions","Equilibri","Col·laboració"],["Transformacions","Crisi","Inicis","Renaixement"],["Filosofia","Viatges","Obertura","Saviesa"],["Públic","Llegat","Carrera","Ambició"],["Amics","Comunitat","Somnis","Aspiracions"],["Inconscient","Fantasies","Connexions","Sanació"]],lower:"Inferior",upper:"Superior",angular:"Angular",succedent:"Successiva",cadent:"Cadent",luminary:"Lluminaria",personal:"Personal",social:"Social",transpersonal:"Transpersonal",other:"Altres"},O=V;var d={en:L,es:U,ca:O};var F={aries:{bodyPart:m.HEAD,character:A.RAM,element:n.FIRE,endDate:new Date(2020,3,20),glyph:"♈",modality:i.CARDINAL,name:a.ARIES,number:1,pole:E.POSITIVE,rulingPlanet:r.MARS,season:S.SPRING,startDate:new Date(2020,2,20)},taurus:{bodyPart:m.THROAT,character:A.BULL,element:n.EARTH,endDate:new Date(2020,4,21),glyph:"♉",modality:i.FIXED,name:a.TAURUS,number:2,pole:E.NEGATIVE,rulingPlanet:r.VENUS,season:S.SPRING,startDate:new Date(2020,3,21)},gemini:{bodyPart:m.LUNGS,character:A.TWINS,element:n.AIR,endDate:new Date(2020,5,22),glyph:"♊",modality:i.MUTABLE,name:a.GEMINI,number:3,pole:E.POSITIVE,rulingPlanet:r.MERCURY,season:S.SPRING,startDate:new Date(2020,4,22)},cancer:{bodyPart:m.STOMACH,character:A.CRAB,element:n.WATER,endDate:new Date(2020,6,22),glyph:"♋",modality:i.CARDINAL,name:a.CANCER,number:4,pole:E.NEGATIVE,rulingPlanet:r.MOON,season:S.SUMMER,startDate:new Date(2020,5,23)},leo:{bodyPart:m.HEART,character:A.LION,element:n.FIRE,endDate:new Date(2020,7,22),glyph:"♌",modality:i.FIXED,name:a.LEO,number:5,pole:E.POSITIVE,rulingPlanet:r.SUN,season:S.SUMMER,startDate:new Date(2020,6,23)},virgo:{bodyPart:m.BOWELS,character:A.VIRGIN,element:n.EARTH,endDate:new Date(2020,8,22),glyph:"♍",modality:i.MUTABLE,name:a.VIRGO,number:6,pole:E.NEGATIVE,rulingPlanet:r.MERCURY,season:S.SUMMER,startDate:new Date(2020,7,23)},libra:{bodyPart:m.REINS,character:A.BALANCE,element:n.AIR,endDate:new Date(2020,9,22),glyph:"♎",modality:i.CARDINAL,name:a.LIBRA,number:7,pole:E.POSITIVE,rulingPlanet:r.VENUS,season:S.AUTUMN,startDate:new Date(2020,8,23)},scorpio:{bodyPart:m.SECRETS,character:A.SCORPION,element:n.WATER,endDate:new Date(2020,10,22),glyph:"♏",modality:i.FIXED,name:a.SCORPIO,number:8,pole:E.NEGATIVE,rulingPlanet:r.PLUTO,season:S.AUTUMN,startDate:new Date(2020,9,23)},sagittarius:{bodyPart:m.THIGHS,character:A.ARCHER,element:n.FIRE,endDate:new Date(2020,11,22),glyph:"♐",modality:i.MUTABLE,name:a.SAGITTARIUS,number:9,pole:E.POSITIVE,rulingPlanet:r.JUPITER,season:S.AUTUMN,startDate:new Date(2020,10,23)},capricorn:{bodyPart:m.KNEES,character:A.GOAT,element:n.EARTH,endDate:new Date(2021,0,21),glyph:"♑",modality:i.CARDINAL,name:a.CAPRICORN,number:10,pole:E.NEGATIVE,rulingPlanet:r.SATURN,season:S.WINTER,startDate:new Date(2020,11,23)},aquarius:{bodyPart:m.ANKLES,character:A.THE_MAN,element:n.AIR,endDate:new Date(2020,1,20),glyph:"♒",modality:i.FIXED,name:a.AQUARIUS,number:11,pole:E.POSITIVE,rulingPlanet:r.URANUS,season:S.WINTER,startDate:new Date(2020,0,22)},pisces:{bodyPart:m.FEET,character:A.THE_FISHES,element:n.WATER,endDate:new Date(2020,2,19),glyph:"♓",modality:i.MUTABLE,name:a.PISCES,number:12,pole:E.NEGATIVE,rulingPlanet:r.NEPTUNE,season:S.WINTER,startDate:new Date(2020,1,21)}},I=F;function y(e,o){let s=d[o];return{bodyPart:s[e.bodyPart],character:s[e.character],element:s[e.element],endDate:e.endDate,glyph:e.glyph,modality:s[e.modality],name:s[e.name],number:e.number,pole:s[e.pole],rulingPlanet:s[e.rulingPlanet],season:s[e.season],startDate:e.startDate}}function b(e,o,s){let t=s.getMonth()+1,u=s.getDate(),T=e.getMonth()+1,D=e.getDate(),N=o.getMonth()+1,w=o.getDate();return t===T&&u>=D||t===N&&u<=w||T>N&&(t>T||t<N)}function M(e,o){let s=d[o],[,t]=e.title.split("-"),[,u]=e.keywords.split("-");return{number:e.number,title:s.houseTitles[Number(t)-1],sign:s[e.sign],rulingPlanet:s[e.rulingPlanet],keywords:s.houseKeywords[Number(u)-1],element:s[e.element],hemisphere:s[e.hemisphere],phase:e.phase,quadrant:e.quadrant,modality:s[e.modality]}}function B(e="en"){return h.map((o)=>{return M(o,e)})}var W={sun:{name:r.SUN,glyph:"☉",type:P.LUMINARY},moon:{name:r.MOON,glyph:"☽",type:P.LUMINARY},mercury:{name:r.MERCURY,glyph:"☿",type:P.PERSONAL},venus:{name:r.VENUS,glyph:"♀",type:P.PERSONAL},mars:{name:r.MARS,glyph:"♂",type:P.PERSONAL},jupiter:{name:r.JUPITER,glyph:"♃",type:P.SOCIAL},saturn:{name:r.SATURN,glyph:"♄",type:P.SOCIAL},uranus:{name:r.URANUS,glyph:"♅",type:P.TRANSPERSONAL},neptune:{name:r.NEPTUNE,glyph:"♆",type:P.TRANSPERSONAL},pluto:{name:r.PLUTO,glyph:"♇",type:P.TRANSPERSONAL}},C=W;function f(e="en"){return Object.keys(C).map((o)=>{let s={};return Object.entries(C[o]).forEach(([t,u])=>{let T=d[e][u];s[t]=T||u}),s})}function q(e,o="en"){if(!(e instanceof Date))throw new Error("Invalid date");for(let s of Object.keys(I)){let t=I[s],{startDate:u,endDate:T}=t;if(b(u,T,e))return y(t,o)}return null}function K(e,o="en"){let s=I[e];if(!s)return null;return y(s,o)}function k(e="en"){return Object.keys(I).map((o)=>{let s={};return Object.entries(I[o]).forEach(([t,u])=>{let T=d[e][u];s[t]=T||u}),s})}import{existsSync as v,readFileSync as Y}from"node:fs";import H from"node:path";import{fileURLToPath as _}from"node:url";var j=H.dirname(_(import.meta.url));function J(e,o={}){let s=H.join(j,"../assets",`${e}.svg`);if(!v(s))throw new Error(`Icon "${e}" not found.`);let t=Y(s,"utf8");if(o.stroke)t=t.replace(/stroke="[^"]*"/g,`stroke="${o.stroke}"`);if(o.strokeWidth)t=t.replace(/stroke-width="[^"]*"/g,`stroke-width="${o.strokeWidth}"`);if(o.dataUrl)return`data:image/svg+xml;base64,${Buffer.from(t).toString("base64")}`;return t}export{J as getSymbol,k as getSigns,K as getSignByName,q as getSignByDate,f as getPlanets,B as getHouses,a as SIGNS,r as PLANETS,i as MODALITIES,c as HOUSE_MODALITIES,l as HEMISPHERES,n as ELEMENTS};
package/package.json CHANGED
@@ -1,33 +1,35 @@
1
1
  {
2
2
  "name": "western-signs",
3
- "version": "1.5.0",
3
+ "version": "1.7.0",
4
4
  "author": "Marc Mariné <shenobi@gmail.com>",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/marcmarine/western-signs.git"
8
8
  },
9
9
  "devDependencies": {
10
+ "@biomejs/biome": "2.0.6",
10
11
  "@semantic-release/changelog": "^6.0.3",
11
12
  "@semantic-release/git": "^10.0.1",
12
13
  "@types/bun": "latest",
13
14
  "bun-plugin-dts": "^0.3.0",
14
- "iso-639-1": "^3.1.5",
15
15
  "semantic-release": "^24.2.5",
16
16
  "typedoc": "^0.28.5",
17
17
  "upgradeps": "^2.0.8",
18
- "varvara-typedoc-theme": "^0.3.6"
18
+ "varvara-typedoc-theme": "^0.3.8"
19
19
  },
20
20
  "peerDependencies": {
21
21
  "typescript": "^5.8.3"
22
22
  },
23
23
  "exports": {
24
- ".": "./dist/index.js"
24
+ ".": "./dist/index.js",
25
+ "./*": "./assets/*"
25
26
  },
26
27
  "types": "./dist/index.d.ts",
27
28
  "bugs": "https://github.com/marcmarine/western-signs/issues/new",
28
29
  "description": "Simple interface for western astrological signs.",
29
30
  "files": [
30
- "dist"
31
+ "dist",
32
+ "assets"
31
33
  ],
32
34
  "homepage": "https://github.com/marcmarine/western-signs",
33
35
  "keywords": [
@@ -39,7 +41,8 @@
39
41
  "license": "MIT",
40
42
  "scripts": {
41
43
  "build": "bun build.ts",
42
- "build:docs": "bunx typedoc"
44
+ "build:docs": "bunx typedoc",
45
+ "format": "biome check --write"
43
46
  },
44
47
  "type": "module"
45
48
  }