@basic-ui/material 1.0.0-alpha.2 → 1.0.0-alpha.5

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": "@basic-ui/material",
3
- "version": "1.0.0-alpha.2",
3
+ "version": "1.0.0-alpha.5",
4
4
  "description": "Accessible React Components used as building blocks for UI patterns",
5
5
  "author": "Lucas Terra <lucasterra7@gmail.com>",
6
6
  "license": "MIT",
@@ -38,7 +38,7 @@
38
38
  "@basic-ui/color-picker": "^0.0.8",
39
39
  "@emotion/react": "11.9.0",
40
40
  "@emotion/styled": "11.8.1",
41
- "@material/material-color-utilities": "^0.1.2",
41
+ "@material/material-color-utilities": "0.1.1",
42
42
  "polished": "^4.1.1"
43
43
  },
44
44
  "peerDependencies": {
@@ -52,5 +52,5 @@
52
52
  "react-dom": "^16.14.0 || ^17.0.0 || ^18.0.0",
53
53
  "react-spring": "^9.0.0"
54
54
  },
55
- "gitHead": "874053111a07b1a1afa0f7abf93929d695a855d5"
55
+ "gitHead": "1c5bdf254a5cd07365a452712f15ae8b904e8884"
56
56
  }
@@ -69,6 +69,7 @@ export const ListItem = forwardRef<HTMLDivElement, ListItemProps>(
69
69
  },
70
70
  '&[aria-selected="true"]': {
71
71
  backgroundColor: alpha(color, baseOpacity + 0.12),
72
+ color,
72
73
  ':hover': {
73
74
  backgroundColor: alpha(color, hoverOpacity + 0.12),
74
75
  },
@@ -20,7 +20,7 @@ const CheckBoxCore: React.FC<
20
20
  }
21
21
  > = _CheckBoxCore as any;
22
22
 
23
- interface SwitchProps
23
+ export interface SwitchProps
24
24
  extends BoxProps<
25
25
  HTMLInputElement,
26
26
  React.InputHTMLAttributes<HTMLInputElement>
package/src/Tab/Tab.tsx CHANGED
@@ -27,7 +27,7 @@ const TabInner = forwardRef<
27
27
  const { textColor, indicatorColor, selectedTextColor } = useTabListContext();
28
28
 
29
29
  return (
30
- <Box position="relative" display="flex" flexGrow={1} flexDirection="column">
30
+ <Box position="relative" display="flex" flex={1} flexDirection="column">
31
31
  <RippleBox<
32
32
  RippleBoxProps<
33
33
  HTMLButtonElement,
@@ -3,7 +3,7 @@ import {
3
3
  CorePalette,
4
4
  argbFromHex,
5
5
  hexFromArgb,
6
- } from '@material/material-color-utilities';
6
+ } from '@material/material-color-utilities'; // eslint-disable-line import/no-unresolved
7
7
  import type { Color } from '@basic-ui/color-picker';
8
8
  import { toColor } from '@basic-ui/color-picker';
9
9
 
@@ -1,7 +1,7 @@
1
1
  import type { CSSProperties } from 'react';
2
2
  import React, { memo, useState } from 'react';
3
3
  import { rgb, parseToHsl, parseToRgb } from 'polished';
4
- import { hexFromArgb, TonalPalette } from '@material/material-color-utilities';
4
+ import { hexFromArgb, TonalPalette } from '@material/material-color-utilities'; // eslint-disable-line import/no-unresolved
5
5
 
6
6
  import { Box, Text, Tooltip } from '../';
7
7
 
@@ -1,5 +1,5 @@
1
1
  import type { TonalPalette } from '@material/material-color-utilities';
2
- import { hexFromArgb } from '@material/material-color-utilities';
2
+ import { hexFromArgb } from '@material/material-color-utilities'; // eslint-disable-line import/no-unresolved
3
3
 
4
4
  export function makeColorScheme(opts: {
5
5
  primary: TonalPalette;
@@ -1,5 +1,5 @@
1
1
  import { useMemo, useDeferredValue } from 'react';
2
- import { TonalPalette, argbFromHex } from '@material/material-color-utilities';
2
+ import { TonalPalette, argbFromHex } from '@material/material-color-utilities'; // eslint-disable-line import/no-unresolved
3
3
  import type { Color } from '@basic-ui/color-picker';
4
4
 
5
5
  import { useLocalStorageCachedState } from './useLocalStorageCachedState';