@onereach/styles 2.37.3-beta.2436.0 → 2.37.3-beta.2442.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/font.css +8 -0
- package/package.json +1 -1
- package/tailwind.config.preset.js +14 -15
package/font.css
CHANGED
package/package.json
CHANGED
|
@@ -83,7 +83,7 @@ module.exports = {
|
|
|
83
83
|
animation: {
|
|
84
84
|
'circular-loader': 'circular-loader 1400ms linear infinite',
|
|
85
85
|
'linear-loader': 'linear-loader 1400ms linear infinite',
|
|
86
|
-
'skeleton-loader': 'skeleton-loader
|
|
86
|
+
'skeleton-loader': 'skeleton-loader 1.5s linear 0s infinite normal forwards',
|
|
87
87
|
},
|
|
88
88
|
|
|
89
89
|
keyframes: {
|
|
@@ -115,7 +115,8 @@ module.exports = {
|
|
|
115
115
|
|
|
116
116
|
'100%': {
|
|
117
117
|
strokeDasharray: '25%, 100%',
|
|
118
|
-
|
|
118
|
+
// calc added here only for safari support
|
|
119
|
+
strokeDashoffset: 'calc((100% - 0px) * -2.5)',
|
|
119
120
|
},
|
|
120
121
|
},
|
|
121
122
|
|
|
@@ -142,7 +143,7 @@ module.exports = {
|
|
|
142
143
|
},
|
|
143
144
|
|
|
144
145
|
boxShadow: {
|
|
145
|
-
'none': '0 0 #
|
|
146
|
+
'none': '0 0 #0000',
|
|
146
147
|
...parseBoxShadowTokens(boxShadowTokens),
|
|
147
148
|
DEFAULT: '0 1px 1px rgba(0 0 0 / 0.24), 0 0 1px rgba(0 0 0 / 0.16)',
|
|
148
149
|
},
|
|
@@ -150,11 +151,12 @@ module.exports = {
|
|
|
150
151
|
fontFamily: {
|
|
151
152
|
...parseFontFamilyTokens(typographyTokens),
|
|
152
153
|
'inherit': 'inherit',
|
|
154
|
+
'sans': ['Inter', '-system-ui', 'sans-serif'], // https://tailwindcss.com/docs/font-family#customizing-the-default-font
|
|
153
155
|
},
|
|
154
156
|
|
|
155
157
|
fontSize: {
|
|
156
158
|
...parseFontSizeTokens(typographyTokens),
|
|
157
|
-
'inherit': ['inherit', {
|
|
159
|
+
'inherit': ['inherit', {lineHeight: 'inherit'}],
|
|
158
160
|
},
|
|
159
161
|
|
|
160
162
|
fontWeight: {
|
|
@@ -180,7 +182,7 @@ module.exports = {
|
|
|
180
182
|
|
|
181
183
|
plugins: [
|
|
182
184
|
// Core
|
|
183
|
-
plugin(({
|
|
185
|
+
plugin(({addVariant, addUtilities}) => {
|
|
184
186
|
addVariant('enabled', '&:not([disabled])');
|
|
185
187
|
addVariant('disabled', '&[disabled]');
|
|
186
188
|
|
|
@@ -235,14 +237,14 @@ module.exports = {
|
|
|
235
237
|
}),
|
|
236
238
|
|
|
237
239
|
// Layout
|
|
238
|
-
plugin(({
|
|
240
|
+
plugin(({matchUtilities}) => {
|
|
239
241
|
matchUtilities({
|
|
240
242
|
'layout': (value) => {
|
|
241
|
-
const {
|
|
243
|
+
const {prefix = '', direction} = /^(?:(?<prefix>inline-)\.\.)?(?<direction>.+)$/.exec(value).groups;
|
|
242
244
|
|
|
243
245
|
return {
|
|
244
246
|
display: prefix + 'flex',
|
|
245
|
-
|
|
247
|
+
flexDirection: direction,
|
|
246
248
|
flex: prefix === 'inline-' ? '0 0 auto' : undefined,
|
|
247
249
|
alignItems: direction === 'row' ? 'center' : undefined,
|
|
248
250
|
};
|
|
@@ -265,7 +267,7 @@ module.exports = {
|
|
|
265
267
|
}),
|
|
266
268
|
|
|
267
269
|
// Interactivity
|
|
268
|
-
plugin(({
|
|
270
|
+
plugin(({addUtilities}) => {
|
|
269
271
|
addUtilities({
|
|
270
272
|
'.interactivity-auto': {
|
|
271
273
|
pointerEvents: 'auto',
|
|
@@ -289,7 +291,7 @@ module.exports = {
|
|
|
289
291
|
}),
|
|
290
292
|
|
|
291
293
|
// Typography
|
|
292
|
-
plugin(({
|
|
294
|
+
plugin(({matchUtilities, addBase, theme}) => {
|
|
293
295
|
matchUtilities({
|
|
294
296
|
'typography': (value) => {
|
|
295
297
|
const fontSizeConfig = theme('fontSize');
|
|
@@ -298,13 +300,11 @@ module.exports = {
|
|
|
298
300
|
const [fontSizeMobile, optionsMobile] = fontSizeConfig[`mobile-${value}`] ?? [];
|
|
299
301
|
|
|
300
302
|
return {
|
|
301
|
-
fontFamily: theme(`fontFamily.mobile-${value}`) ?? theme(`fontFamily.${value}`),
|
|
302
303
|
fontWeight: theme(`fontWeight.mobile-${value}`) ?? theme(`fontWeight.${value}`),
|
|
303
304
|
fontSize: fontSizeMobile ?? fontSizeDesktop,
|
|
304
305
|
lineHeight: optionsMobile?.lineHeight ?? optionsDesktop?.lineHeight,
|
|
305
306
|
|
|
306
307
|
[`@media (min-width: ${theme('screens.md')})`]: {
|
|
307
|
-
fontFamily: theme(`fontFamily.${value}`),
|
|
308
308
|
fontWeight: theme(`fontWeight.${value}`),
|
|
309
309
|
fontSize: fontSizeDesktop,
|
|
310
310
|
lineHeight: optionsDesktop?.lineHeight,
|
|
@@ -338,7 +338,6 @@ module.exports = {
|
|
|
338
338
|
// Default Styles
|
|
339
339
|
addBase({
|
|
340
340
|
':root': {
|
|
341
|
-
fontFamily: theme('fontFamily.body-1-regular'),
|
|
342
341
|
fontSize: theme('fontSize.body-1-regular'),
|
|
343
342
|
fontWeight: theme('fontWeight.body-1-regular'),
|
|
344
343
|
},
|
|
@@ -346,7 +345,7 @@ module.exports = {
|
|
|
346
345
|
}),
|
|
347
346
|
|
|
348
347
|
// Iconography
|
|
349
|
-
plugin(({
|
|
348
|
+
plugin(({matchUtilities}) => {
|
|
350
349
|
matchUtilities({
|
|
351
350
|
'iconography': (value) => ({
|
|
352
351
|
fontFamily: '"Material Symbols Outlined"',
|
|
@@ -366,7 +365,7 @@ module.exports = {
|
|
|
366
365
|
}),
|
|
367
366
|
|
|
368
367
|
// Theme
|
|
369
|
-
plugin(({
|
|
368
|
+
plugin(({matchUtilities, addUtilities, theme}) => {
|
|
370
369
|
// Presets
|
|
371
370
|
matchUtilities({
|
|
372
371
|
'theme-preset-1': (value) => {
|