Skip to content

Commit 11333f2

Browse files
authored
Merge pull request #4880 from GeekyAnts/release/3.4.0-rc.4
Release/3.4.0 rc.4
2 parents bdd2ba2 + d638ee3 commit 11333f2

File tree

24 files changed

+72
-35
lines changed

24 files changed

+72
-35
lines changed

example/storybook/stories/components/Wrapper.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ const myTheme = extendTheme({
2222
space: {
2323
mySpace: '29px',
2424
},
25+
colors: {
26+
blue1: {
27+
'100': 'blue',
28+
},
29+
},
2530

2631
components: {
2732
Link: {

example/storybook/stories/components/primitives/ButtonGroup/variants.tsx

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ export const Example = () => {
1212
justifyContent="center"
1313
>
1414
{/* Solid */}
15-
1615
<Heading size="md">Solid</Heading>
1716
<Button.Group variant="solid" mb="2.5" mt="1.5">
1817
<Button colorScheme="teal">Save</Button>
@@ -21,39 +20,44 @@ export const Example = () => {
2120

2221
<Divider />
2322

24-
<Heading size="md">Outline</Heading>
23+
{/* Subtle */}
24+
<Heading size="md">Subtle</Heading>
25+
<Button.Group mb="2.5" mt="1.5" variant="subtle">
26+
<Button colorScheme="teal">Save</Button>
27+
<Button colorScheme="danger">Cancel</Button>
28+
</Button.Group>
29+
30+
<Divider />
2531

2632
{/* Outline */}
33+
<Heading size="md">Outline</Heading>
2734
<Button.Group mb="2.5" mt="1.5" variant="outline">
2835
<Button colorScheme="teal">Save</Button>
2936
<Button colorScheme="danger">Cancel</Button>
3037
</Button.Group>
3138

3239
<Divider />
3340

34-
<Heading size="md">Link</Heading>
35-
3641
{/* Link */}
42+
<Heading size="md">Link</Heading>
3743
<Button.Group mb="2.5" mt="1.5" variant="link">
3844
<Button colorScheme="teal">Save</Button>
3945
<Button colorScheme="danger">Cancel</Button>
4046
</Button.Group>
4147

4248
<Divider />
4349

44-
<Heading size="md">Ghost</Heading>
45-
4650
{/* Ghost */}
51+
<Heading size="md">Ghost</Heading>
4752
<Button.Group mb="2.5" mt="1.5" variant="ghost">
4853
<Button colorScheme="teal">Save</Button>
4954
<Button colorScheme="danger">Cancel</Button>
5055
</Button.Group>
5156

5257
<Divider />
5358

54-
<Heading size="md">Unstyled</Heading>
55-
5659
{/* Unstyled */}
60+
<Heading size="md">Unstyled</Heading>
5761
<Button.Group mb="2.5" mt="1.5" variant="unstyled">
5862
<Button colorScheme="teal">Save</Button>
5963
<Button colorScheme="danger">Cancel</Button>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"prettier --write"
3737
]
3838
},
39-
"version": "3.4.0-rc.3",
39+
"version": "3.4.0-rc.4",
4040
"license": "MIT",
4141
"private": false,
4242
"main": "lib/commonjs/index",

src/components/composites/Alert/types.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { MutableRefObject } from 'react';
22
import type { InterfaceBoxProps } from '../../../components/primitives/Box';
33
import type { IIconProps } from '../../primitives';
4-
import type { CustomProps, VariantType } from '../../types';
4+
import type { ColorSchemeType, CustomProps, VariantType } from '../../types';
55

66
export interface InterfaceAlertProps extends InterfaceBoxProps<IAlertProps> {
77
/** The status of the alert
@@ -15,7 +15,7 @@ export interface InterfaceAlertProps extends InterfaceBoxProps<IAlertProps> {
1515

1616
/** The colorScheme of the Alert.
1717
*/
18-
colorScheme?: string;
18+
colorScheme?: ColorSchemeType;
1919
}
2020
export type IAlertContext = {
2121
status?: string;

src/components/composites/AppBar/types.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
import type { ColorSchemeType } from '../../../components/types';
12
import type { InterfaceStackProps } from '../../primitives/Stack/Stack';
23

34
export type IAppBarProps = InterfaceStackProps & {
4-
colorScheme?: string;
5+
colorScheme?: ColorSchemeType;
56
statusBarHeight?: number;
67
space?: number;
78
};

src/components/composites/Badge/types.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import type { ITextProps } from '../../primitives/Text/types';
22
import type { IIconProps } from '../../primitives/Icon';
33
import type { CustomProps, VariantType } from '../../types';
44
import type { InterfaceBoxProps } from '../../primitives/Box';
5+
import type { ColorSchemeType } from '../../../components/types';
56

67
export interface InterfaceBadgeProps extends InterfaceBoxProps<IBadgeProps> {
78
/**
@@ -12,7 +13,7 @@ export interface InterfaceBadgeProps extends InterfaceBoxProps<IBadgeProps> {
1213
/**
1314
* The color scheme to use for the badge. Must be a key in theme.colors.
1415
*/
15-
colorScheme?: string;
16+
colorScheme?: ColorSchemeType;
1617
/**
1718
* The right icon element to use in the button.
1819
*/

src/components/composites/CircularProgress/types.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,15 @@ import type { CustomProps, ResponsiveValue } from '../../../components/types';
44
import type { ISizes } from '../../../theme/base/sizes';
55
import type { IColors } from '../../../theme/base/colors';
66
import type { InterfaceBoxProps } from '../../../components/primitives/Box/types';
7+
import type { ColorSchemeType } from '../../../components/types';
78

89
export type InterfaceCircularProgressProps = InterfaceBoxProps<ICircularProgressProps> & {
910
style?: ViewStyle;
1011
children?: JSX.Element | JSX.Element[] | string;
1112
value: number;
1213
size?: ResponsiveValue<ISizes | (string & {}) | number>;
1314
thickness?: number;
14-
colorScheme?: string;
15+
colorScheme?: ColorSchemeType;
1516
color?: ResponsiveValue<IColors | (string & {})>;
1617
trackColor?: ResponsiveValue<IColors | (string & {})>;
1718
isIndeterminate?: boolean;
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import type { CustomProps } from '../../../components/types/utils';
22
import type { InterfaceBoxProps } from '../../primitives/Box';
3+
import type { ColorSchemeType } from '../../../components/types';
34

45
export type InterfaceCodeProps = InterfaceBoxProps<ICodeProps> & {
5-
colorScheme?: string | undefined;
6+
colorScheme?: ColorSchemeType;
67
};
78

89
export type ICodeProps = InterfaceCodeProps & CustomProps<'Code'>;

src/components/composites/IconButton/types.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import type { InterfacePressableProps } from '../../primitives/Pressable/types';
22
import type { IIconProps } from '../../primitives/Icon';
3+
import type { ColorSchemeType } from '../../../components/types';
4+
35
import type { CustomProps, VariantType } from '../../types';
46
import type { ThemeComponentSizeType } from '../../../components/types/utils';
57
export interface InterfaceIconButtonProps
@@ -25,7 +27,7 @@ export interface InterfaceIconButtonProps
2527
* The color of the radio when it's checked. This should be one of the color keys in the theme (e.g."green", "red").
2628
* @default 'primary'
2729
*/
28-
colorScheme?: string;
30+
colorScheme?: ColorSchemeType;
2931
/**
3032
* The variant of the button style to use.
3133
* @default 'ghost'

src/components/composites/Popover/Popover.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ const Popover = (
9595
bodyMounted,
9696
setBodyMounted,
9797
setHeaderMounted,
98+
isOpen,
9899
}}
99100
>
100101
<FocusScope contain={trapFocus} restoreFocus autoFocus>

0 commit comments

Comments
 (0)