@octoguide/mui-ui-toolkit 0.2.0 → 0.3.1
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 +0 -84
- package/dist/index.d.mts +37 -0
- package/dist/index.d.ts +37 -0
- package/dist/index.js +29 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +29 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -145,87 +145,3 @@ Peer dependencies (install in your consuming app):
|
|
|
145
145
|
```bash
|
|
146
146
|
yarn add @mui/material @emotion/react @emotion/styled react react-dom
|
|
147
147
|
```
|
|
148
|
-
|
|
149
|
-
## command used to create the foundational components
|
|
150
|
-
|
|
151
|
-
nder the src/components/foundation folder i want to add
|
|
152
|
-
wrapper objects for each of the following. these objects will
|
|
153
|
-
live in their own component file. not 1 big file
|
|
154
|
-
each component will extend the base typography component in the
|
|
155
|
-
mui-design library
|
|
156
|
-
H1
|
|
157
|
-
|
|
158
|
-
<div class="css-1pjc7v5"><h1 class="MuiTypography-root
|
|
159
|
-
MuiTypography-h1 css-p6re0n">How can you choose a
|
|
160
|
-
typeface?</h1><pre class="MuiBox-root css-6cymt6">{
|
|
161
|
-
"fontWeight": 800,
|
|
162
|
-
"fontSize": "2.5rem (40px)",
|
|
163
|
-
"lineHeight": 1.25,
|
|
164
|
-
"@media (min-width:600px)": {
|
|
165
|
-
"fontSize": "3.25rem (52px)"
|
|
166
|
-
},
|
|
167
|
-
"@media (min-width:900px)": {
|
|
168
|
-
"fontSize": "3.625rem (58px)"
|
|
169
|
-
},
|
|
170
|
-
"@media (min-width:1200px)": {
|
|
171
|
-
"fontSize": "4rem (64px)"
|
|
172
|
-
}
|
|
173
|
-
}</pre></div>
|
|
174
|
-
⎿ Interrupted · What should Claude do instead?
|
|
175
|
-
|
|
176
|
-
[Image #2] (↑ to select)
|
|
177
|
-
─────────────────────────────────────────────────────────── ▪▪▪ ─
|
|
178
|
-
❯ under the src/components/foundation folder i want to add
|
|
179
|
-
wrapper objects for each of the following. these objects will
|
|
180
|
-
live in their own component file. not 1 big file
|
|
181
|
-
each component will extend the base typography component in
|
|
182
|
-
the mui-design library
|
|
183
|
-
for each component i will give 2 lines for the name of the
|
|
184
|
-
component and what to export it as, the div element that
|
|
185
|
-
contains the component itself as it is used on a web page and
|
|
186
|
-
the pre object that contains the styles for the component
|
|
187
|
-
rules for each component
|
|
188
|
-
always use the theme values rather than hardcoding values
|
|
189
|
-
i.e fontweight:800, the 800 should come from the theme
|
|
190
|
-
definition
|
|
191
|
-
also create the storybook entry from the component entry i
|
|
192
|
-
have provided above showing the component name, example text,
|
|
193
|
-
and the styles from the pre section to show the styles that
|
|
194
|
-
make up the component all on a card like this
|
|
195
|
-
|
|
196
|
-
all the theme elements can be found in docs/theme.json which
|
|
197
|
-
is a json object showing all the current default theme values
|
|
198
|
-
H1
|
|
199
|
-
[Pasted text #1 +13 lines]
|
|
200
|
-
H2
|
|
201
|
-
[Pasted text #3 +13 lines]
|
|
202
|
-
H3
|
|
203
|
-
[Pasted text #4 +13 lines]
|
|
204
|
-
H4
|
|
205
|
-
[Pasted text #5 +7 lines]
|
|
206
|
-
H5
|
|
207
|
-
[Pasted text #6 +7 lines]
|
|
208
|
-
H6
|
|
209
|
-
[Pasted text #7 +7 lines]
|
|
210
|
-
Subtitle1
|
|
211
|
-
[Pasted text #8 +4 lines]
|
|
212
|
-
Subtitle2
|
|
213
|
-
[Pasted text #9 +4 lines]
|
|
214
|
-
Body1
|
|
215
|
-
[Pasted text #10 +4 lines]
|
|
216
|
-
Body2
|
|
217
|
-
[Pasted text #11 +4 lines]
|
|
218
|
-
Caption
|
|
219
|
-
[Pasted text #12 +4 lines]
|
|
220
|
-
Overline
|
|
221
|
-
[Pasted text #13 +4 lines]
|
|
222
|
-
Button
|
|
223
|
-
[Pasted text #14 +4 lines]
|
|
224
|
-
use the text.primary values from the theme palette object as
|
|
225
|
-
the text colour and use the theme entry from the typeography
|
|
226
|
-
object for each component
|
|
227
|
-
for example H1 fontweight should come from the them value
|
|
228
|
-
typography.h1.fontWeight
|
|
229
|
-
at the end if you can add tests for each component
|
|
230
|
-
build and check for completness
|
|
231
|
-
i can use storybook to see if the components creation worked
|
package/dist/index.d.mts
CHANGED
|
@@ -60,6 +60,16 @@ interface ColorTokens {
|
|
|
60
60
|
borderFocus: string;
|
|
61
61
|
overlayLight: string;
|
|
62
62
|
overlayDark: string;
|
|
63
|
+
overlayLight60: string;
|
|
64
|
+
overlayLight70: string;
|
|
65
|
+
overlayLight75: string;
|
|
66
|
+
overlayLight85: string;
|
|
67
|
+
colorRed: string;
|
|
68
|
+
colorAmber: string;
|
|
69
|
+
colorOrange: string;
|
|
70
|
+
colorGreen: string;
|
|
71
|
+
colorBlue: string;
|
|
72
|
+
colorGrey: string;
|
|
63
73
|
}
|
|
64
74
|
interface TypographyTokens {
|
|
65
75
|
fontFamilyBase: string;
|
|
@@ -71,6 +81,7 @@ interface TypographyTokens {
|
|
|
71
81
|
fontSizeXl: string;
|
|
72
82
|
fontSize2xl: string;
|
|
73
83
|
fontSize3xl: string;
|
|
84
|
+
fontSize4xl: string;
|
|
74
85
|
fontWeightLight: number;
|
|
75
86
|
fontWeightRegular: number;
|
|
76
87
|
fontWeightMedium: number;
|
|
@@ -128,7 +139,33 @@ interface ZIndexTokens {
|
|
|
128
139
|
toast: number;
|
|
129
140
|
tooltip: number;
|
|
130
141
|
}
|
|
142
|
+
interface FooterTokens {
|
|
143
|
+
background: string;
|
|
144
|
+
textColor: string;
|
|
145
|
+
linkColor: string;
|
|
146
|
+
linkHoverColor: string;
|
|
147
|
+
}
|
|
148
|
+
interface IconTokens {
|
|
149
|
+
/** 12px — tiny inline icons (e.g. back arrows) */
|
|
150
|
+
xs: string;
|
|
151
|
+
/** 16px — small inline icons */
|
|
152
|
+
sm: string;
|
|
153
|
+
/** 20px — standard small icons (e.g. nav, button icons) */
|
|
154
|
+
md: string;
|
|
155
|
+
/** 24px — standard icons */
|
|
156
|
+
lg: string;
|
|
157
|
+
/** 28px — medium feature icons */
|
|
158
|
+
xl: string;
|
|
159
|
+
/** 32px — large feature icons */
|
|
160
|
+
xxl: string;
|
|
161
|
+
/** 36px — hero / confirmation icons */
|
|
162
|
+
xxxl: string;
|
|
163
|
+
/** 56px — decorative / background icons */
|
|
164
|
+
display: string;
|
|
165
|
+
}
|
|
131
166
|
interface ComponentTokens {
|
|
167
|
+
footer: FooterTokens;
|
|
168
|
+
icon: IconTokens;
|
|
132
169
|
button: {
|
|
133
170
|
paddingX: string;
|
|
134
171
|
paddingY: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -60,6 +60,16 @@ interface ColorTokens {
|
|
|
60
60
|
borderFocus: string;
|
|
61
61
|
overlayLight: string;
|
|
62
62
|
overlayDark: string;
|
|
63
|
+
overlayLight60: string;
|
|
64
|
+
overlayLight70: string;
|
|
65
|
+
overlayLight75: string;
|
|
66
|
+
overlayLight85: string;
|
|
67
|
+
colorRed: string;
|
|
68
|
+
colorAmber: string;
|
|
69
|
+
colorOrange: string;
|
|
70
|
+
colorGreen: string;
|
|
71
|
+
colorBlue: string;
|
|
72
|
+
colorGrey: string;
|
|
63
73
|
}
|
|
64
74
|
interface TypographyTokens {
|
|
65
75
|
fontFamilyBase: string;
|
|
@@ -71,6 +81,7 @@ interface TypographyTokens {
|
|
|
71
81
|
fontSizeXl: string;
|
|
72
82
|
fontSize2xl: string;
|
|
73
83
|
fontSize3xl: string;
|
|
84
|
+
fontSize4xl: string;
|
|
74
85
|
fontWeightLight: number;
|
|
75
86
|
fontWeightRegular: number;
|
|
76
87
|
fontWeightMedium: number;
|
|
@@ -128,7 +139,33 @@ interface ZIndexTokens {
|
|
|
128
139
|
toast: number;
|
|
129
140
|
tooltip: number;
|
|
130
141
|
}
|
|
142
|
+
interface FooterTokens {
|
|
143
|
+
background: string;
|
|
144
|
+
textColor: string;
|
|
145
|
+
linkColor: string;
|
|
146
|
+
linkHoverColor: string;
|
|
147
|
+
}
|
|
148
|
+
interface IconTokens {
|
|
149
|
+
/** 12px — tiny inline icons (e.g. back arrows) */
|
|
150
|
+
xs: string;
|
|
151
|
+
/** 16px — small inline icons */
|
|
152
|
+
sm: string;
|
|
153
|
+
/** 20px — standard small icons (e.g. nav, button icons) */
|
|
154
|
+
md: string;
|
|
155
|
+
/** 24px — standard icons */
|
|
156
|
+
lg: string;
|
|
157
|
+
/** 28px — medium feature icons */
|
|
158
|
+
xl: string;
|
|
159
|
+
/** 32px — large feature icons */
|
|
160
|
+
xxl: string;
|
|
161
|
+
/** 36px — hero / confirmation icons */
|
|
162
|
+
xxxl: string;
|
|
163
|
+
/** 56px — decorative / background icons */
|
|
164
|
+
display: string;
|
|
165
|
+
}
|
|
131
166
|
interface ComponentTokens {
|
|
167
|
+
footer: FooterTokens;
|
|
168
|
+
icon: IconTokens;
|
|
132
169
|
button: {
|
|
133
170
|
paddingX: string;
|
|
134
171
|
paddingY: string;
|
package/dist/index.js
CHANGED
|
@@ -116,7 +116,17 @@ var defaultTheme = {
|
|
|
116
116
|
border: "#C5CFE0",
|
|
117
117
|
borderFocus: "#1565C0",
|
|
118
118
|
overlayLight: "rgba(255, 255, 255, 0.8)",
|
|
119
|
-
overlayDark: "rgba(0, 0, 0, 0.12)"
|
|
119
|
+
overlayDark: "rgba(0, 0, 0, 0.12)",
|
|
120
|
+
overlayLight60: "rgba(255, 255, 255, 0.6)",
|
|
121
|
+
overlayLight70: "rgba(255, 255, 255, 0.7)",
|
|
122
|
+
overlayLight75: "rgba(255, 255, 255, 0.75)",
|
|
123
|
+
overlayLight85: "rgba(255, 255, 255, 0.85)",
|
|
124
|
+
colorRed: "#FF5630",
|
|
125
|
+
colorAmber: "#FFAB00",
|
|
126
|
+
colorOrange: "#FF8B00",
|
|
127
|
+
colorGreen: "#36B37E",
|
|
128
|
+
colorBlue: "#0065FF",
|
|
129
|
+
colorGrey: "#6B778C"
|
|
120
130
|
},
|
|
121
131
|
typography: {
|
|
122
132
|
fontFamilyBase: '"Source Sans Pro", sans-serif',
|
|
@@ -136,6 +146,8 @@ var defaultTheme = {
|
|
|
136
146
|
// 22px
|
|
137
147
|
fontSize3xl: "1.75rem",
|
|
138
148
|
// 28px
|
|
149
|
+
fontSize4xl: "2.25rem",
|
|
150
|
+
// 36px
|
|
139
151
|
// ── Weights (identical across all themes) ─────────────────────────────
|
|
140
152
|
fontWeightLight: 300,
|
|
141
153
|
fontWeightRegular: 400,
|
|
@@ -196,6 +208,22 @@ var defaultTheme = {
|
|
|
196
208
|
tooltip: 700
|
|
197
209
|
},
|
|
198
210
|
components: {
|
|
211
|
+
footer: {
|
|
212
|
+
background: "#003c8f",
|
|
213
|
+
textColor: "rgba(255, 255, 255, 0.7)",
|
|
214
|
+
linkColor: "rgba(255, 255, 255, 0.7)",
|
|
215
|
+
linkHoverColor: "#ffffff"
|
|
216
|
+
},
|
|
217
|
+
icon: {
|
|
218
|
+
xs: "12px",
|
|
219
|
+
sm: "16px",
|
|
220
|
+
md: "20px",
|
|
221
|
+
lg: "24px",
|
|
222
|
+
xl: "28px",
|
|
223
|
+
xxl: "32px",
|
|
224
|
+
xxxl: "36px",
|
|
225
|
+
display: "56px"
|
|
226
|
+
},
|
|
199
227
|
button: {
|
|
200
228
|
// Sizes & paddings (identical across themes)
|
|
201
229
|
paddingX: "12px",
|