math-main-components 0.0.197 → 0.0.202
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 +15 -1
- package/dist/components/.Slider/Slider.d.ts +8 -0
- package/dist/components/.Slider/index.d.ts +1 -0
- package/dist/components/.StepBack/StepBack.d.ts +5 -0
- package/dist/components/.StepBack/index.d.ts +1 -0
- package/dist/components/ForwardButton/ForwardButton.stories.d.ts +2 -2
- package/dist/components/InputArea/InputArea.stories.d.ts +13 -0
- package/dist/components/InputMail/InputMail.stories.d.ts +13 -0
- package/dist/components/InputNames/InputNames.stories.d.ts +13 -0
- package/dist/components/InputNumber/InputNumber.stories.d.ts +13 -0
- package/dist/components/InputPassword/InputPassword.d.ts +1 -1
- package/dist/components/InputPassword/InputPassword.stories.d.ts +13 -0
- package/dist/components/InputPin/InputPin.stories.d.ts +13 -0
- package/dist/components/InputText/InputText.stories.d.ts +13 -0
- package/dist/components/NumberDropdown/NumberDropdown.stories.d.ts +18 -0
- package/dist/components/NumberDropdown/index.d.ts +11 -0
- package/dist/components/NumberField/NumberField.stories.d.ts +13 -0
- package/dist/components/NumberField/index.d.ts +17 -0
- package/dist/components/OptionField/OptionField.stories.d.ts +13 -0
- package/dist/components/OptionField2/OptionField2.d.ts +7 -0
- package/dist/components/OptionField2/OptionField2.stories.d.ts +13 -0
- package/dist/components/OptionField2/index.d.ts +1 -0
- package/dist/components/ProgressBar/ProgressBar.d.ts +2 -1
- package/dist/components/ProgressBar/ProgressBar.stories.d.ts +13 -0
- package/dist/components/RadioButtons/RadioButtons.d.ts +2 -3
- package/dist/components/RadioButtons/RadioButtons.stories.d.ts +13 -0
- package/dist/components/RadioButtons/index.d.ts +1 -1
- package/dist/components/RedirectButton/RedirectButton.d.ts +4 -3
- package/dist/components/RedirectButton/RedirectButton.stories.d.ts +15 -0
- package/dist/components/SearchChips/SearchChips.d.ts +3 -4
- package/dist/components/SearchChips/Searchbar.stories.d.ts +13 -0
- package/dist/components/SearchChips/index.d.ts +1 -1
- package/dist/components/Searchbar/Searchbar.d.ts +2 -1
- package/dist/components/Searchbar/Searchbar.stories.d.ts +13 -0
- package/dist/components/Table/Table.d.ts +5 -4
- package/dist/components/Table/Table.stories.d.ts +26 -0
- package/dist/components/Tabs/Tabs.d.ts +2 -3
- package/dist/components/Tabs/Tabs.stories.d.ts +11 -0
- package/dist/components/TextWithIcon/TextWithIcon.stories.d.ts +11 -0
- package/dist/components/ToggleBox/index.d.ts +7 -0
- package/dist/components/UsageCard/UsageCard.stories.d.ts +11 -0
- package/dist/index.cjs.js +309 -275
- package/dist/index.d.ts +5 -3
- package/dist/index.esm.js +293 -258
- package/package.json +4 -3
- package/styles/font.scss +11 -0
- package/styles/material-symbols.scss +24 -0
- package/styles/theme-colors.scss +164 -0
- package/styles/theme-styles.scss +10 -0
package/package.json
CHANGED
@@ -1,9 +1,10 @@
|
|
1
1
|
{
|
2
2
|
"name": "math-main-components",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.202",
|
4
4
|
"author": "Emilian Scheel",
|
5
5
|
"files": [
|
6
|
-
"dist/**/*"
|
6
|
+
"dist/**/*",
|
7
|
+
"styles/**/*"
|
7
8
|
],
|
8
9
|
"main": "dist/index.cjs.js",
|
9
10
|
"module": "dist/index.esm.js",
|
@@ -77,4 +78,4 @@
|
|
77
78
|
"storybook": "^7.6.13",
|
78
79
|
"stripe": "^14.5.0"
|
79
80
|
}
|
80
|
-
}
|
81
|
+
}
|
package/styles/font.scss
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
@font-face {
|
2
|
+
font-family: 'Space Grotesk';
|
3
|
+
font-style: normal;
|
4
|
+
src: url("https://pub-cac338ae11a944ff9c57d280468b90e7.r2.dev/font-space-grotesk.ttf") format('ttf');
|
5
|
+
}
|
6
|
+
|
7
|
+
@font-face {
|
8
|
+
font-family: 'Jakarta Sans';
|
9
|
+
font-style: normal;
|
10
|
+
src: url("https://pub-cac338ae11a944ff9c57d280468b90e7.r2.dev/font-jakarta-sans.ttf") format('ttf');
|
11
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
@font-face {
|
2
|
+
font-family: 'Material Symbols Outlined';
|
3
|
+
font-style: normal;
|
4
|
+
src: url("https://pub-cac338ae11a944ff9c57d280468b90e7.r2.dev/material-symbols-v156.woff2") format('woff2');
|
5
|
+
}
|
6
|
+
|
7
|
+
|
8
|
+
.material-symbols,
|
9
|
+
.material-symbols-outlined {
|
10
|
+
font-family: 'Material Symbols Outlined';
|
11
|
+
font-weight: 200;
|
12
|
+
font-style: normal;
|
13
|
+
font-size: 24px;
|
14
|
+
/* Preferred icon size */
|
15
|
+
display: inline-block;
|
16
|
+
line-height: 1;
|
17
|
+
text-transform: none;
|
18
|
+
letter-spacing: normal;
|
19
|
+
word-wrap: normal;
|
20
|
+
white-space: nowrap;
|
21
|
+
direction: ltr;
|
22
|
+
user-select: none;
|
23
|
+
-webkit-user-select: none;
|
24
|
+
}
|
@@ -0,0 +1,164 @@
|
|
1
|
+
:root {
|
2
|
+
--background-1: #FFFFFF;
|
3
|
+
--background-2: #FAFAFA;
|
4
|
+
--background-3: #FAFAFA; // dark -> black
|
5
|
+
--background-4: #e5e5e5; // dark -> brighter
|
6
|
+
--foreground-1: #000000;
|
7
|
+
--foreground-2: #5C5C5C;
|
8
|
+
--foreground-3: #808080;
|
9
|
+
--foreground-4: #000000;
|
10
|
+
--border-1: #F0F0F0;
|
11
|
+
--border-2: #DFDFDF;
|
12
|
+
--border-3: #B1B1B1;
|
13
|
+
|
14
|
+
--primary-1: #0075FF;
|
15
|
+
--primary-2: #C6D4F8;
|
16
|
+
|
17
|
+
// dark green
|
18
|
+
--forest-1: #156A13;
|
19
|
+
--forest-2: #D9EED8;
|
20
|
+
|
21
|
+
// dark red
|
22
|
+
--wine-1: #6A1313;
|
23
|
+
--wine-2: #EFD4D4;
|
24
|
+
|
25
|
+
// dark blue
|
26
|
+
--navy-1: #1A136A;
|
27
|
+
--navy-2: #D4D5EF;
|
28
|
+
|
29
|
+
// dark pink
|
30
|
+
--cherry-1: #63136A;
|
31
|
+
--cherry-2: #DCB2E7;
|
32
|
+
|
33
|
+
// dark grey
|
34
|
+
--stone-1: #4A4A4A;
|
35
|
+
--stone-2: #B9B9B9;
|
36
|
+
|
37
|
+
// dark yellow
|
38
|
+
--sun-1: #D4A400;
|
39
|
+
--sun-2: #fffbe7;
|
40
|
+
|
41
|
+
// dark orange
|
42
|
+
--pumpkin-1: #D46A00;
|
43
|
+
--pumpkin-2: #FEEED4;
|
44
|
+
|
45
|
+
|
46
|
+
// artichoke
|
47
|
+
--artichoke-1: #314e2b;
|
48
|
+
--artichoke-2: #E8FBD7;
|
49
|
+
|
50
|
+
// desert:
|
51
|
+
--desert-1: #C19A6B;
|
52
|
+
--desert-2: #FDF7F0;
|
53
|
+
|
54
|
+
// yellow
|
55
|
+
--yellow-1: #D4A400;
|
56
|
+
--yellow-2: #fffbe7;
|
57
|
+
|
58
|
+
// green
|
59
|
+
--green-1: #5B8F26;
|
60
|
+
--green-2: #e8fbd7;
|
61
|
+
|
62
|
+
// red
|
63
|
+
--red-1: #EB4E3E;
|
64
|
+
--red-2: #FFE7E3;
|
65
|
+
|
66
|
+
// blue
|
67
|
+
--blue-1: #2961E5;
|
68
|
+
--blue-2: #ECF3FD;
|
69
|
+
|
70
|
+
// pink
|
71
|
+
--pink-1: #A357D7;
|
72
|
+
--pink-2: #F9F4FD;
|
73
|
+
|
74
|
+
// turquoise
|
75
|
+
--turquoise-1: #00C7BE;
|
76
|
+
--turquoise-2: #E8F9F8;
|
77
|
+
|
78
|
+
// orange
|
79
|
+
--orange-1: #FF9500;
|
80
|
+
--orange-2: #FFF5E3;
|
81
|
+
}
|
82
|
+
|
83
|
+
:root {
|
84
|
+
.dark-theme {
|
85
|
+
--background-1: #000000;
|
86
|
+
--background-2: #181818;
|
87
|
+
--background-3: #000000;
|
88
|
+
--background-4: #262626;
|
89
|
+
--foreground-1: #FFFFFF;
|
90
|
+
--foreground-2: #A1A1A1;
|
91
|
+
--foreground-3: #888888;
|
92
|
+
--foreground-4: #d6d6d6;
|
93
|
+
--border-1: #242424;
|
94
|
+
--border-2: #333333;
|
95
|
+
--border-3: #414141;
|
96
|
+
|
97
|
+
--primary-1: #0075FF;
|
98
|
+
--primary-2: #2c3347;
|
99
|
+
|
100
|
+
// dark green
|
101
|
+
--forest-1: #36c731;
|
102
|
+
--forest-2: #356431;
|
103
|
+
|
104
|
+
// dark red
|
105
|
+
--wine-1: #f3523a;
|
106
|
+
--wine-2: #863636;
|
107
|
+
|
108
|
+
// dark blue
|
109
|
+
--navy-1: rgb(118, 107, 231);
|
110
|
+
--navy-2: #282b8b;
|
111
|
+
|
112
|
+
// dark pink
|
113
|
+
--cherry-1: #c92cd7;
|
114
|
+
--cherry-2: #7c2592;
|
115
|
+
|
116
|
+
// dark grey
|
117
|
+
--stone-1: #e8e8e8;
|
118
|
+
--stone-2: #4d4b4b;
|
119
|
+
|
120
|
+
// dark yellow
|
121
|
+
--sun-1: #ffdb67;
|
122
|
+
--sun-2: #594c12;
|
123
|
+
|
124
|
+
// dark orange
|
125
|
+
--pumpkin-1: #ef9438;
|
126
|
+
--pumpkin-2: #714d11;
|
127
|
+
|
128
|
+
// artichoke
|
129
|
+
--artichoke-1: #314e2b;
|
130
|
+
--artichoke-2: #4a8e0c;
|
131
|
+
|
132
|
+
// desert:
|
133
|
+
--desert-1: #C19A6B;
|
134
|
+
--desert-2: #594c12;
|
135
|
+
|
136
|
+
// dark yellow
|
137
|
+
--yellow-1: #ffdb67;
|
138
|
+
--yellow-2: #594c12;
|
139
|
+
|
140
|
+
// green
|
141
|
+
--green-1: #95e941;
|
142
|
+
--green-2: #4a8e0c;
|
143
|
+
|
144
|
+
// red
|
145
|
+
--red-1: #ff5c49;
|
146
|
+
--red-2: #741707;
|
147
|
+
|
148
|
+
// blue
|
149
|
+
--blue-1: #a5c0ff;
|
150
|
+
--blue-2: #1b4a8c;
|
151
|
+
|
152
|
+
// pink
|
153
|
+
--pink-1: #c596e4;
|
154
|
+
--pink-2: #581d88;
|
155
|
+
|
156
|
+
// turquoise
|
157
|
+
--turquoise-1: #00C7BE;
|
158
|
+
--turquoise-2: #21504d;
|
159
|
+
|
160
|
+
// orange
|
161
|
+
--orange-1: #FF9500;
|
162
|
+
--orange-2: #FFF5E3;
|
163
|
+
}
|
164
|
+
}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
:root {
|
2
|
+
|
3
|
+
--focus-shadow: 0px 0px 0px 4px #0057FF40;
|
4
|
+
--focus-border: 1px solid var(--primary-1);
|
5
|
+
--invalid-shadow: 0px 0px 0px 4px #ff000040;
|
6
|
+
--invalid-border: 1px solid var(--red-1);
|
7
|
+
|
8
|
+
--font-1: 'Space Grotesk', var(--font-2);
|
9
|
+
--font-2: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
10
|
+
}
|