@spesia/ui 1.0.5 → 1.8.21
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 +2 -2
- package/dist/components/Logo/Logo.d.ts +1 -1
- package/dist/components/Logo3d/Logo3d.d.ts +7 -0
- package/dist/components/TrendingChip/TrendingChip.d.ts +2 -1
- package/dist/components/checkbox/Checked.d.ts +3 -0
- package/dist/components/checkbox/Unchecked.d.ts +3 -0
- package/dist/components/chip-list/ChipList.d.ts +18 -0
- package/dist/components/container-grid/ContainerGrid.d.ts +31 -0
- package/dist/components/date-picker/DatePicker/DatePicker.d.ts +33 -0
- package/dist/components/date-picker/PeriodPicker/PeriodPicker.d.ts +36 -0
- package/dist/components/date-picker/utils.d.ts +2 -0
- package/dist/components/filters/Checked.d.ts +2 -0
- package/dist/components/filters/FilterList.d.ts +15 -0
- package/dist/components/filters/Unchecked.d.ts +3 -0
- package/dist/components/index.d.ts +7 -0
- package/dist/components/radio/Checked.d.ts +3 -0
- package/dist/components/radio/Unchecked.d.ts +3 -0
- package/dist/fonts/F37August/F37August-Medium.woff +0 -0
- package/dist/fonts/F37August/F37August-Medium.woff2 +0 -0
- package/dist/fonts/F37August/F37August-Regular.ttf +0 -0
- package/dist/fonts/F37August/F37August-Regular.woff +0 -0
- package/dist/fonts/F37August/F37August-Regular.woff2 +0 -0
- package/dist/fonts/F37August/F37August-SemiBold.woff +0 -0
- package/dist/fonts/F37August/F37August-SemiBold.woff2 +0 -0
- package/dist/fonts/FeatureDeck/FeatureDeck-Bold-Web.woff2 +0 -0
- package/dist/fonts/GTPressura/GT-Pressura-Mono-Bold.woff +0 -0
- package/dist/fonts/GTPressura/GT-Pressura-Mono-Bold.woff2 +0 -0
- package/dist/fonts/GTPressura/GT-Pressura-Mono-Regular.woff +0 -0
- package/dist/fonts/GTPressura/GT-Pressura-Mono-Regular.woff2 +0 -0
- package/dist/fonts.scss +44 -18
- package/dist/helpers/__tests__/suitCx.test.d.ts +1 -0
- package/dist/hooks/useContainerDimension.d.ts +7 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +35880 -2368
- package/dist/logo-3d.svg +9 -0
- package/dist/logo-icon.svg +6 -0
- package/dist/logo-text.svg +14 -0
- package/dist/styles/button/button.d.ts +5 -2
- package/dist/styles/checkbox/checkbox.d.ts +9 -0
- package/dist/styles/chip/chip.d.ts +0 -5
- package/dist/styles/colors.d.ts +308 -57
- package/dist/styles/palette.d.ts +45 -4
- package/dist/styles/radio/radio.d.ts +3 -0
- package/dist/styles/switch/switch.d.ts +3 -0
- package/dist/styles/tab/tab.d.ts +2 -1
- package/dist/styles/typography.d.ts +235 -2
- package/package.json +33 -28
|
@@ -1,2 +1,235 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const
|
|
1
|
+
import { ComponentStyles } from '.';
|
|
2
|
+
export declare const toPx: (value: number) => string;
|
|
3
|
+
export declare const toRem: (value: number, baseFontSize?: number) => string;
|
|
4
|
+
declare const typography: {
|
|
5
|
+
h1: {
|
|
6
|
+
fontWeight: string;
|
|
7
|
+
letterSpacing?: string | undefined;
|
|
8
|
+
fontSize: string;
|
|
9
|
+
lineHeight: string;
|
|
10
|
+
fontFamily: string;
|
|
11
|
+
};
|
|
12
|
+
h2: {
|
|
13
|
+
fontWeight: string;
|
|
14
|
+
letterSpacing?: string | undefined;
|
|
15
|
+
fontSize: string;
|
|
16
|
+
lineHeight: string;
|
|
17
|
+
fontFamily: string;
|
|
18
|
+
};
|
|
19
|
+
h3: {
|
|
20
|
+
fontWeight: string;
|
|
21
|
+
letterSpacing?: string | undefined;
|
|
22
|
+
fontSize: string;
|
|
23
|
+
lineHeight: string;
|
|
24
|
+
fontFamily: string;
|
|
25
|
+
};
|
|
26
|
+
h4: {
|
|
27
|
+
fontWeight: number;
|
|
28
|
+
letterSpacing?: string | undefined;
|
|
29
|
+
fontSize: string;
|
|
30
|
+
lineHeight: string;
|
|
31
|
+
fontFamily: string;
|
|
32
|
+
};
|
|
33
|
+
h5: {
|
|
34
|
+
fontWeight: number;
|
|
35
|
+
letterSpacing?: string | undefined;
|
|
36
|
+
fontSize: string;
|
|
37
|
+
lineHeight: string;
|
|
38
|
+
fontFamily: string;
|
|
39
|
+
};
|
|
40
|
+
h6: {
|
|
41
|
+
fontWeight: number;
|
|
42
|
+
letterSpacing?: string | undefined;
|
|
43
|
+
fontSize: string;
|
|
44
|
+
lineHeight: string;
|
|
45
|
+
fontFamily: string;
|
|
46
|
+
};
|
|
47
|
+
body1: {
|
|
48
|
+
letterSpacing?: string | undefined;
|
|
49
|
+
fontSize: string;
|
|
50
|
+
lineHeight: string;
|
|
51
|
+
fontFamily: string;
|
|
52
|
+
};
|
|
53
|
+
body2: {
|
|
54
|
+
letterSpacing?: string | undefined;
|
|
55
|
+
fontSize: string;
|
|
56
|
+
lineHeight: string;
|
|
57
|
+
fontFamily: string;
|
|
58
|
+
};
|
|
59
|
+
displayXL: {
|
|
60
|
+
fontWeight: string;
|
|
61
|
+
letterSpacing?: string | undefined;
|
|
62
|
+
fontSize: string;
|
|
63
|
+
lineHeight: string;
|
|
64
|
+
fontFamily: string;
|
|
65
|
+
};
|
|
66
|
+
displayL: {
|
|
67
|
+
fontWeight: string;
|
|
68
|
+
letterSpacing?: string | undefined;
|
|
69
|
+
fontSize: string;
|
|
70
|
+
lineHeight: string;
|
|
71
|
+
fontFamily: string;
|
|
72
|
+
};
|
|
73
|
+
displayM: {
|
|
74
|
+
fontWeight: string;
|
|
75
|
+
letterSpacing?: string | undefined;
|
|
76
|
+
fontSize: string;
|
|
77
|
+
lineHeight: string;
|
|
78
|
+
fontFamily: string;
|
|
79
|
+
};
|
|
80
|
+
displayS: {
|
|
81
|
+
fontWeight: string;
|
|
82
|
+
letterSpacing?: string | undefined;
|
|
83
|
+
fontSize: string;
|
|
84
|
+
lineHeight: string;
|
|
85
|
+
fontFamily: string;
|
|
86
|
+
};
|
|
87
|
+
displayXS: {
|
|
88
|
+
fontWeight: string;
|
|
89
|
+
letterSpacing?: string | undefined;
|
|
90
|
+
fontSize: string;
|
|
91
|
+
lineHeight: string;
|
|
92
|
+
fontFamily: string;
|
|
93
|
+
};
|
|
94
|
+
headingL: {
|
|
95
|
+
fontWeight: string;
|
|
96
|
+
letterSpacing?: string | undefined;
|
|
97
|
+
fontSize: string;
|
|
98
|
+
lineHeight: string;
|
|
99
|
+
fontFamily: string;
|
|
100
|
+
};
|
|
101
|
+
headingM: {
|
|
102
|
+
fontWeight: string;
|
|
103
|
+
letterSpacing?: string | undefined;
|
|
104
|
+
fontSize: string;
|
|
105
|
+
lineHeight: string;
|
|
106
|
+
fontFamily: string;
|
|
107
|
+
};
|
|
108
|
+
headingS: {
|
|
109
|
+
fontWeight: string;
|
|
110
|
+
letterSpacing?: string | undefined;
|
|
111
|
+
fontSize: string;
|
|
112
|
+
lineHeight: string;
|
|
113
|
+
fontFamily: string;
|
|
114
|
+
};
|
|
115
|
+
textBody: {
|
|
116
|
+
letterSpacing?: string | undefined;
|
|
117
|
+
fontSize: string;
|
|
118
|
+
lineHeight: string;
|
|
119
|
+
fontFamily: string;
|
|
120
|
+
};
|
|
121
|
+
textXL: {
|
|
122
|
+
letterSpacing?: string | undefined;
|
|
123
|
+
fontSize: string;
|
|
124
|
+
lineHeight: string;
|
|
125
|
+
fontFamily: string;
|
|
126
|
+
};
|
|
127
|
+
textL: {
|
|
128
|
+
letterSpacing?: string | undefined;
|
|
129
|
+
fontSize: string;
|
|
130
|
+
lineHeight: string;
|
|
131
|
+
fontFamily: string;
|
|
132
|
+
};
|
|
133
|
+
textM: {
|
|
134
|
+
letterSpacing?: string | undefined;
|
|
135
|
+
fontSize: string;
|
|
136
|
+
lineHeight: string;
|
|
137
|
+
fontFamily: string;
|
|
138
|
+
};
|
|
139
|
+
textS: {
|
|
140
|
+
letterSpacing?: string | undefined;
|
|
141
|
+
fontSize: string;
|
|
142
|
+
lineHeight: string;
|
|
143
|
+
fontFamily: string;
|
|
144
|
+
};
|
|
145
|
+
footnote: {
|
|
146
|
+
letterSpacing?: string | undefined;
|
|
147
|
+
fontSize: string;
|
|
148
|
+
lineHeight: string;
|
|
149
|
+
fontFamily: string;
|
|
150
|
+
};
|
|
151
|
+
mono: {
|
|
152
|
+
letterSpacing?: string | undefined;
|
|
153
|
+
fontSize: string;
|
|
154
|
+
lineHeight: string;
|
|
155
|
+
fontFamily: string;
|
|
156
|
+
};
|
|
157
|
+
button: {
|
|
158
|
+
fontWeight: number;
|
|
159
|
+
textTransform: string;
|
|
160
|
+
letterSpacing?: string | undefined;
|
|
161
|
+
fontSize: string;
|
|
162
|
+
lineHeight: string;
|
|
163
|
+
fontFamily: string;
|
|
164
|
+
};
|
|
165
|
+
buttonSmall: {
|
|
166
|
+
fontWeight: number;
|
|
167
|
+
textTransform: string;
|
|
168
|
+
letterSpacing?: string | undefined;
|
|
169
|
+
fontSize: string;
|
|
170
|
+
lineHeight: string;
|
|
171
|
+
fontFamily: string;
|
|
172
|
+
};
|
|
173
|
+
fontFamily: string;
|
|
174
|
+
htmlFontSize: number;
|
|
175
|
+
};
|
|
176
|
+
declare const typographyStyles: ComponentStyles;
|
|
177
|
+
declare module "@mui/material/styles" {
|
|
178
|
+
interface TypographyVariants {
|
|
179
|
+
displayXL: React.CSSProperties;
|
|
180
|
+
displayL: React.CSSProperties;
|
|
181
|
+
displayM: React.CSSProperties;
|
|
182
|
+
displayS: React.CSSProperties;
|
|
183
|
+
displayXS: React.CSSProperties;
|
|
184
|
+
headingL: React.CSSProperties;
|
|
185
|
+
headingM: React.CSSProperties;
|
|
186
|
+
headingS: React.CSSProperties;
|
|
187
|
+
textBody: React.CSSProperties;
|
|
188
|
+
textXL: React.CSSProperties;
|
|
189
|
+
textL: React.CSSProperties;
|
|
190
|
+
textM: React.CSSProperties;
|
|
191
|
+
textS: React.CSSProperties;
|
|
192
|
+
footnote: React.CSSProperties;
|
|
193
|
+
mono: React.CSSProperties;
|
|
194
|
+
buttonSmall: React.CSSProperties;
|
|
195
|
+
}
|
|
196
|
+
interface TypographyVariantsOptions {
|
|
197
|
+
displayXL?: React.CSSProperties;
|
|
198
|
+
displayL?: React.CSSProperties;
|
|
199
|
+
displayM?: React.CSSProperties;
|
|
200
|
+
displayS?: React.CSSProperties;
|
|
201
|
+
displayXS?: React.CSSProperties;
|
|
202
|
+
headingL?: React.CSSProperties;
|
|
203
|
+
headingM?: React.CSSProperties;
|
|
204
|
+
headingS?: React.CSSProperties;
|
|
205
|
+
textBody?: React.CSSProperties;
|
|
206
|
+
textXL?: React.CSSProperties;
|
|
207
|
+
textL?: React.CSSProperties;
|
|
208
|
+
textM?: React.CSSProperties;
|
|
209
|
+
textS?: React.CSSProperties;
|
|
210
|
+
footnote?: React.CSSProperties;
|
|
211
|
+
mono?: React.CSSProperties;
|
|
212
|
+
buttonSmall?: React.CSSProperties;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
declare module "@mui/material/Typography" {
|
|
216
|
+
interface TypographyPropsVariantOverrides {
|
|
217
|
+
displayXL: true;
|
|
218
|
+
displayL: true;
|
|
219
|
+
displayM: true;
|
|
220
|
+
displayS: true;
|
|
221
|
+
displayXS: true;
|
|
222
|
+
headingL: true;
|
|
223
|
+
headingM: true;
|
|
224
|
+
headingS: true;
|
|
225
|
+
textBody: true;
|
|
226
|
+
textXL: true;
|
|
227
|
+
textL: true;
|
|
228
|
+
textM: true;
|
|
229
|
+
textS: true;
|
|
230
|
+
footnote: true;
|
|
231
|
+
mono: true;
|
|
232
|
+
buttonSmall: true;
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
export { typographyStyles, typography };
|
package/package.json
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spesia/ui",
|
|
3
|
-
"
|
|
3
|
+
"publishConfig": {
|
|
4
|
+
"access": "public"
|
|
5
|
+
},
|
|
6
|
+
"version": "1.8.21",
|
|
4
7
|
"description": "The Spesia UI toolkit for React",
|
|
5
8
|
"files": [
|
|
6
9
|
"dist"
|
|
@@ -26,53 +29,55 @@
|
|
|
26
29
|
"keywords": [],
|
|
27
30
|
"author": "tinna@spesia.is",
|
|
28
31
|
"license": "ISC",
|
|
29
|
-
"packageManager": "pnpm@10.0.0+sha512.b8fef5494bd3fe4cbd4edabd0745df2ee5be3e4b0b8b08fa643aa3e4c6702ccc0f00d68fa8a8c9858a735a0032485a44990ed2810526c875e416f001b17df12b",
|
|
30
32
|
"devDependencies": {
|
|
31
33
|
"@changesets/cli": "^2.29.5",
|
|
32
|
-
"@chromatic-com/storybook": "^
|
|
33
|
-
"@emotion/react": "^11.
|
|
34
|
-
"@emotion/styled": "^11.
|
|
34
|
+
"@chromatic-com/storybook": "^5.0.0",
|
|
35
|
+
"@emotion/react": "^11.14.0",
|
|
36
|
+
"@emotion/styled": "^11.14.1",
|
|
35
37
|
"@eslint/eslintrc": "^3.3.1",
|
|
36
|
-
"@mui/icons-material": "^
|
|
37
|
-
"@mui/material": "^
|
|
38
|
-
"@mui/x-date-pickers": "^
|
|
39
|
-
"@storybook/addon-
|
|
40
|
-
"@storybook/addon-
|
|
41
|
-
"@storybook/
|
|
42
|
-
"@storybook/
|
|
43
|
-
"@storybook/
|
|
44
|
-
"@storybook/react": "^
|
|
45
|
-
"@storybook/
|
|
46
|
-
"@storybook/test": "^8.6.4",
|
|
47
|
-
"@storybook/test-runner": "^0.22.0",
|
|
48
|
-
"@storybook/theming": "^8.6.4",
|
|
38
|
+
"@mui/icons-material": "^7.3.6",
|
|
39
|
+
"@mui/material": "^7.3.6",
|
|
40
|
+
"@mui/x-date-pickers": "^8.21.0",
|
|
41
|
+
"@storybook/addon-a11y": "^10.1.11",
|
|
42
|
+
"@storybook/addon-docs": "^10.1.11",
|
|
43
|
+
"@storybook/addon-onboarding": "^10.1.11",
|
|
44
|
+
"@storybook/addon-vitest": "^10.1.11",
|
|
45
|
+
"@storybook/react": "^10.1.11",
|
|
46
|
+
"@storybook/react-vite": "^10.1.11",
|
|
47
|
+
"@storybook/test-runner": "^0.24.2",
|
|
49
48
|
"@types/lodash": "^4.17.16",
|
|
50
49
|
"@types/react": "^19.0.10",
|
|
51
50
|
"@vitest/browser": "^3.0.8",
|
|
51
|
+
"@vitest/browser-playwright": "^4.0.17",
|
|
52
52
|
"@vitest/coverage-v8": "^3.0.8",
|
|
53
53
|
"eslint": "^9.23.0",
|
|
54
54
|
"eslint-config-next": "^15.2.2",
|
|
55
55
|
"eslint-config-prettier": "^9.1.0",
|
|
56
|
+
"eslint-plugin-react": "7.37.5",
|
|
57
|
+
"eslint-plugin-react-hooks": "7.0.1",
|
|
58
|
+
"eslint-plugin-storybook": "10.1.11",
|
|
56
59
|
"playwright": "^1.51.0",
|
|
57
60
|
"react": "^19.0.0",
|
|
58
61
|
"react-dom": "^19.0.0",
|
|
59
62
|
"sass": "^1.85.1",
|
|
60
|
-
"storybook": "^
|
|
63
|
+
"storybook": "^10.1.11",
|
|
61
64
|
"typescript": "5.5.3",
|
|
62
65
|
"vite": "5.3.3",
|
|
63
66
|
"vite-plugin-dts": "^4.5.3",
|
|
64
|
-
"vite-plugin-static-copy": "^2.3.0",
|
|
65
67
|
"vitest": "^3.0.8"
|
|
66
68
|
},
|
|
67
69
|
"dependencies": {
|
|
68
|
-
"classnames": "^2.5.1"
|
|
70
|
+
"classnames": "^2.5.1",
|
|
71
|
+
"date-fns": "^4.1.0",
|
|
72
|
+
"lucide-react": "^0.563.0",
|
|
73
|
+
"vite-plugin-svgr": "^4.5.0"
|
|
69
74
|
},
|
|
70
75
|
"peerDependencies": {
|
|
71
|
-
"@emotion/react": "^11.
|
|
72
|
-
"@emotion/styled": "^11.
|
|
73
|
-
"@mui/icons-material": "^
|
|
74
|
-
"@mui/material": "^
|
|
75
|
-
"@mui/x-date-pickers": "^
|
|
76
|
+
"@emotion/react": "^11.14.0",
|
|
77
|
+
"@emotion/styled": "^11.14.1",
|
|
78
|
+
"@mui/icons-material": "^7.3.6",
|
|
79
|
+
"@mui/material": "^7.3.6",
|
|
80
|
+
"@mui/x-date-pickers": "^8.21.0",
|
|
76
81
|
"lodash": "^4.17.21",
|
|
77
82
|
"react": "^19.0.0",
|
|
78
83
|
"react-dom": "^19.0.0"
|
|
@@ -95,7 +100,7 @@
|
|
|
95
100
|
"format": "prettier --check --ignore-path .gitignore .",
|
|
96
101
|
"format:fix": "prettier --write --ignore-path .gitignore .",
|
|
97
102
|
"dev": "storybook dev -p 6006",
|
|
98
|
-
"
|
|
99
|
-
"
|
|
103
|
+
"check-types": "tsc --noEmit",
|
|
104
|
+
"storybook": "storybook build"
|
|
100
105
|
}
|
|
101
106
|
}
|