@onereach/styles 6.8.2-beta.4091.0 → 6.8.2-beta.4102.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/styles",
3
- "version": "6.8.2-beta.4091.0",
3
+ "version": "6.8.2-beta.4102.0",
4
4
  "description": "Styles for or-ui-next",
5
5
  "license": "UNLICENSED",
6
6
  "main": "./main.css",
@@ -24,7 +24,8 @@
24
24
  "tailwind.config.preset.js",
25
25
  "temporary-dark-v2.css",
26
26
  "tokens.css",
27
- "tw-color-variables.css"
27
+ "tw-color-variables.css",
28
+ "screens.json"
28
29
  ],
29
30
  "scripts": {
30
31
  "dev": "pnpm build:scss -- --watch",
package/screens.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "sm": "600px",
3
+ "md": "900px",
4
+ "lg": "1200px",
5
+ "xl": "1536px"
6
+ }
@@ -1,11 +1,5 @@
1
1
  const plugin = require('tailwindcss/plugin');
2
-
3
- const screens = {
4
- 'sm': '600px',
5
- 'md': '900px',
6
- 'lg': '1200px',
7
- 'xl': '1536px',
8
- };
2
+ const screens = require('../../screens.json');
9
3
 
10
4
  const variants = {
11
5
  'mobile': '@media (hover: none)',
@@ -47,13 +47,13 @@ module.exports = {
47
47
  return {
48
48
  [variants['children']]: {
49
49
  '&:not(:first-child)': {
50
- borderInlineStartStyle: 'none !important',
50
+ borderInlineStartStyle: 'solid',
51
+ borderInlineStartWidth: '1px',
52
+ borderInlineStartColor: theme(`borderColor.${token}` + suffix, token),
51
53
  },
52
54
 
53
55
  '&:not(:last-child)': {
54
- borderInlineEndStyle: 'solid',
55
- borderInlineEndWidth: '1px',
56
- borderInlineEndColor: theme(`borderColor.${token}` + suffix, token),
56
+ borderInlineEndStyle: 'none !important',
57
57
  },
58
58
 
59
59
  transitionProperty: 'color, background-color, border-color, outline-color',
@@ -63,8 +63,8 @@ module.exports = {
63
63
 
64
64
  [variants['disabled']]: ['transparent'].includes(token) ? null : {
65
65
  [variants['children']]: {
66
- '&:not(:last-child)': {
67
- borderInlineEndColor: `${theme('borderColor.disabled' + suffix)} !important`,
66
+ '&:not(:first-child)': {
67
+ borderInlineStartColor: `${theme('borderColor.disabled' + suffix)} !important`,
68
68
  },
69
69
  },
70
70
  },
@@ -1,5 +1,5 @@
1
1
  const plugin = require('tailwindcss/plugin');
2
- const { screens } = require('./core');
2
+ const screens = require('../../screens.json');
3
3
 
4
4
  const values = {
5
5
  'display-large': 'display-large',
@@ -3702,7 +3702,6 @@
3702
3702
  {},
3703
3703
  {},
3704
3704
  {},
3705
- {},
3706
3705
  {}
3707
3706
  ],
3708
3707
  "darkMode": [
@@ -3,7 +3,6 @@ const { plugin: layout } = require('./tailwind/plugins/layout');
3
3
  const { plugin: interactivity } = require('./tailwind/plugins/interactivity');
4
4
  const { plugin: typography } = require('./tailwind/plugins/typography');
5
5
  const { plugin: iconography } = require('./tailwind/plugins/iconography');
6
- const { plugin: scrollbar } = require('./tailwind/plugins/scrollbar');
7
6
 
8
7
  const { plugin: themePreset } = require('./tailwind/plugins/theme-preset');
9
8
  const { plugin: themeForeground } = require('./tailwind/plugins/theme-foreground');
@@ -199,7 +198,6 @@ module.exports = {
199
198
  interactivity,
200
199
  typography,
201
200
  iconography,
202
- scrollbar,
203
201
 
204
202
  themePreset,
205
203
  themeForeground,
@@ -1,18 +0,0 @@
1
- const plugin = require('tailwindcss/plugin');
2
-
3
- module.exports = {
4
- plugin: plugin(({ addComponents }) => {
5
- addComponents({
6
- '.scrollbar-hidden': {
7
- // Webkit
8
- '&::-webkit-scrollbar': {
9
- width: 0,
10
- height: 0,
11
- },
12
-
13
- // Gecko
14
- scrollbarWidth: 'none',
15
- },
16
- });
17
- }),
18
- };