@onereach/styles 2.26.1-beta.1695.0 → 2.26.1-beta.1720.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": "2.26.1-beta.1695.0",
3
+ "version": "2.26.1-beta.1720.0",
4
4
  "description": "Styles for or-ui-next",
5
5
  "main": "./main.css",
6
6
  "unpkg": "./main.css",
@@ -599,9 +599,30 @@
599
599
  "name": "dark-overlay",
600
600
  "value": "rgba(27,27,29,0.8)",
601
601
  "groupName": "dark/overlay"
602
+ },
603
+ {
604
+ "name": "light-skeleton",
605
+ "value": "#F6F8FD",
606
+ "groupName": "light/skeleton"
607
+ },
608
+ {
609
+ "name": "dark-skeleton",
610
+ "value": "#202123",
611
+ "groupName": "dark/skeleton"
612
+ }
613
+ ],
614
+ "Gradients": [
615
+ {
616
+ "name": "light-skeleton-gradient",
617
+ "value": "linear-gradient(90deg, #F6F8FD 0%, #FFFFFF 50.01%, #F6F8FD 99.22%)",
618
+ "groupName": "light/skeleton/gradient"
619
+ },
620
+ {
621
+ "name": "dark-skeleton-gradient",
622
+ "value": "linear-gradient(90deg, #202123 0%, #1B1B1D 50.01%, #202123 99.22%)",
623
+ "groupName": "dark/skeleton/gradient"
602
624
  }
603
625
  ],
604
- "Gradients": [],
605
626
  "Shadows": [
606
627
  {
607
628
  "name": "light-modal",
@@ -14,6 +14,7 @@ const {
14
14
  const {
15
15
  SpacePatterns: spacingTokens,
16
16
  colors: colorTokens,
17
+ Gradients: gradientTokens,
17
18
  BorderRadiuses: borderRadiusTokens,
18
19
  Borders: borderWidthTokens,
19
20
  Shadows: boxShadowTokens,
@@ -40,6 +41,10 @@ module.exports = {
40
41
  'transparent': 'transparent',
41
42
  },
42
43
 
44
+ backgroundImage: {
45
+ ...parseColorTokens(gradientTokens, ['generic', 'background']),
46
+ },
47
+
43
48
  textColor: {
44
49
  ...parseColorTokens(colorTokens, ['generic', 'text']),
45
50
  'transparent': 'transparent',
@@ -76,6 +81,7 @@ module.exports = {
76
81
  animation: {
77
82
  'circular-loader': 'circular-loader 1400ms linear infinite',
78
83
  'linear-loader': 'linear-loader 1400ms linear infinite',
84
+ 'skeleton-loader': 'skeleton-loader 1.5s linear .5s infinite',
79
85
  },
80
86
 
81
87
  keyframes: {
@@ -110,6 +116,16 @@ module.exports = {
110
116
  strokeDashoffset: '-250%',
111
117
  },
112
118
  },
119
+
120
+ 'skeleton-loader': {
121
+ '0%': {
122
+ transform: 'translateX(-100%)',
123
+ },
124
+
125
+ '100%': {
126
+ transform: 'translateX(100%)',
127
+ },
128
+ },
113
129
  },
114
130
 
115
131
  borderRadius: {
@@ -155,7 +171,7 @@ module.exports = {
155
171
 
156
172
  plugins: [
157
173
  // Core
158
- plugin(({ addVariant }) => {
174
+ plugin(({ addVariant, addUtilities }) => {
159
175
  addVariant('enabled', '&:not([disabled])');
160
176
  addVariant('disabled', '&[disabled]');
161
177
 
@@ -197,6 +213,15 @@ module.exports = {
197
213
  addVariant('last-child', ['& > *:last-child']);
198
214
 
199
215
  addVariant('links', ['& :any-link']);
216
+
217
+ // TODO: Remove when migration complete
218
+ addUtilities({
219
+ '.visually-hidden': {
220
+ width: 0,
221
+ height: 0,
222
+ visibility: 'hidden',
223
+ },
224
+ });
200
225
  }),
201
226
 
202
227
  // Interactivity
@@ -298,7 +323,7 @@ module.exports = {
298
323
  }),
299
324
 
300
325
  // Theme
301
- plugin(({ matchUtilities, addUtilities, addBase, theme }) => {
326
+ plugin(({ matchUtilities, addUtilities, theme }) => {
302
327
  // Presets
303
328
  matchUtilities({
304
329
  'theme-preset-1': (value) => {
@@ -823,43 +848,6 @@ module.exports = {
823
848
  'current': 'current',
824
849
  },
825
850
  });
826
-
827
- // Default Styles
828
- addBase({
829
- '*': {
830
- scrollbarColor: `${theme('textColor.on-disabled')} ${theme('backgroundColor.surface-variant')}`,
831
-
832
- '@media (prefers-color-scheme: dark)': {
833
- scrollbarColor: `${theme('textColor.on-disabled-dark')} ${theme('backgroundColor.surface-variant-dark')}`,
834
- },
835
-
836
- scrollbarWidth: 'thin',
837
- },
838
-
839
- '::-webkit-scrollbar': {
840
- width: theme('width.xs'),
841
-
842
- '&-track': {
843
- backgroundColor: theme('backgroundColor.surface-variant'),
844
-
845
- '@media (prefers-color-scheme: dark)': {
846
- backgroundColor: theme('backgroundColor.surface-variant-dark'),
847
- },
848
-
849
- borderRadius: theme('borderRadius.sm'),
850
- },
851
-
852
- '&-thumb': {
853
- backgroundColor: theme('textColor.on-disabled'),
854
-
855
- '@media (prefers-color-scheme: dark)': {
856
- backgroundColor: theme('textColor.on-disabled-dark'),
857
- },
858
-
859
- borderRadius: theme('borderRadius.sm'),
860
- },
861
- },
862
- });
863
851
  }),
864
852
  ],
865
853
  };
package/tokens.css CHANGED
@@ -62,6 +62,7 @@
62
62
  --or-c-warning-opacity-0-12: rgba(153,112,0,0.12);
63
63
  --or-c-warning-opacity-0-16: rgba(153,112,0,0.16);
64
64
  --or-c-overlay: rgba(27,27,29,0.8);
65
+ --or-c-skeleton: #F6F8FD;
65
66
  }
66
67
  [data-theme="dark-mode"], [data-theme="dark"] {
67
68
  --or-c-primary: rgba(164,200,255,1);
@@ -123,4 +124,5 @@
123
124
  --or-c-warning-opacity-0-12: rgba(251,188,12,0.12);
124
125
  --or-c-warning-opacity-0-16: rgba(251,188,12,0.16);
125
126
  --or-c-overlay: rgba(27,27,29,0.8);
127
+ --or-c-skeleton: #202123;
126
128
  }