@startdownnotez404/ui 1.0.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/dist/button.d.mts +115 -0
- package/dist/button.d.ts +115 -0
- package/dist/button.js +157 -0
- package/dist/button.js.map +1 -0
- package/dist/button.mjs +19 -0
- package/dist/button.mjs.map +1 -0
- package/dist/chunk-PKADXEAD.mjs +116 -0
- package/dist/chunk-PKADXEAD.mjs.map +1 -0
- package/dist/chunk-YGBJCPUS.mjs +88 -0
- package/dist/chunk-YGBJCPUS.mjs.map +1 -0
- package/dist/theme.css +44 -0
- package/dist/theme.css.map +1 -0
- package/dist/theme.d.mts +9 -0
- package/dist/theme.d.ts +9 -0
- package/dist/theme.js +394 -0
- package/dist/theme.js.map +1 -0
- package/dist/theme.mjs +234 -0
- package/dist/theme.mjs.map +1 -0
- package/dist/typography.d.mts +60 -0
- package/dist/typography.d.ts +60 -0
- package/dist/typography.js +130 -0
- package/dist/typography.js.map +1 -0
- package/dist/typography.mjs +19 -0
- package/dist/typography.mjs.map +1 -0
- package/package.json +50 -0
package/dist/theme.mjs
ADDED
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
import {
|
|
2
|
+
buttonBaseTheme,
|
|
3
|
+
buttonTheme,
|
|
4
|
+
iconButtonTheme
|
|
5
|
+
} from "./chunk-PKADXEAD.mjs";
|
|
6
|
+
import {
|
|
7
|
+
typographyTheme
|
|
8
|
+
} from "./chunk-YGBJCPUS.mjs";
|
|
9
|
+
|
|
10
|
+
// src/theme/Provider.tsx
|
|
11
|
+
import { ThemeProvider as ThemeProvider2 } from "@mui/material/styles";
|
|
12
|
+
|
|
13
|
+
// src/theme/muiTheme.ts
|
|
14
|
+
import { createTheme } from "@mui/material/styles";
|
|
15
|
+
|
|
16
|
+
// src/theme/colors/darkBlue.ts
|
|
17
|
+
var themeColor = {
|
|
18
|
+
themeType: "dark",
|
|
19
|
+
name: "darkBlue",
|
|
20
|
+
colorScheme: {
|
|
21
|
+
primary: {
|
|
22
|
+
1: "rgba(5, 20, 35, 1)",
|
|
23
|
+
2: "rgba(20, 40, 65, 1)",
|
|
24
|
+
3: "rgba(40, 80, 110, 1)",
|
|
25
|
+
4: "rgba(65, 110, 140, 1)",
|
|
26
|
+
5: "rgba(90, 140, 170, 1)",
|
|
27
|
+
6: "rgba(115, 170, 200, 1)",
|
|
28
|
+
main: 2
|
|
29
|
+
},
|
|
30
|
+
secondary: {
|
|
31
|
+
1: "rgba(250, 250, 255, 1)",
|
|
32
|
+
2: "rgba(245, 245, 255, 1)",
|
|
33
|
+
3: "rgba(200, 235, 240, 1)",
|
|
34
|
+
4: "rgba(165, 220, 225, 1)",
|
|
35
|
+
5: "rgba(125, 200, 210, 1)",
|
|
36
|
+
6: "rgba(20, 215, 215, 1)",
|
|
37
|
+
main: 5
|
|
38
|
+
},
|
|
39
|
+
error: "rgba(255, 0, 100, 1)",
|
|
40
|
+
warning: "rgba(230, 190, 125, 1)",
|
|
41
|
+
info: "rgba(100, 180, 255, 1)",
|
|
42
|
+
success: "rgba(100, 255, 150, 1)",
|
|
43
|
+
focus: "rgba(255, 0, 100, 1)",
|
|
44
|
+
disabled: "rgba(100, 120, 140, 1)",
|
|
45
|
+
background: {
|
|
46
|
+
default: "rgba(29, 29, 29, 1)"
|
|
47
|
+
},
|
|
48
|
+
text: {
|
|
49
|
+
primary: "rgba(240, 240, 255, 1)",
|
|
50
|
+
secondary: "rgba(180, 200, 220, 1)",
|
|
51
|
+
subscript: "rgba(137, 137, 150, 1)"
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
var muiPalette = {
|
|
56
|
+
palette: {
|
|
57
|
+
mode: "dark",
|
|
58
|
+
primary: {
|
|
59
|
+
dark: themeColor.colorScheme.primary[1],
|
|
60
|
+
main: themeColor.colorScheme.primary[themeColor.colorScheme.primary.main],
|
|
61
|
+
light: themeColor.colorScheme.primary[6]
|
|
62
|
+
},
|
|
63
|
+
secondary: {
|
|
64
|
+
dark: themeColor.colorScheme.secondary[6],
|
|
65
|
+
main: themeColor.colorScheme.secondary[themeColor.colorScheme.secondary.main],
|
|
66
|
+
light: themeColor.colorScheme.secondary[1]
|
|
67
|
+
},
|
|
68
|
+
error: {
|
|
69
|
+
main: themeColor.colorScheme.error
|
|
70
|
+
},
|
|
71
|
+
warning: {
|
|
72
|
+
main: themeColor.colorScheme.warning
|
|
73
|
+
},
|
|
74
|
+
info: {
|
|
75
|
+
main: themeColor.colorScheme.info
|
|
76
|
+
},
|
|
77
|
+
success: {
|
|
78
|
+
main: themeColor.colorScheme.success
|
|
79
|
+
},
|
|
80
|
+
background: {
|
|
81
|
+
default: themeColor.colorScheme.background.default
|
|
82
|
+
},
|
|
83
|
+
text: {
|
|
84
|
+
primary: themeColor.colorScheme.text.primary,
|
|
85
|
+
secondary: themeColor.colorScheme.text.secondary,
|
|
86
|
+
disabled: themeColor.colorScheme.disabled
|
|
87
|
+
},
|
|
88
|
+
"text-1": themeColor.colorScheme.text.primary,
|
|
89
|
+
"text-subscript": `color-mix(in lab, ${themeColor.colorScheme.text.subscript}, var(--mui-palette-primary-light) 50%)`,
|
|
90
|
+
"text-href": `color-mix(in lab, var(--mui-palette-primary-main) 10%, var(--mui-palette-focus-1) 90%)`,
|
|
91
|
+
"focus-1": themeColor.colorScheme.focus,
|
|
92
|
+
"shadow-border-1": `inset 0 0 0px 2px var(--mui-palette-primary-gray)`,
|
|
93
|
+
"primary-gray": `color-mix(in lab, var(--mui-palette-primary-main) 80%, hsla(0, 0%, 30%, 1.00) 20%)`
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
// src/theme/colors/lightBrown.ts
|
|
98
|
+
var themeColor2 = {
|
|
99
|
+
themeType: "light",
|
|
100
|
+
name: "lightBrown",
|
|
101
|
+
colorScheme: {
|
|
102
|
+
primary: {
|
|
103
|
+
1: "rgba(255, 255, 255, 1)",
|
|
104
|
+
2: "rgba(255, 255, 220, 1)",
|
|
105
|
+
3: "rgba(255, 245, 215, 1)",
|
|
106
|
+
4: "rgba(255, 245, 215, 1)",
|
|
107
|
+
5: "rgba(245, 220, 165, 1)",
|
|
108
|
+
6: "rgba(240, 200, 165, 1)",
|
|
109
|
+
main: 4
|
|
110
|
+
},
|
|
111
|
+
secondary: {
|
|
112
|
+
1: "rgba(35, 10, 25, 1)",
|
|
113
|
+
2: "rgba(45, 20, 30, 1)",
|
|
114
|
+
3: "rgba(75, 20, 30, 1)",
|
|
115
|
+
4: "rgba(105, 45, 40, 1)",
|
|
116
|
+
5: "rgba(130, 60, 40, 1)",
|
|
117
|
+
6: "rgba(165, 105, 65, 1)",
|
|
118
|
+
main: 4
|
|
119
|
+
},
|
|
120
|
+
error: "rgba(255, 45, 120, 1)",
|
|
121
|
+
warning: "rgba(230, 190, 125, 1)",
|
|
122
|
+
info: "rgba(100, 180, 255, 1)",
|
|
123
|
+
success: "rgba(100, 255, 150, 1)",
|
|
124
|
+
focus: "rgba(255, 45, 120, 1)",
|
|
125
|
+
disabled: "rgba(100, 120, 140, 1)",
|
|
126
|
+
background: {
|
|
127
|
+
default: "rgba(255, 255, 255, 1)"
|
|
128
|
+
},
|
|
129
|
+
text: {
|
|
130
|
+
primary: "rgba(35, 10, 25, 1)",
|
|
131
|
+
secondary: "rgba(180, 200, 220, 1)",
|
|
132
|
+
subscript: "rgba(92, 92, 92, 1)"
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
};
|
|
136
|
+
var muiPalette2 = {
|
|
137
|
+
palette: {
|
|
138
|
+
mode: "dark",
|
|
139
|
+
primary: {
|
|
140
|
+
dark: themeColor2.colorScheme.primary[6],
|
|
141
|
+
main: themeColor2.colorScheme.primary[themeColor2.colorScheme.primary.main],
|
|
142
|
+
light: themeColor2.colorScheme.primary[1]
|
|
143
|
+
},
|
|
144
|
+
secondary: {
|
|
145
|
+
dark: themeColor2.colorScheme.secondary[3],
|
|
146
|
+
main: themeColor2.colorScheme.secondary[themeColor2.colorScheme.secondary.main],
|
|
147
|
+
light: themeColor2.colorScheme.secondary[6]
|
|
148
|
+
},
|
|
149
|
+
error: {
|
|
150
|
+
main: themeColor2.colorScheme.error
|
|
151
|
+
},
|
|
152
|
+
warning: {
|
|
153
|
+
main: themeColor2.colorScheme.warning
|
|
154
|
+
},
|
|
155
|
+
info: {
|
|
156
|
+
main: themeColor2.colorScheme.info
|
|
157
|
+
},
|
|
158
|
+
success: {
|
|
159
|
+
main: themeColor2.colorScheme.success
|
|
160
|
+
},
|
|
161
|
+
background: {
|
|
162
|
+
default: themeColor2.colorScheme.background.default
|
|
163
|
+
},
|
|
164
|
+
text: {
|
|
165
|
+
primary: themeColor2.colorScheme.text.primary,
|
|
166
|
+
secondary: themeColor2.colorScheme.text.secondary,
|
|
167
|
+
disabled: themeColor2.colorScheme.disabled
|
|
168
|
+
},
|
|
169
|
+
"text-1": themeColor2.colorScheme.text.primary,
|
|
170
|
+
"text-subscript": `color-mix(in lab, ${themeColor2.colorScheme.text.subscript}, var(--mui-palette-primary-main) 50%)`,
|
|
171
|
+
"text-href": `color-mix(in lab, var(--mui-palette-primary-main) 10%, var(--mui-palette-focus-1) 90%)`,
|
|
172
|
+
"focus-1": themeColor2.colorScheme.focus,
|
|
173
|
+
"shadow-border-1": `inset 0 0 0px 2px var(--mui-palette-primary-gray)`,
|
|
174
|
+
"primary-gray": `color-mix(in lab, var(--mui-palette-primary-main) 80%, hsla(0, 0%, 30%, 1.00) 20%)`
|
|
175
|
+
}
|
|
176
|
+
};
|
|
177
|
+
|
|
178
|
+
// src/theme/muiTheme.ts
|
|
179
|
+
var theme = createTheme({
|
|
180
|
+
cssVariables: {
|
|
181
|
+
colorSchemeSelector: "data-toolpad-color-scheme"
|
|
182
|
+
},
|
|
183
|
+
colorSchemes: {
|
|
184
|
+
light: muiPalette2,
|
|
185
|
+
dark: muiPalette
|
|
186
|
+
},
|
|
187
|
+
breakpoints: {
|
|
188
|
+
values: {
|
|
189
|
+
xs: 0,
|
|
190
|
+
sm: 600,
|
|
191
|
+
md: 600,
|
|
192
|
+
lg: 1200,
|
|
193
|
+
xl: 1536
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
shape: {
|
|
197
|
+
borderRadius: 8
|
|
198
|
+
},
|
|
199
|
+
// Customize your theme here if needed
|
|
200
|
+
components: {
|
|
201
|
+
// buttons
|
|
202
|
+
MuiButton: buttonTheme,
|
|
203
|
+
MuiButtonBase: buttonBaseTheme,
|
|
204
|
+
MuiIconButton: iconButtonTheme,
|
|
205
|
+
// typography
|
|
206
|
+
MuiTypography: typographyTheme
|
|
207
|
+
}
|
|
208
|
+
});
|
|
209
|
+
|
|
210
|
+
// src/theme/Provider.tsx
|
|
211
|
+
import { jsx } from "react/jsx-runtime";
|
|
212
|
+
function P(p) {
|
|
213
|
+
return /* @__PURE__ */ jsx("html", { children: /* @__PURE__ */ jsx(ThemeProvider2, { theme, children: p.children }) });
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
// src/theme/ToggleThemeButton/ToggleThemeButton.tsx
|
|
217
|
+
import { useColorScheme } from "@mui/material/styles";
|
|
218
|
+
import Brightness7Icon from "@mui/icons-material/Brightness7";
|
|
219
|
+
import Brightness4OutlinedIcon from "@mui/icons-material/Brightness4Outlined";
|
|
220
|
+
import IconButton from "@mui/material/IconButton";
|
|
221
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
222
|
+
function ToggleButton() {
|
|
223
|
+
const { mode, setMode } = useColorScheme();
|
|
224
|
+
const isDark = mode === "dark";
|
|
225
|
+
function toggle() {
|
|
226
|
+
setMode(isDark ? "light" : "dark");
|
|
227
|
+
}
|
|
228
|
+
return /* @__PURE__ */ jsx2(IconButton, { onClick: toggle, children: isDark ? /* @__PURE__ */ jsx2(Brightness7Icon, {}) : /* @__PURE__ */ jsx2(Brightness4OutlinedIcon, {}) });
|
|
229
|
+
}
|
|
230
|
+
export {
|
|
231
|
+
P as ThemeProvider,
|
|
232
|
+
ToggleButton as ToggleThemeButton
|
|
233
|
+
};
|
|
234
|
+
//# sourceMappingURL=theme.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/theme/Provider.tsx","../src/theme/muiTheme.ts","../src/theme/colors/darkBlue.ts","../src/theme/colors/lightBrown.ts","../src/theme/ToggleThemeButton/ToggleThemeButton.tsx"],"sourcesContent":["import { ThemeProvider, } from '@mui/material/styles';\n\nimport { theme } from './muiTheme'\n\nexport default function P(p: { children: React.ReactNode }) {\n return (\n <html>\n <ThemeProvider theme={theme}>\n {p.children}\n </ThemeProvider>\n </html>);\n}","import { ThemeProvider, createTheme } from '@mui/material/styles';\n\nimport { buttonTheme, buttonBaseTheme, iconButtonTheme } from '@/ele/Button';\nimport { typographyTheme } from '@/ele/Typography';\n\nimport { muiPalette as darkBlueMuiPalette } from './colors/darkBlue';\nimport { muiPalette as lightBrownMuiPalette } from './colors/lightBrown';\nimport './styles/font.css';\n\nexport const theme = createTheme({\n cssVariables: {\n colorSchemeSelector: 'data-toolpad-color-scheme',\n },\n colorSchemes: {\n light: lightBrownMuiPalette,\n dark: darkBlueMuiPalette,\n },\n breakpoints: {\n values: {\n xs: 0,\n sm: 600,\n md: 600,\n lg: 1200,\n xl: 1536,\n },\n },\n shape: {\n borderRadius: 8,\n },\n // Customize your theme here if needed\n components: {\n // buttons\n MuiButton: buttonTheme,\n MuiButtonBase: buttonBaseTheme,\n MuiIconButton: iconButtonTheme,\n // typography\n MuiTypography: typographyTheme,\n },\n});","\nimport { \n type ColorTheme, \n type ColorSystemOptions \n} from './_utils'\n\nconst themeColor = {\n themeType: 'dark',\n name: 'darkBlue',\n\n colorScheme:{\n primary:{\n 1: 'rgba(5, 20, 35, 1)',\n 2: 'rgba(20, 40, 65, 1)',\n 3: 'rgba(40, 80, 110, 1)',\n 4: 'rgba(65, 110, 140, 1)',\n 5: 'rgba(90, 140, 170, 1)',\n 6: 'rgba(115, 170, 200, 1)',\n main: 2,\n },\n secondary:{\n 1: 'rgba(250, 250, 255, 1)',\n 2: 'rgba(245, 245, 255, 1)',\n 3: 'rgba(200, 235, 240, 1)',\n 4: 'rgba(165, 220, 225, 1)',\n 5: 'rgba(125, 200, 210, 1)',\n 6: 'rgba(20, 215, 215, 1)',\n main: 5,\n },\n error: 'rgba(255, 0, 100, 1)',\n warning: 'rgba(230, 190, 125, 1)',\n info: 'rgba(100, 180, 255, 1)',\n success: 'rgba(100, 255, 150, 1)',\n focus: 'rgba(255, 0, 100, 1)',\n disabled: 'rgba(100, 120, 140, 1)',\n background: {\n default: 'rgba(29, 29, 29, 1)',\n },\n text: {\n primary: 'rgba(240, 240, 255, 1)',\n secondary: 'rgba(180, 200, 220, 1)',\n subscript: 'rgba(137, 137, 150, 1)',\n }\n },\n\n} as const satisfies ColorTheme\n\nexport const muiPalette = {\n palette: {\n mode: 'dark',\n primary: {\n dark: themeColor.colorScheme.primary[1],\n main: themeColor.colorScheme.primary[themeColor.colorScheme.primary.main],\n light: themeColor.colorScheme.primary[6],\n },\n secondary: {\n dark: themeColor.colorScheme.secondary[6],\n main: themeColor.colorScheme.secondary[themeColor.colorScheme.secondary.main],\n light: themeColor.colorScheme.secondary[1],\n },\n error: {\n main: themeColor.colorScheme.error,\n },\n warning: {\n main: themeColor.colorScheme.warning,\n },\n info: {\n main: themeColor.colorScheme.info,\n },\n success: {\n main: themeColor.colorScheme.success,\n },\n background: {\n default: themeColor.colorScheme.background.default,\n },\n text: {\n primary: themeColor.colorScheme.text.primary,\n secondary: themeColor.colorScheme.text.secondary,\n disabled: themeColor.colorScheme.disabled,\n },\n\n \"text-1\": themeColor.colorScheme.text.primary,\n \"text-subscript\": `color-mix(in lab, ${themeColor.colorScheme.text.subscript}, var(--mui-palette-primary-light) 50%)`, \n \"text-href\": `color-mix(in lab, var(--mui-palette-primary-main) 10%, var(--mui-palette-focus-1) 90%)`,\n \"focus-1\": themeColor.colorScheme.focus,\n \"shadow-border-1\": `inset 0 0 0px 2px var(--mui-palette-primary-gray)`,\n \"primary-gray\": `color-mix(in lab, var(--mui-palette-primary-main) 80%, hsla(0, 0%, 30%, 1.00) 20%)`,\n },\n} as const satisfies ColorSystemOptions","\nimport { \n type ColorTheme, \n type ColorSystemOptions \n} from './_utils'\n\nexport const themeColor = {\n themeType: 'light',\n name: 'lightBrown',\n\n colorScheme:{\n primary:{\n 1: 'rgba(255, 255, 255, 1)',\n 2: 'rgba(255, 255, 220, 1)',\n 3: 'rgba(255, 245, 215, 1)',\n 4: 'rgba(255, 245, 215, 1)',\n 5: 'rgba(245, 220, 165, 1)',\n 6: 'rgba(240, 200, 165, 1)',\n main: 4,\n },\n secondary:{\n 1: 'rgba(35, 10, 25, 1)',\n 2: 'rgba(45, 20, 30, 1)',\n 3: 'rgba(75, 20, 30, 1)',\n 4: 'rgba(105, 45, 40, 1)',\n 5: 'rgba(130, 60, 40, 1)',\n 6: 'rgba(165, 105, 65, 1)',\n main: 4,\n },\n error: 'rgba(255, 45, 120, 1)',\n warning: 'rgba(230, 190, 125, 1)',\n info: 'rgba(100, 180, 255, 1)',\n success: 'rgba(100, 255, 150, 1)',\n focus: 'rgba(255, 45, 120, 1)',\n disabled: 'rgba(100, 120, 140, 1)',\n background: {\n default: 'rgba(255, 255, 255, 1)',\n },\n text: {\n primary: 'rgba(35, 10, 25, 1)',\n secondary: 'rgba(180, 200, 220, 1)',\n subscript: 'rgba(92, 92, 92, 1)',\n }\n },\n\n} as const satisfies ColorTheme\n\nexport const muiPalette = {\n palette: {\n mode: 'dark',\n primary: {\n dark: themeColor.colorScheme.primary[6],\n main: themeColor.colorScheme.primary[themeColor.colorScheme.primary.main],\n light: themeColor.colorScheme.primary[1],\n },\n secondary: {\n dark: themeColor.colorScheme.secondary[3],\n main: themeColor.colorScheme.secondary[themeColor.colorScheme.secondary.main],\n light: themeColor.colorScheme.secondary[6],\n },\n error: {\n main: themeColor.colorScheme.error,\n },\n warning: {\n main: themeColor.colorScheme.warning,\n },\n info: {\n main: themeColor.colorScheme.info,\n },\n success: {\n main: themeColor.colorScheme.success,\n },\n background: {\n default: themeColor.colorScheme.background.default,\n },\n text: {\n primary: themeColor.colorScheme.text.primary,\n secondary: themeColor.colorScheme.text.secondary,\n disabled: themeColor.colorScheme.disabled,\n },\n\n \"text-1\": themeColor.colorScheme.text.primary,\n \"text-subscript\": `color-mix(in lab, ${themeColor.colorScheme.text.subscript}, var(--mui-palette-primary-main) 50%)`, \n \"text-href\": `color-mix(in lab, var(--mui-palette-primary-main) 10%, var(--mui-palette-focus-1) 90%)`,\n \"focus-1\": themeColor.colorScheme.focus,\n \"shadow-border-1\": `inset 0 0 0px 2px var(--mui-palette-primary-gray)`,\n \"primary-gray\": `color-mix(in lab, var(--mui-palette-primary-main) 80%, hsla(0, 0%, 30%, 1.00) 20%)`,\n },\n} as const satisfies ColorSystemOptions","import { useColorScheme, } from '@mui/material/styles';\nimport Brightness7Icon from '@mui/icons-material/Brightness7';\nimport Brightness4OutlinedIcon from '@mui/icons-material/Brightness4Outlined';\n\nimport IconButton from '@mui/material/IconButton'\n\nexport default function ToggleButton() {\n const { mode, setMode } = useColorScheme();\n const isDark = mode === 'dark';\n\n function toggle() {\n setMode(isDark ? 'light' : 'dark');\n }\n return (\n <IconButton onClick={toggle}>\n {isDark ? <Brightness7Icon /> : <Brightness4OutlinedIcon />}\n </IconButton>\n );\n}"],"mappings":";;;;;;;;;;AAAA,SAAS,iBAAAA,sBAAsB;;;ACA/B,SAAwB,mBAAmB;;;ACM3C,IAAM,aAAa;AAAA,EACjB,WAAW;AAAA,EACX,MAAM;AAAA,EAEN,aAAY;AAAA,IACV,SAAQ;AAAA,MACN,GAAG;AAAA,MACH,GAAG;AAAA,MACH,GAAG;AAAA,MACH,GAAG;AAAA,MACH,GAAG;AAAA,MACH,GAAG;AAAA,MACH,MAAM;AAAA,IACR;AAAA,IACA,WAAU;AAAA,MACR,GAAG;AAAA,MACH,GAAG;AAAA,MACH,GAAG;AAAA,MACH,GAAG;AAAA,MACH,GAAG;AAAA,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AAQ,IAAI,eAAe;AACzC,QAAM,SAAS,SAAS;AAExB,WAAS,SAAS;AAChB,YAAQ,SAAS,UAAU,MAAM;AAAA,EACnC;AACA,SACE,gBAAAA,KAAC,cAAW,SAAS,QAClB,mBAAS,gBAAAA,KAAC,mBAAgB,IAAK,gBAAAA,KAAC,2BAAwB,GAC3D;AAEJ;","names":["ThemeProvider","themeColor","muiPalette","muiPalette","ThemeProvider","jsx"]}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import * as _mui_material_Typography from '@mui/material/Typography';
|
|
2
|
+
import { TypographyProps } from '@mui/material/Typography';
|
|
3
|
+
export { default as Typography } from '@mui/material/Typography';
|
|
4
|
+
import * as _emotion_styled from '@emotion/styled';
|
|
5
|
+
import * as _mui_system from '@mui/system';
|
|
6
|
+
import * as _mui_material_styles from '@mui/material/styles';
|
|
7
|
+
import * as react from 'react';
|
|
8
|
+
import * as _mui_material_OverridableComponent from '@mui/material/OverridableComponent';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Mui Typography with variant h5
|
|
12
|
+
*
|
|
13
|
+
* [Doc](https://material-ui.com/api/typography/)
|
|
14
|
+
*/
|
|
15
|
+
declare const Header: React.FC<{
|
|
16
|
+
children?: React.ReactNode;
|
|
17
|
+
} & TypographyProps>;
|
|
18
|
+
/**
|
|
19
|
+
* Mui Typography with variant h6
|
|
20
|
+
*
|
|
21
|
+
* [Doc](https://material-ui.com/api/typography/)
|
|
22
|
+
*/
|
|
23
|
+
declare const SubHeader: React.FC<TypographyProps>;
|
|
24
|
+
/**
|
|
25
|
+
* Mui Typography with variant subtitle1
|
|
26
|
+
*
|
|
27
|
+
* [Doc](https://material-ui.com/api/typography/)
|
|
28
|
+
*/
|
|
29
|
+
declare const SubTitle: React.FC<TypographyProps>;
|
|
30
|
+
/**
|
|
31
|
+
* Mui Typography with variant caption
|
|
32
|
+
*
|
|
33
|
+
* [Doc](https://material-ui.com/api/typography/)
|
|
34
|
+
*/
|
|
35
|
+
declare const Subscript: React.FC<React.ComponentProps<typeof MSContainer> & React.ComponentProps<typeof MS>>;
|
|
36
|
+
declare const MS: _emotion_styled.StyledComponent<_mui_material_Typography.TypographyOwnProps & _mui_material_OverridableComponent.CommonProps & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "className" | "style" | "classes" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "marginInline" | "marginInlineStart" | "marginInlineEnd" | "marginBlock" | "marginBlockStart" | "marginBlockEnd" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "paddingInline" | "paddingInlineStart" | "paddingInlineEnd" | "paddingBlock" | "paddingBlockStart" | "paddingBlockEnd" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform" | "align" | "children" | "gutterBottom" | "noWrap" | "paragraph" | "sx" | "variant" | "variantMapping"> & _mui_system.MUIStyledCommonProps<_mui_material_styles.Theme>, {}, {}>;
|
|
37
|
+
declare const MSContainer: _emotion_styled.StyledComponent<_mui_system.BoxOwnProps<_mui_material_styles.Theme> & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof _mui_system.BoxOwnProps<_mui_material_styles.Theme>> & _mui_system.MUIStyledCommonProps<_mui_material_styles.Theme> & {
|
|
38
|
+
color?: string;
|
|
39
|
+
fontSize?: string;
|
|
40
|
+
lineHeight?: string;
|
|
41
|
+
}, {}, {}>;
|
|
42
|
+
/**
|
|
43
|
+
* Mui Typography with variant body
|
|
44
|
+
*
|
|
45
|
+
* [Doc](https://material-ui.com/api/typography/)
|
|
46
|
+
*/
|
|
47
|
+
declare const Body: React.FC<React.ComponentProps<typeof MB>>;
|
|
48
|
+
declare const MB: _emotion_styled.StyledComponent<_mui_material_Typography.TypographyOwnProps & _mui_material_OverridableComponent.CommonProps & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "className" | "style" | "classes" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "marginInline" | "marginInlineStart" | "marginInlineEnd" | "marginBlock" | "marginBlockStart" | "marginBlockEnd" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "paddingInline" | "paddingInlineStart" | "paddingInlineEnd" | "paddingBlock" | "paddingBlockStart" | "paddingBlockEnd" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform" | "align" | "children" | "gutterBottom" | "noWrap" | "paragraph" | "sx" | "variant" | "variantMapping"> & _mui_system.MUIStyledCommonProps<_mui_material_styles.Theme> & {
|
|
49
|
+
color?: string;
|
|
50
|
+
}, {}, {}>;
|
|
51
|
+
|
|
52
|
+
declare const typographyTheme: {
|
|
53
|
+
readonly styleOverrides: {
|
|
54
|
+
readonly root: {
|
|
55
|
+
readonly color: "var(--mui-palette-text-1)";
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
export { Body, Header, SubHeader, SubTitle, Subscript, typographyTheme };
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import * as _mui_material_Typography from '@mui/material/Typography';
|
|
2
|
+
import { TypographyProps } from '@mui/material/Typography';
|
|
3
|
+
export { default as Typography } from '@mui/material/Typography';
|
|
4
|
+
import * as _emotion_styled from '@emotion/styled';
|
|
5
|
+
import * as _mui_system from '@mui/system';
|
|
6
|
+
import * as _mui_material_styles from '@mui/material/styles';
|
|
7
|
+
import * as react from 'react';
|
|
8
|
+
import * as _mui_material_OverridableComponent from '@mui/material/OverridableComponent';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Mui Typography with variant h5
|
|
12
|
+
*
|
|
13
|
+
* [Doc](https://material-ui.com/api/typography/)
|
|
14
|
+
*/
|
|
15
|
+
declare const Header: React.FC<{
|
|
16
|
+
children?: React.ReactNode;
|
|
17
|
+
} & TypographyProps>;
|
|
18
|
+
/**
|
|
19
|
+
* Mui Typography with variant h6
|
|
20
|
+
*
|
|
21
|
+
* [Doc](https://material-ui.com/api/typography/)
|
|
22
|
+
*/
|
|
23
|
+
declare const SubHeader: React.FC<TypographyProps>;
|
|
24
|
+
/**
|
|
25
|
+
* Mui Typography with variant subtitle1
|
|
26
|
+
*
|
|
27
|
+
* [Doc](https://material-ui.com/api/typography/)
|
|
28
|
+
*/
|
|
29
|
+
declare const SubTitle: React.FC<TypographyProps>;
|
|
30
|
+
/**
|
|
31
|
+
* Mui Typography with variant caption
|
|
32
|
+
*
|
|
33
|
+
* [Doc](https://material-ui.com/api/typography/)
|
|
34
|
+
*/
|
|
35
|
+
declare const Subscript: React.FC<React.ComponentProps<typeof MSContainer> & React.ComponentProps<typeof MS>>;
|
|
36
|
+
declare const MS: _emotion_styled.StyledComponent<_mui_material_Typography.TypographyOwnProps & _mui_material_OverridableComponent.CommonProps & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "className" | "style" | "classes" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "marginInline" | "marginInlineStart" | "marginInlineEnd" | "marginBlock" | "marginBlockStart" | "marginBlockEnd" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "paddingInline" | "paddingInlineStart" | "paddingInlineEnd" | "paddingBlock" | "paddingBlockStart" | "paddingBlockEnd" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform" | "align" | "children" | "gutterBottom" | "noWrap" | "paragraph" | "sx" | "variant" | "variantMapping"> & _mui_system.MUIStyledCommonProps<_mui_material_styles.Theme>, {}, {}>;
|
|
37
|
+
declare const MSContainer: _emotion_styled.StyledComponent<_mui_system.BoxOwnProps<_mui_material_styles.Theme> & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof _mui_system.BoxOwnProps<_mui_material_styles.Theme>> & _mui_system.MUIStyledCommonProps<_mui_material_styles.Theme> & {
|
|
38
|
+
color?: string;
|
|
39
|
+
fontSize?: string;
|
|
40
|
+
lineHeight?: string;
|
|
41
|
+
}, {}, {}>;
|
|
42
|
+
/**
|
|
43
|
+
* Mui Typography with variant body
|
|
44
|
+
*
|
|
45
|
+
* [Doc](https://material-ui.com/api/typography/)
|
|
46
|
+
*/
|
|
47
|
+
declare const Body: React.FC<React.ComponentProps<typeof MB>>;
|
|
48
|
+
declare const MB: _emotion_styled.StyledComponent<_mui_material_Typography.TypographyOwnProps & _mui_material_OverridableComponent.CommonProps & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "className" | "style" | "classes" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "marginInline" | "marginInlineStart" | "marginInlineEnd" | "marginBlock" | "marginBlockStart" | "marginBlockEnd" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "paddingInline" | "paddingInlineStart" | "paddingInlineEnd" | "paddingBlock" | "paddingBlockStart" | "paddingBlockEnd" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform" | "align" | "children" | "gutterBottom" | "noWrap" | "paragraph" | "sx" | "variant" | "variantMapping"> & _mui_system.MUIStyledCommonProps<_mui_material_styles.Theme> & {
|
|
49
|
+
color?: string;
|
|
50
|
+
}, {}, {}>;
|
|
51
|
+
|
|
52
|
+
declare const typographyTheme: {
|
|
53
|
+
readonly styleOverrides: {
|
|
54
|
+
readonly root: {
|
|
55
|
+
readonly color: "var(--mui-palette-text-1)";
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
export { Body, Header, SubHeader, SubTitle, Subscript, typographyTheme };
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
|
|
30
|
+
// src/components/elemental/Typography/index.ts
|
|
31
|
+
var Typography_exports = {};
|
|
32
|
+
__export(Typography_exports, {
|
|
33
|
+
Body: () => Body,
|
|
34
|
+
Header: () => Header,
|
|
35
|
+
SubHeader: () => SubHeader,
|
|
36
|
+
SubTitle: () => SubTitle,
|
|
37
|
+
Subscript: () => Subscript,
|
|
38
|
+
Typography: () => import_Typography.default,
|
|
39
|
+
typographyTheme: () => typographyTheme
|
|
40
|
+
});
|
|
41
|
+
module.exports = __toCommonJS(Typography_exports);
|
|
42
|
+
|
|
43
|
+
// src/components/elemental/Typography/src/Typography.ts
|
|
44
|
+
var import_Typography = __toESM(require("@mui/material/Typography"));
|
|
45
|
+
|
|
46
|
+
// src/components/elemental/Typography/src/Variants.tsx
|
|
47
|
+
var import_Typography2 = __toESM(require("@mui/material/Typography"));
|
|
48
|
+
var import_Box = __toESM(require("@mui/material/Box"));
|
|
49
|
+
var import_styles = require("@mui/material/styles");
|
|
50
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
51
|
+
var Header = (props) => {
|
|
52
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MH, { variant: "h5", ...props });
|
|
53
|
+
};
|
|
54
|
+
var MH = (0, import_styles.styled)(import_Typography2.default)({
|
|
55
|
+
fontWeight: "700"
|
|
56
|
+
});
|
|
57
|
+
var SubHeader = (props) => {
|
|
58
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Typography2.default, { variant: "h6", ...props });
|
|
59
|
+
};
|
|
60
|
+
var SubTitle = (props) => {
|
|
61
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MST, { variant: "subtitle1", ...props });
|
|
62
|
+
};
|
|
63
|
+
var MST = (0, import_styles.styled)(import_Typography2.default, {})(() => ({}));
|
|
64
|
+
var Subscript = (props) => {
|
|
65
|
+
const { color, fontSize, lineHeight, ...rest } = props;
|
|
66
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MSContainer, { color, fontSize, lineHeight, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MS, { variant: "caption", ...rest }) });
|
|
67
|
+
};
|
|
68
|
+
var MS = (0, import_styles.styled)(import_Typography2.default)({
|
|
69
|
+
"&.MuiTypography-root": {
|
|
70
|
+
color: "inherit",
|
|
71
|
+
fontSize: "inherit",
|
|
72
|
+
lineHeight: "inherit",
|
|
73
|
+
textOverflow: "ellipsis",
|
|
74
|
+
overflow: "hidden",
|
|
75
|
+
cursor: "inherit"
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
var MSContainer = (0, import_styles.styled)(import_Box.default, {
|
|
79
|
+
shouldForwardProp: (prop) => prop !== "color" && prop !== "fontSize" && prop !== "lineHeight"
|
|
80
|
+
})(({
|
|
81
|
+
color = "var(--mui-palette-text-subscript)",
|
|
82
|
+
fontSize = "0.75rem",
|
|
83
|
+
lineHeight = "1.66"
|
|
84
|
+
}) => ({
|
|
85
|
+
"&": {
|
|
86
|
+
"--fs": fontSize,
|
|
87
|
+
"--lh": lineHeight,
|
|
88
|
+
"--c": color,
|
|
89
|
+
fontSize: "var(--fs)",
|
|
90
|
+
lineHeight: "var(--lh)",
|
|
91
|
+
color: "var(--c)",
|
|
92
|
+
textOverflow: "ellipsis",
|
|
93
|
+
overflow: "hidden"
|
|
94
|
+
}
|
|
95
|
+
}));
|
|
96
|
+
var Body = (props) => {
|
|
97
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MB, { variant: "body1", ...props });
|
|
98
|
+
};
|
|
99
|
+
var MB = (0, import_styles.styled)(import_Typography2.default, {
|
|
100
|
+
shouldForwardProp: (prop) => prop !== "color"
|
|
101
|
+
})(({ color = "var(--Color-Text-1)" }) => ({
|
|
102
|
+
"&.MuiTypography-root.MuiTypography-body1": {
|
|
103
|
+
"--color": color,
|
|
104
|
+
color: "var(--color)",
|
|
105
|
+
whiteSpace: "pre",
|
|
106
|
+
textOverflow: "ellipsis",
|
|
107
|
+
overflow: "hidden",
|
|
108
|
+
cursor: "inherit"
|
|
109
|
+
}
|
|
110
|
+
}));
|
|
111
|
+
|
|
112
|
+
// src/components/elemental/Typography/src/theme.ts
|
|
113
|
+
var typographyTheme = {
|
|
114
|
+
styleOverrides: {
|
|
115
|
+
root: {
|
|
116
|
+
color: "var(--mui-palette-text-1)"
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
121
|
+
0 && (module.exports = {
|
|
122
|
+
Body,
|
|
123
|
+
Header,
|
|
124
|
+
SubHeader,
|
|
125
|
+
SubTitle,
|
|
126
|
+
Subscript,
|
|
127
|
+
Typography,
|
|
128
|
+
typographyTheme
|
|
129
|
+
});
|
|
130
|
+
//# sourceMappingURL=typography.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/elemental/Typography/index.ts","../src/components/elemental/Typography/src/Typography.ts","../src/components/elemental/Typography/src/Variants.tsx","../src/components/elemental/Typography/src/theme.ts"],"sourcesContent":["export * from './src'","export { default } from '@mui/material/Typography'","'use client'\nimport Typography, {type TypographyProps} from '@mui/material/Typography'\nimport Box from '@mui/material/Box'\nimport { styled } from '@mui/material/styles'\n\n/**\n * Mui Typography with variant h5\n * \n * [Doc](https://material-ui.com/api/typography/)\n */\nexport const Header :React.FC<{\n\tchildren?: React.ReactNode, \n} & TypographyProps> = (props) => {\n\treturn (\n\t\t<MH variant=\"h5\" {...props}/>\n\t)\n}\nconst MH = styled(Typography)({\n\tfontWeight: \"700\",\n})\n\n\n/**\n * Mui Typography with variant h6\n * \n * [Doc](https://material-ui.com/api/typography/)\n */\nexport const SubHeader:React.FC<TypographyProps> = (props) => {\n\treturn (\n\t\t<Typography variant=\"h6\" {...props}/>\n\t)\n}\n\n/**\n * Mui Typography with variant subtitle1\n * \n * [Doc](https://material-ui.com/api/typography/)\n */\nexport const SubTitle:React.FC<TypographyProps> = (props) => {\n\treturn (\n\t\t<MST variant=\"subtitle1\" {...props}/>\n\t)\n}\nconst MST = styled(Typography,{})(()=>({}))\n\n/**\n * Mui Typography with variant caption\n * \n * [Doc](https://material-ui.com/api/typography/)\n */\nexport const Subscript:React.FC<\n React.ComponentProps<typeof MSContainer>\n & React.ComponentProps<typeof MS>\n> = (props) => {\n\tconst {color, fontSize, lineHeight, ...rest} = props\n // need to add a container to wrap the span, so that the overflow text ... will share the same color with the text\n // https://stackoverflow.com/questions/21861125/set-dot-color-of-text-overflow-ellipsis\n return (\n <MSContainer color={color} fontSize={fontSize} lineHeight={lineHeight}>\n\t\t <MS variant=\"caption\" {...rest}/>\n </MSContainer>\n\t)\n}\nconst MS = styled(Typography,)({\n\t\"&.MuiTypography-root\":{\n\t\tcolor: 'inherit',\n fontSize: 'inherit',\n lineHeight: 'inherit',\n\t\ttextOverflow: 'ellipsis',\n\t\toverflow: 'hidden', \n\t\tcursor: 'inherit',\n\t},\n})\nconst MSContainer = styled(Box,{\n\tshouldForwardProp: (prop) => \n\t\tprop !== 'color' \n\t\t&& prop !== 'fontSize'\n\t\t&& prop !== 'lineHeight',\n})<{color?:string, fontSize?:string, lineHeight?:string}>(({\n\tcolor='var(--mui-palette-text-subscript)', \n\tfontSize='0.75rem', \n\tlineHeight='1.66'\n})=>({\n\t\"&\":{\n\t\t\"--fs\": fontSize,\n\t\t\"--lh\": lineHeight,\n\t\t\"--c\": color,\n\t\tfontSize: 'var(--fs)',\n\t\tlineHeight: 'var(--lh)',\n\t\tcolor: 'var(--c)',\n\t\ttextOverflow: 'ellipsis',\n\t\toverflow: 'hidden', \n\t},\n}))\n\n\n/**\n * Mui Typography with variant body\n * \n * [Doc](https://material-ui.com/api/typography/)\n */\nexport const Body:React.FC<React.ComponentProps<typeof MB>> = (props) => {\n\treturn (\n\t\t<MB variant=\"body1\" {...props}/>\n\t)\n}\nconst MB = styled(Typography,{\n\tshouldForwardProp: (prop) => prop !== 'color',\n})<{color?:string}>(({color='var(--Color-Text-1)'})=>({\n\t\"&.MuiTypography-root.MuiTypography-body1\":{\n\t\t\"--color\": color,\n\t\tcolor: \"var(--color)\",\n\t\twhiteSpace: 'pre',\n\t\ttextOverflow: 'ellipsis',\n\t\toverflow: 'hidden',\n\t\tcursor: 'inherit',\n\t},\n}))","import type { MuiComponentTheme } from '@/_utils/_types'\n\nexport const typographyTheme = {\n styleOverrides: {\n root: {\n color: 'var(--mui-palette-text-1)',\n }\n }\n\n} as const satisfies MuiComponentTheme<\"MuiTypography\">"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AA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AA,IACP,cAAc;AAAA,IACd,UAAU;AAAA,EACX;AACD,EAAE;AAQK,IAAM,OAAiD,CAAC,UAAU;AACxE,SACC,4CAAC,MAAG,SAAQ,SAAS,GAAG,OAAM;AAEhC;AACA,IAAM,SAAK,sBAAO,mBAAAD,SAAW;AAAA,EAC5B,mBAAmB,CAAC,SAAS,SAAS;AACvC,CAAC,EAAmB,CAAC,EAAC,QAAM,sBAAqB,OAAK;AAAA,EACrD,4CAA2C;AAAA,IAC1C,WAAW;AAAA,IACX,OAAO;AAAA,IACP,YAAY;AAAA,IACZ,cAAc;AAAA,IACd,UAAU;AAAA,IACV,QAAQ;AAAA,EACT;AACD,EAAE;;;ACnHK,IAAM,kBAAkB;AAAA,EAC7B,gBAAgB;AAAA,IACd,MAAM;AAAA,MACJ,OAAO;AAAA,IACT;AAAA,EACF;AAEF;","names":["import_Typography","Typography","Box"]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Body,
|
|
3
|
+
Header,
|
|
4
|
+
SubHeader,
|
|
5
|
+
SubTitle,
|
|
6
|
+
Subscript,
|
|
7
|
+
default as default2,
|
|
8
|
+
typographyTheme
|
|
9
|
+
} from "./chunk-YGBJCPUS.mjs";
|
|
10
|
+
export {
|
|
11
|
+
Body,
|
|
12
|
+
Header,
|
|
13
|
+
SubHeader,
|
|
14
|
+
SubTitle,
|
|
15
|
+
Subscript,
|
|
16
|
+
default2 as Typography,
|
|
17
|
+
typographyTheme
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=typography.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/package.json
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@startdownnotez404/ui",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "A reusable React component library built with TypeScript",
|
|
5
|
+
"main": "dist/index.cjs",
|
|
6
|
+
"module": "dist/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist"
|
|
10
|
+
],
|
|
11
|
+
"scripts": {
|
|
12
|
+
"build": "tsup",
|
|
13
|
+
"dev": "vite",
|
|
14
|
+
"prepare": "npm run build",
|
|
15
|
+
"test": "echo \"No tests yet\" && exit 0",
|
|
16
|
+
"storybook": "storybook dev -p 6006 --initial-path=/onboarding --no-open",
|
|
17
|
+
"build-storybook": "storybook build"
|
|
18
|
+
},
|
|
19
|
+
"keywords": [
|
|
20
|
+
"react",
|
|
21
|
+
"typescript",
|
|
22
|
+
"component",
|
|
23
|
+
"library"
|
|
24
|
+
],
|
|
25
|
+
"author": "",
|
|
26
|
+
"license": "MIT",
|
|
27
|
+
"peerDependencies": {
|
|
28
|
+
"react": ">=17",
|
|
29
|
+
"react-dom": ">=17"
|
|
30
|
+
},
|
|
31
|
+
"devDependencies": {
|
|
32
|
+
"@storybook/addon-docs": "^9.1.13",
|
|
33
|
+
"@storybook/addon-onboarding": "^9.1.13",
|
|
34
|
+
"@storybook/react-vite": "^9.1.13",
|
|
35
|
+
"@types/react": "^19.2.2",
|
|
36
|
+
"@types/react-dom": "^19.2.2",
|
|
37
|
+
"storybook": "^9.1.13",
|
|
38
|
+
"tsup": "^8.5.0",
|
|
39
|
+
"typescript": "^5.9.3",
|
|
40
|
+
"vite": "^7.1.10"
|
|
41
|
+
},
|
|
42
|
+
"dependencies": {
|
|
43
|
+
"@emotion/react": "^11.14.0",
|
|
44
|
+
"@emotion/styled": "^11.14.1",
|
|
45
|
+
"@mui/icons-material": "^7.3.4",
|
|
46
|
+
"@mui/material": "^7.3.4",
|
|
47
|
+
"@mui/x-date-pickers": "^8.14.1",
|
|
48
|
+
"dayjs": "^1.11.18"
|
|
49
|
+
}
|
|
50
|
+
}
|